|
|||||||||
| 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)
Bulk 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 com.atlassian.crowd.exception.UserNotFoundException,
com.atlassian.crowd.exception.GroupNotFoundException,
com.atlassian.crowd.exception.MembershipAlreadyExistsException
directoryId - the directory to perform the operationuserName - usergroupName - group
com.atlassian.crowd.exception.UserNotFoundException - if the user does not exist
com.atlassian.crowd.exception.GroupNotFoundException - if the group does not exist
com.atlassian.crowd.exception.MembershipAlreadyExistsException - if the user is already a direct member of the group
BatchResult<String> addAllUsersToGroup(long directoryId,
Collection<String> userNames,
String groupName)
throws com.atlassian.crowd.exception.GroupNotFoundException
directoryId - the directory to perform the operationuserNames - the collection of usersgroupName - name of the group
com.atlassian.crowd.exception.GroupNotFoundException - if the group does not exist
void addGroupToGroup(long directoryId,
String childGroup,
String parentGroup)
throws com.atlassian.crowd.exception.GroupNotFoundException,
com.atlassian.crowd.exception.MembershipAlreadyExistsException
directoryId - the directory to perform the operationchildGroup - the (supposedly) child groupparentGroup - parent group
com.atlassian.crowd.exception.GroupNotFoundException - if either child or parent group is not found
com.atlassian.crowd.exception.MembershipAlreadyExistsException - if the child group is already a child of the parent group
void removeUserFromGroup(long directoryId,
String userName,
String groupName)
throws com.atlassian.crowd.exception.UserNotFoundException,
com.atlassian.crowd.exception.GroupNotFoundException,
com.atlassian.crowd.exception.MembershipNotFoundException
directoryId - the directory to perform the operationuserName - usergroupName - group
com.atlassian.crowd.exception.UserNotFoundException - if the user does not exist
com.atlassian.crowd.exception.GroupNotFoundException - if the group does not exist
com.atlassian.crowd.exception.MembershipNotFoundException - if the user is not a member of the said group
void removeGroupFromGroup(long directoryId,
String childGroup,
String parentGroup)
throws com.atlassian.crowd.exception.GroupNotFoundException,
com.atlassian.crowd.exception.MembershipNotFoundException
directoryId - the directory to perform the operationchildGroup - child groupparentGroup - parent group
com.atlassian.crowd.exception.GroupNotFoundException - if either child or parent group does not exist
com.atlassian.crowd.exception.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 | ||||||||