Interface InternalMembershipDao
- All Known Implementing Classes:
OfBizInternalMembershipDao
public interface InternalMembershipDao
This interface is used by OfBizDelegatingMembershipDao to avoid circular dependencies with the User and Group DAOs.
-
Method Summary
Modifier and TypeMethodDescriptioncom.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) voidaddGroupToGroup(long directoryId, UserOrGroupStub child, UserOrGroupStub parent) voidaddUserToGroup(long directoryId, UserOrGroupStub user, UserOrGroupStub group) com.atlassian.crowd.util.BatchResult<String>addUserToGroups(long directoryId, UserOrGroupStub user, Collection<UserOrGroupStub> groups) longcountDirectMembersOfGroup(long directoryId, String groupName, com.atlassian.crowd.model.membership.MembershipType membershipType) findGroupChildrenOfGroups(long directoryId, Collection<String> groupNames) Finds direct group children of the specified groups in a directory.findUserChildrenOfGroups(long directoryId, Collection<String> groupNames) Finds direct user children of the specified groups in a directory.voidbooleanisGroupDirectMember(long directoryId, String childGroup, String parentGroup) booleanisUserDirectMember(long directoryId, String userName, String groupName) voidremoveAllGroupMemberships(com.atlassian.crowd.model.group.Group group) voidremoveAllMembersFromGroup(com.atlassian.crowd.model.group.Group group) voidremoveAllUserMemberships(long directoryId, String username) voidremoveAllUserMemberships(com.atlassian.crowd.model.user.User user) voidremoveGroupFromGroup(long directoryId, UserOrGroupStub childGroup, UserOrGroupStub parentGroup) com.atlassian.crowd.util.BatchResult<String>removeGroupsFromGroup(long directoryId, Collection<UserOrGroupStub> childGroups, UserOrGroupStub parentGroup) voidremoveUserFromGroup(long directoryId, UserOrGroupStub user, UserOrGroupStub group) com.atlassian.crowd.util.BatchResult<String>removeUsersFromGroup(long directoryId, Collection<UserOrGroupStub> users, UserOrGroupStub group) search(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query) searchGroupedByName(long directoryId, com.atlassian.crowd.search.query.membership.MembershipQuery<T> query)
-
Method Details
-
isUserDirectMember
-
isGroupDirectMember
-
addUserToGroup
void addUserToGroup(long directoryId, UserOrGroupStub user, UserOrGroupStub group) throws com.atlassian.crowd.exception.MembershipAlreadyExistsException - Throws:
com.atlassian.crowd.exception.MembershipAlreadyExistsException
-
addAllUsersToGroup
com.atlassian.crowd.util.BatchResult<String> addAllUsersToGroup(long directoryId, Collection<UserOrGroupStub> users, UserOrGroupStub group) -
addUserToGroups
com.atlassian.crowd.util.BatchResult<String> addUserToGroups(long directoryId, UserOrGroupStub user, Collection<UserOrGroupStub> groups) -
addGroupToGroup
-
addAllGroupsToGroup
com.atlassian.crowd.util.BatchResult<String> addAllGroupsToGroup(long directoryId, Collection<UserOrGroupStub> childGroups, UserOrGroupStub parentGroup) -
countDirectMembersOfGroup
long countDirectMembersOfGroup(long directoryId, String groupName, com.atlassian.crowd.model.membership.MembershipType membershipType) -
removeAllMembersFromGroup
void removeAllMembersFromGroup(com.atlassian.crowd.model.group.Group group) -
removeAllGroupMemberships
void removeAllGroupMemberships(com.atlassian.crowd.model.group.Group group) -
removeAllUserMemberships
void removeAllUserMemberships(com.atlassian.crowd.model.user.User user) -
removeAllUserMemberships
-
removeUserFromGroup
void removeUserFromGroup(long directoryId, UserOrGroupStub user, UserOrGroupStub group) throws com.atlassian.crowd.exception.MembershipNotFoundException - Throws:
com.atlassian.crowd.exception.MembershipNotFoundException
-
removeUsersFromGroup
com.atlassian.crowd.util.BatchResult<String> removeUsersFromGroup(long directoryId, Collection<UserOrGroupStub> users, UserOrGroupStub group) -
removeGroupFromGroup
void removeGroupFromGroup(long directoryId, UserOrGroupStub childGroup, UserOrGroupStub parentGroup) throws com.atlassian.crowd.exception.MembershipNotFoundException - Throws:
com.atlassian.crowd.exception.MembershipNotFoundException
-
removeGroupsFromGroup
com.atlassian.crowd.util.BatchResult<String> removeGroupsFromGroup(long directoryId, Collection<UserOrGroupStub> childGroups, UserOrGroupStub parentGroup) -
search
-
searchGroupedByName
-
flushCache
void flushCache() -
findGroupChildrenOfGroups
Finds direct group children of the specified groups in a directory.- Parameters:
directoryId- the directory.groupNames- the names of the groups whose group children are returned. If this is empty, an empty collection is returned.- Returns:
- the names of the group children.
- Since:
- v7.0
-
findUserChildrenOfGroups
Finds direct user children of the specified groups in a directory.- Parameters:
directoryId- the directory.groupNames- the name of the groups whose user children are returned. If this is empty, an empty collection is returned.- Returns:
- the names of the users in the specified groups.
- Since:
- v7.0
-