public class OfBizDelegatingMembershipDao extends Object implements com.atlassian.crowd.embedded.spi.MembershipDao
| Constructor and Description |
|---|
OfBizDelegatingMembershipDao(InternalMembershipDao membershipDao,
ExtendedUserDao userDao,
com.atlassian.crowd.embedded.spi.GroupDao groupDao) |
| 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 child,
String parent) |
void |
addUserToGroup(long directoryId,
String user,
String group) |
com.atlassian.crowd.util.BoundedCount |
countDirectMembersOfGroup(long directoryId,
String groupName,
int potentialMaxCount) |
boolean |
isGroupDirectMember(long directoryId,
String childGroup,
String parentGroup) |
boolean |
isUserDirectMember(long directoryId,
String userName,
String groupName) |
void |
removeGroupFromGroup(long directoryId,
String child,
String parent) |
void |
removeUserFromGroup(long directoryId,
String user,
String group) |
<T> List<T> |
search(long directoryId,
com.atlassian.crowd.search.query.membership.MembershipQuery<T> query) |
public OfBizDelegatingMembershipDao(InternalMembershipDao membershipDao, ExtendedUserDao userDao, com.atlassian.crowd.embedded.spi.GroupDao groupDao)
public 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 boolean isUserDirectMember(long directoryId,
String userName,
String groupName)
isUserDirectMember in interface com.atlassian.crowd.embedded.spi.MembershipDaopublic boolean isGroupDirectMember(long directoryId,
String childGroup,
String parentGroup)
isGroupDirectMember in interface com.atlassian.crowd.embedded.spi.MembershipDaopublic void addUserToGroup(long directoryId,
String user,
String group)
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 void addGroupToGroup(long directoryId,
String child,
String parent)
throws com.atlassian.crowd.exception.GroupNotFoundException
addGroupToGroup in interface com.atlassian.crowd.embedded.spi.MembershipDaocom.atlassian.crowd.exception.GroupNotFoundExceptionpublic void removeUserFromGroup(long directoryId,
String user,
String group)
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 child,
String parent)
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 <T> List<T> search(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
search in interface com.atlassian.crowd.embedded.spi.MembershipDaopublic com.atlassian.crowd.util.BoundedCount countDirectMembersOfGroup(long directoryId,
String groupName,
int potentialMaxCount)
countDirectMembersOfGroup in interface com.atlassian.crowd.embedded.spi.MembershipDaoCopyright © 2002-2018 Atlassian. All Rights Reserved.