public final class CachedCrowdMembershipDao extends Object implements com.atlassian.crowd.embedded.spi.MembershipDao
DefaultMembershipCache| Constructor and Description |
|---|
CachedCrowdMembershipDao(com.atlassian.crowd.embedded.spi.MembershipDao delegate,
MembershipCache membershipCache,
GroupMembershipCache parentGroupCache,
GroupMembershipCache childGroupCache) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.crowd.util.BatchResult<String> |
addAllUsersToGroup(long directoryId,
Collection<String> userNames,
String groupName) |
void |
addGroupToGroup(long directoryId,
String childGroupName,
String parentGroupName) |
void |
addUserToGroup(long directoryId,
String userName,
String groupName) |
com.atlassian.crowd.util.BatchResult<String> |
addUserToGroups(long directoryId,
String username,
Set<String> groupNames) |
static <T> List<T> |
constrainResults(Collection<T> results,
int startIndex,
int maxResults) |
com.atlassian.crowd.util.BoundedCount |
countDirectMembersOfGroup(long directoryId,
String groupName,
int potentialMaxCount) |
boolean |
isGroupDirectMember(long directoryId,
String childGroup,
String parentGroupName) |
boolean |
isUserDirectMember(long directoryId,
String userName,
String groupName) |
void |
removeGroupFromGroup(long directoryId,
String childGroupName,
String parentGroupName) |
void |
removeUserFromGroup(long directoryId,
String userName,
String groupName) |
<T> List<T> |
search(long directoryId,
com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
This implementation uses the existing cached data for searches returning strings, and for searches returning
Group objects when searching for Groups as well.
|
<T> com.google.common.collect.ListMultimap<String,T> |
searchGroupedByName(long directoryId,
com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
searchGroupedByName accepts a query with the set of group names to search.
|
public CachedCrowdMembershipDao(com.atlassian.crowd.embedded.spi.MembershipDao delegate,
MembershipCache membershipCache,
GroupMembershipCache parentGroupCache,
GroupMembershipCache childGroupCache)
public boolean isUserDirectMember(long directoryId,
String userName,
String groupName)
isUserDirectMember in interface com.atlassian.crowd.embedded.spi.MembershipDaopublic boolean isGroupDirectMember(long directoryId,
String childGroup,
String parentGroupName)
isGroupDirectMember in interface com.atlassian.crowd.embedded.spi.MembershipDaopublic void addUserToGroup(long directoryId,
String userName,
String groupName)
throws com.atlassian.crowd.exception.UserNotFoundException,
com.atlassian.crowd.exception.GroupNotFoundException,
com.atlassian.crowd.exception.MembershipAlreadyExistsException
addUserToGroup in interface com.atlassian.crowd.embedded.spi.MembershipDaocom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.MembershipAlreadyExistsExceptionpublic com.atlassian.crowd.util.BatchResult<String> addUserToGroups(long directoryId, String username, Set<String> groupNames) throws com.atlassian.crowd.exception.UserNotFoundException
addUserToGroups in interface com.atlassian.crowd.embedded.spi.MembershipDaocom.atlassian.crowd.exception.UserNotFoundExceptionpublic com.atlassian.crowd.util.BatchResult<String> addAllUsersToGroup(long directoryId, Collection<String> userNames, String groupName) throws com.atlassian.crowd.exception.GroupNotFoundException
addAllUsersToGroup in interface com.atlassian.crowd.embedded.spi.MembershipDaocom.atlassian.crowd.exception.GroupNotFoundExceptionpublic void addGroupToGroup(long directoryId,
String childGroupName,
String parentGroupName)
throws com.atlassian.crowd.exception.GroupNotFoundException,
com.atlassian.crowd.exception.MembershipAlreadyExistsException
addGroupToGroup in interface com.atlassian.crowd.embedded.spi.MembershipDaocom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.MembershipAlreadyExistsExceptionpublic void removeUserFromGroup(long directoryId,
String userName,
String groupName)
throws com.atlassian.crowd.exception.UserNotFoundException,
com.atlassian.crowd.exception.GroupNotFoundException,
com.atlassian.crowd.exception.MembershipNotFoundException
removeUserFromGroup in interface com.atlassian.crowd.embedded.spi.MembershipDaocom.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.MembershipNotFoundExceptionpublic void removeGroupFromGroup(long directoryId,
String childGroupName,
String parentGroupName)
throws com.atlassian.crowd.exception.GroupNotFoundException,
com.atlassian.crowd.exception.MembershipNotFoundException
removeGroupFromGroup in interface com.atlassian.crowd.embedded.spi.MembershipDaocom.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.MembershipNotFoundExceptionpublic com.atlassian.crowd.util.BoundedCount countDirectMembersOfGroup(long directoryId,
String groupName,
int potentialMaxCount)
countDirectMembersOfGroup in interface com.atlassian.crowd.embedded.spi.MembershipDaopublic <T> List<T> search(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
search in interface com.atlassian.crowd.embedded.spi.MembershipDaopublic <T> com.google.common.collect.ListMultimap<String,T> searchGroupedByName(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
HibernateMembershipDao.searchGroupedByName at the moment.searchGroupedByName in interface com.atlassian.crowd.embedded.spi.MembershipDaopublic static <T> List<T> constrainResults(Collection<T> results, int startIndex, int maxResults)
Copyright © 2003–2022 Atlassian. All rights reserved.