public interface SecurityManager
Modifier and Type | Method and Description |
---|---|
void |
assignUsersToGroup(Collection<User> users,
Group group)
Assign a collection of users to a group.
|
void |
assignUserToGroup(User user,
Group group)
Assign a user to a group.
|
void |
assignUserToGroups(User user,
Collection<Group> groups)
Assign a user to a collection of groups.
|
void |
assignUserToGroups(User user,
long[] groupIds)
Assign a user to a collection of groups.
|
Set<Group> |
getAllowedGroups(long menuId)
Retrieves the collection of groups that can access the given menu
|
boolean |
isMemberOf(long userId,
long groupId)
Checks if a given user is member of a particular group
|
boolean |
isMemberOf(long userId,
String groupName)
Checks if a given user is member of a particular group
|
void |
removeAllUsersFromGroup(Group group)
Removes all users from group
|
void |
removeUserFromAllGroups(User user)
Removes the specified user from a all groups except it's user's group
|
void |
removeUserFromGroup(User user,
Group group)
Removes the specified user from a group.
|
void |
removeUsersFromGroup(Collection<User> users,
Group group)
Removes the specified users from a group.
|
void assignUsersToGroup(Collection<User> users, Group group)
users
- The users collectiongroup
- The groupvoid assignUserToGroups(User user, Collection<Group> groups)
user
- The user to be assignedgroups
- The groups collectionvoid assignUserToGroups(User user, long[] groupIds)
user
- The user to be assignedgroupIds
- Array of group idsvoid assignUserToGroup(User user, Group group)
user
- The user to be assignedgroup
- The groupvoid removeUsersFromGroup(Collection<User> users, Group group)
users
- The users to be removedgroup
- The group to be updatedvoid removeUserFromGroup(User user, Group group)
users
- The user to be removedgroup
- The group to be updatedvoid removeUserFromAllGroups(User user)
user
- The user to be removedvoid removeAllUsersFromGroup(Group group)
group
- The group from which all users must be removedSet<Group> getAllowedGroups(long menuId)
menuId
- The menu to considerboolean isMemberOf(long userId, long groupId)
userId
- The user identifiergroupId
- The group identifierboolean isMemberOf(long userId, String groupName)
userId
- The user identifiergroupName
- The group nameCopyright © 2008-2014 Logical Objects. All Rights Reserved.