public interface InternalMembershipDao
Modifier and Type | Method and Description |
---|---|
com.atlassian.crowd.util.BatchResult<String> |
addAllUsersToGroup(long directoryId,
Collection<UserOrGroupStub> users,
UserOrGroupStub group) |
void |
addGroupToGroup(long directoryId,
UserOrGroupStub child,
UserOrGroupStub parent) |
void |
addUserToGroup(long directoryId,
UserOrGroupStub user,
UserOrGroupStub group) |
long |
countDirectMembersOfGroup(long directoryId,
String groupName,
com.atlassian.crowd.model.membership.MembershipType membershipType) |
Collection<String> |
findGroupChildrenOfGroups(long directoryId,
Collection<String> groupNames)
Finds direct group children of the specified groups in a directory.
|
Collection<String> |
findUserChildrenOfGroups(long directoryId,
Collection<String> groupNames)
Finds direct user children of the specified groups in a directory.
|
void |
flushCache() |
boolean |
isGroupDirectMember(long directoryId,
String childGroup,
String parentGroup) |
boolean |
isUserDirectMember(long directoryId,
String userName,
String groupName) |
void |
removeAllGroupMemberships(com.atlassian.crowd.model.group.Group group) |
void |
removeAllMembersFromGroup(com.atlassian.crowd.model.group.Group group) |
void |
removeAllUserMemberships(long directoryId,
String username) |
void |
removeAllUserMemberships(com.atlassian.crowd.model.user.User user) |
void |
removeGroupFromGroup(long directoryId,
UserOrGroupStub childGroup,
UserOrGroupStub parentGroup) |
void |
removeUserFromGroup(long directoryId,
UserOrGroupStub user,
UserOrGroupStub group) |
<T> List<String> |
search(long directoryId,
com.atlassian.crowd.search.query.membership.MembershipQuery<T> query) |
boolean isGroupDirectMember(long directoryId, String childGroup, String parentGroup)
void addUserToGroup(long directoryId, UserOrGroupStub user, UserOrGroupStub group) throws com.atlassian.crowd.exception.MembershipAlreadyExistsException
com.atlassian.crowd.exception.MembershipAlreadyExistsException
com.atlassian.crowd.util.BatchResult<String> addAllUsersToGroup(long directoryId, Collection<UserOrGroupStub> users, UserOrGroupStub group)
void addGroupToGroup(long directoryId, UserOrGroupStub child, UserOrGroupStub parent)
long countDirectMembersOfGroup(long directoryId, String groupName, com.atlassian.crowd.model.membership.MembershipType membershipType)
void removeAllMembersFromGroup(com.atlassian.crowd.model.group.Group group)
void removeAllGroupMemberships(com.atlassian.crowd.model.group.Group group)
void removeAllUserMemberships(com.atlassian.crowd.model.user.User user)
void removeAllUserMemberships(long directoryId, String username)
void removeUserFromGroup(long directoryId, UserOrGroupStub user, UserOrGroupStub group) throws com.atlassian.crowd.exception.MembershipNotFoundException
com.atlassian.crowd.exception.MembershipNotFoundException
void removeGroupFromGroup(long directoryId, UserOrGroupStub childGroup, UserOrGroupStub parentGroup) throws com.atlassian.crowd.exception.MembershipNotFoundException
com.atlassian.crowd.exception.MembershipNotFoundException
<T> List<String> search(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
void flushCache()
Collection<String> findGroupChildrenOfGroups(long directoryId, Collection<String> groupNames)
directoryId
- the directory.groupNames
- the names of the groups whose group children are returned. If this is empty, an empty collection is returned.Collection<String> findUserChildrenOfGroups(long directoryId, Collection<String> groupNames)
directoryId
- the directory.groupNames
- the name of the groups whose user children are returned. If this is empty, an empty collection is returned.Copyright © 2002-2019 Atlassian. All Rights Reserved.