public final class HibernateMembershipDao extends Object implements com.atlassian.crowd.embedded.spi.MembershipDao
MembershipDao
which uses Hibernate 2.Constructor and Description |
---|
HibernateMembershipDao(org.hibernate.SessionFactory sessionFactory,
InternalUserDao userDao,
InternalGroupDao groupDao,
com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor batchProcessor) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.crowd.util.BatchResult<HibernateMembership> |
addAll(Set<HibernateMembership> memberships) |
com.atlassian.crowd.util.BatchResult<String> |
addAllUsersToGroup(long directoryId,
Collection<String> userNames,
String groupName) |
void |
addGroupToGroup(long directoryId,
String childGroup,
String parentGroup) |
void |
addUserToGroup(long directoryId,
String userName,
String groupName) |
com.atlassian.crowd.util.BoundedCount |
countDirectMembersOfGroup(long directoryId,
String groupName,
int potentialMaxCount) |
boolean |
isGroupDirectMember(long directoryId,
String childGroupName,
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) |
<T> com.google.common.collect.ListMultimap<String,T> |
searchGroupedByName(long directoryId,
com.atlassian.crowd.search.query.membership.MembershipQuery<T> membershipQuery) |
public HibernateMembershipDao(org.hibernate.SessionFactory sessionFactory, InternalUserDao userDao, InternalGroupDao groupDao, com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor batchProcessor)
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.MembershipDao
com.atlassian.crowd.exception.GroupNotFoundException
public boolean isUserDirectMember(long directoryId, String userName, String groupName)
isUserDirectMember
in interface com.atlassian.crowd.embedded.spi.MembershipDao
public boolean isGroupDirectMember(long directoryId, String childGroupName, String parentGroupName)
isGroupDirectMember
in interface com.atlassian.crowd.embedded.spi.MembershipDao
public 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.MembershipDao
com.atlassian.crowd.exception.UserNotFoundException
com.atlassian.crowd.exception.GroupNotFoundException
com.atlassian.crowd.exception.MembershipAlreadyExistsException
public void addGroupToGroup(long directoryId, String childGroup, String parentGroup) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.MembershipAlreadyExistsException
addGroupToGroup
in interface com.atlassian.crowd.embedded.spi.MembershipDao
com.atlassian.crowd.exception.GroupNotFoundException
com.atlassian.crowd.exception.MembershipAlreadyExistsException
public 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.MembershipDao
com.atlassian.crowd.exception.UserNotFoundException
com.atlassian.crowd.exception.GroupNotFoundException
com.atlassian.crowd.exception.MembershipNotFoundException
public 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.MembershipDao
com.atlassian.crowd.exception.GroupNotFoundException
com.atlassian.crowd.exception.MembershipNotFoundException
public com.atlassian.crowd.util.BoundedCount countDirectMembersOfGroup(long directoryId, String groupName, int potentialMaxCount)
countDirectMembersOfGroup
in interface com.atlassian.crowd.embedded.spi.MembershipDao
public <T> List<T> search(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
search
in interface com.atlassian.crowd.embedded.spi.MembershipDao
public <T> com.google.common.collect.ListMultimap<String,T> searchGroupedByName(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> membershipQuery)
searchGroupedByName
in interface com.atlassian.crowd.embedded.spi.MembershipDao
public com.atlassian.crowd.util.BatchResult<HibernateMembership> addAll(Set<HibernateMembership> memberships)
Copyright © 2003–2021 Atlassian. All rights reserved.