public class OfBizInternalMembershipDao extends Object implements InternalMembershipDao
| Constructor and Description |
|---|
OfBizInternalMembershipDao(OfBizDelegator ofBizDelegator,
QueryDslAccessor queryDslAccessor,
com.atlassian.cache.CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.crowd.util.BatchResult<String> |
addAllGroupsToGroup(long directoryId,
Collection<UserOrGroupStub> childGroups,
UserOrGroupStub parentGroup) |
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) |
com.atlassian.crowd.util.BatchResult<String> |
addUserToGroups(long directoryId,
UserOrGroupStub user,
Collection<UserOrGroupStub> groups) |
long |
countDirectMembersOfGroup(long directoryId,
String groupName,
com.atlassian.crowd.model.membership.MembershipType type) |
List<String> |
findGroupChildrenOfGroups(long directoryId,
Collection<String> groupNames)
Finds direct group children of the specified groups in a directory.
|
List<String> |
findUserChildrenOfGroups(long directoryId,
Collection<String> groupNames)
Finds direct user children of the specified groups in a directory.
|
void |
flushCache()
Invoked by
OfBizCacheFlushingManager to ensure caches are being flushed in the right order on
XMLRestoreFinishedEvent |
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) |
com.atlassian.crowd.util.BatchResult<String> |
removeGroupsFromGroup(long directoryId,
Collection<UserOrGroupStub> childGroups,
UserOrGroupStub parentGroup) |
void |
removeUserFromGroup(long directoryId,
UserOrGroupStub user,
UserOrGroupStub group) |
com.atlassian.crowd.util.BatchResult<String> |
removeUsersFromGroup(long directoryId,
Collection<UserOrGroupStub> users,
UserOrGroupStub group) |
<T> List<String> |
search(long directoryId,
com.atlassian.crowd.search.query.membership.MembershipQuery<T> query) |
<T> com.google.common.collect.ListMultimap<String,String> |
searchGroupedByName(long directoryId,
com.atlassian.crowd.search.query.membership.MembershipQuery<T> query) |
public OfBizInternalMembershipDao(OfBizDelegator ofBizDelegator, QueryDslAccessor queryDslAccessor, com.atlassian.cache.CacheManager cacheManager)
public boolean isUserDirectMember(long directoryId,
String userName,
String groupName)
isUserDirectMember in interface InternalMembershipDaopublic boolean isGroupDirectMember(long directoryId,
String childGroup,
String parentGroup)
isGroupDirectMember in interface InternalMembershipDaopublic void addUserToGroup(long directoryId,
UserOrGroupStub user,
UserOrGroupStub group)
throws com.atlassian.crowd.exception.MembershipAlreadyExistsException
addUserToGroup in interface InternalMembershipDaocom.atlassian.crowd.exception.MembershipAlreadyExistsExceptionpublic com.atlassian.crowd.util.BatchResult<String> addAllUsersToGroup(long directoryId, Collection<UserOrGroupStub> users, UserOrGroupStub group)
addAllUsersToGroup in interface InternalMembershipDaopublic com.atlassian.crowd.util.BatchResult<String> addUserToGroups(long directoryId, UserOrGroupStub user, Collection<UserOrGroupStub> groups)
addUserToGroups in interface InternalMembershipDaopublic void addGroupToGroup(long directoryId,
UserOrGroupStub child,
UserOrGroupStub parent)
addGroupToGroup in interface InternalMembershipDaopublic com.atlassian.crowd.util.BatchResult<String> addAllGroupsToGroup(long directoryId, Collection<UserOrGroupStub> childGroups, UserOrGroupStub parentGroup)
addAllGroupsToGroup in interface InternalMembershipDaopublic void removeUserFromGroup(long directoryId,
UserOrGroupStub user,
UserOrGroupStub group)
throws com.atlassian.crowd.exception.MembershipNotFoundException
removeUserFromGroup in interface InternalMembershipDaocom.atlassian.crowd.exception.MembershipNotFoundExceptionpublic com.atlassian.crowd.util.BatchResult<String> removeUsersFromGroup(long directoryId, Collection<UserOrGroupStub> users, UserOrGroupStub group)
removeUsersFromGroup in interface InternalMembershipDaopublic void removeGroupFromGroup(long directoryId,
UserOrGroupStub childGroup,
UserOrGroupStub parentGroup)
throws com.atlassian.crowd.exception.MembershipNotFoundException
removeGroupFromGroup in interface InternalMembershipDaocom.atlassian.crowd.exception.MembershipNotFoundExceptionpublic com.atlassian.crowd.util.BatchResult<String> removeGroupsFromGroup(long directoryId, Collection<UserOrGroupStub> childGroups, UserOrGroupStub parentGroup)
removeGroupsFromGroup in interface InternalMembershipDaopublic long countDirectMembersOfGroup(long directoryId,
String groupName,
com.atlassian.crowd.model.membership.MembershipType type)
countDirectMembersOfGroup in interface InternalMembershipDaopublic void removeAllMembersFromGroup(com.atlassian.crowd.model.group.Group group)
removeAllMembersFromGroup in interface InternalMembershipDaopublic void removeAllGroupMemberships(com.atlassian.crowd.model.group.Group group)
removeAllGroupMemberships in interface InternalMembershipDaopublic void removeAllUserMemberships(com.atlassian.crowd.model.user.User user)
removeAllUserMemberships in interface InternalMembershipDaopublic void removeAllUserMemberships(long directoryId,
String username)
removeAllUserMemberships in interface InternalMembershipDaopublic List<String> findGroupChildrenOfGroups(long directoryId, Collection<String> groupNames)
InternalMembershipDaofindGroupChildrenOfGroups in interface InternalMembershipDaodirectoryId - the directory.groupNames - the names of the groups whose group children are returned. If this is empty, an empty collection is returned.public List<String> findUserChildrenOfGroups(long directoryId, Collection<String> groupNames)
InternalMembershipDaofindUserChildrenOfGroups in interface InternalMembershipDaodirectoryId - the directory.groupNames - the name of the groups whose user children are returned. If this is empty, an empty collection is returned.public <T> List<String> search(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
search in interface InternalMembershipDaopublic <T> com.google.common.collect.ListMultimap<String,String> searchGroupedByName(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
searchGroupedByName in interface InternalMembershipDaopublic void flushCache()
OfBizCacheFlushingManager to ensure caches are being flushed in the right order on
XMLRestoreFinishedEventflushCache in interface InternalMembershipDaoCopyright © 2002-2024 Atlassian. All Rights Reserved.