|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MembershipDao
| Method Summary | ||
|---|---|---|
BatchResult<java.lang.String> |
addAllUsersToGroup(long directoryId,
java.util.Collection<java.lang.String> userNames,
java.lang.String groupName)
Adds all the given users into the given group. |
|
void |
addGroupToGroup(long directoryId,
java.lang.String childGroup,
java.lang.String parentGroup)
Adds group as a child of the (supposedly) parent group. |
|
void |
addUserToGroup(long directoryId,
java.lang.String userName,
java.lang.String groupName)
Adds user as a member of group. |
|
boolean |
isGroupDirectMember(long directoryId,
java.lang.String childGroup,
java.lang.String parentGroup)
Determines whether the group is a direct member of the (supposedly) parent group. |
|
boolean |
isUserDirectMember(long directoryId,
java.lang.String userName,
java.lang.String groupName)
Determines whether the user is a direct member of the group. |
|
void |
removeGroupFromGroup(long directoryId,
java.lang.String childGroup,
java.lang.String parentGroup)
Removes group from the parent group. |
|
void |
removeUserFromGroup(long directoryId,
java.lang.String userName,
java.lang.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,
java.lang.String userName,
java.lang.String groupName)
directoryId - the directory to perform the operationuserName - usergroupName - group
boolean isGroupDirectMember(long directoryId,
java.lang.String childGroup,
java.lang.String parentGroup)
directoryId - the directory to perform the operationchildGroup - child groupparentGroup - parent group
void addUserToGroup(long directoryId,
java.lang.String userName,
java.lang.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 exist
BatchResult<java.lang.String> addAllUsersToGroup(long directoryId,
java.util.Collection<java.lang.String> userNames,
java.lang.String groupName)
throws GroupNotFoundException
directoryId - the directory to perform the operationuserNames - the collection of usersgroupName - group
GroupNotFoundException - if the group does not exist
void addGroupToGroup(long directoryId,
java.lang.String childGroup,
java.lang.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 found
void removeUserFromGroup(long directoryId,
java.lang.String userName,
java.lang.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 group
void removeGroupFromGroup(long directoryId,
java.lang.String childGroup,
java.lang.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> java.util.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 | ||||||||