|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MembershipDao
Method Summary | ||
---|---|---|
BatchResult<String> |
addAllUsersToGroup(long directoryId,
Collection<String> userNames,
String groupName)
Adds all the given users into the given group. |
|
void |
addGroupToGroup(long directoryId,
String childGroup,
String parentGroup)
Adds group as a child of the (supposedly) parent group. |
|
void |
addUserToGroup(long directoryId,
String userName,
String groupName)
Adds user as a member of group. |
|
boolean |
isGroupDirectMember(long directoryId,
String childGroup,
String parentGroup)
Determines whether the group is a direct member of the (supposedly) parent group. |
|
boolean |
isUserDirectMember(long directoryId,
String userName,
String groupName)
Determines whether the user is a direct member of the group. |
|
void |
removeGroupFromGroup(long directoryId,
String childGroup,
String parentGroup)
Removes group from the parent group. |
|
void |
removeUserFromGroup(long directoryId,
String userName,
String groupName)
Removes user as a member of the given group. |
|
|
search(long directoryId,
MembershipQuery<T> query)
Search for memberships by the given criteria. |
Method Detail |
---|
boolean isUserDirectMember(long directoryId, String userName, String groupName)
directoryId
- the directory to perform the operationuserName
- usergroupName
- group
boolean isGroupDirectMember(long directoryId, String childGroup, String parentGroup)
directoryId
- the directory to perform the operationchildGroup
- child groupparentGroup
- parent group
void addUserToGroup(long directoryId, String userName, String groupName) throws UserNotFoundException, GroupNotFoundException
directoryId
- the directory to perform the operationuserName
- usergroupName
- group
UserNotFoundException
- if the user does not exist
GroupNotFoundException
- if the group does not existBatchResult<String> addAllUsersToGroup(long directoryId, Collection<String> userNames, String groupName) throws GroupNotFoundException
directoryId
- the directory to perform the operationuserNames
- the collection of usersgroupName
- group
GroupNotFoundException
- if the group does not existvoid addGroupToGroup(long directoryId, String childGroup, String parentGroup) throws GroupNotFoundException
directoryId
- the directory to perform the operationchildGroup
- the (supposedly) child groupparentGroup
- parent group
GroupNotFoundException
- if either child or parent group is not foundvoid removeUserFromGroup(long directoryId, String userName, String groupName) throws UserNotFoundException, GroupNotFoundException, MembershipNotFoundException
directoryId
- the directory to perform the operationuserName
- usergroupName
- group
UserNotFoundException
- if the user does not exist
GroupNotFoundException
- if the group does not exist
MembershipNotFoundException
- if the user is not a member of the said groupvoid removeGroupFromGroup(long directoryId, String childGroup, String parentGroup) throws GroupNotFoundException, MembershipNotFoundException
directoryId
- the directory to perform the operationchildGroup
- child groupparentGroup
- parent group
GroupNotFoundException
- if either child or parent group does not exist
MembershipNotFoundException
- if the membership relationship between the child and parent group does not exist<T> List<T> search(long directoryId, MembershipQuery<T> query)
directoryId
- the directory to perform the operationquery
- criteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |