Interface InternalMembershipDao
- All Superinterfaces:
MembershipDao
- All Known Implementing Classes:
CachingInternalMembershipDao
,MembershipDAOHibernate
Manages persistence of
InternalMembership
.-
Method Summary
Modifier and TypeMethodDescriptionaddAll
(Set<InternalMembership> memberships) Bulk add of memberships.getMembershipsCreatedAfter
(long directoryId, Date timestamp, int maxResults) Retrieves memberships with the creation timestamp greater than the specified datevoid
removeAllRelationships
(long directoryId) Removes all relationships the the given directory identified by directory id.void
removeAllUserRelationships
(long directoryId) Removes all user relationships the the given directory identified by directory id.void
removeGroupMembers
(long directoryId, String groupName) Removes all members of the given group name.void
removeGroupMemberships
(long directoryId, String groupName) Removes all relationships from parent groups to the given group name.void
removeUserMemberships
(long directoryId, String username) Removes allMembershipType.GROUP_USER
relationships from parent groups to the given username.void
renameGroupRelationships
(long directoryId, String oldName, String newName) Renames group name in all relationships.void
renameUserRelationships
(long directoryId, String oldName, String newName) Renames username in all relationships.Methods inherited from interface com.atlassian.crowd.embedded.spi.MembershipDao
addAllGroupsToGroup, addAllUsersToGroup, addGroupToGroup, addUserToGroup, addUserToGroups, countDirectMembersOfGroup, isGroupDirectMember, isUserDirectMember, removeGroupFromGroup, removeGroupsFromGroup, removeUserFromGroup, removeUsersFromGroup, search, searchGroupedByName
-
Method Details
-
removeGroupMembers
Removes all members of the given group name.- Parameters:
directoryId
- Directory id.groupName
- Group name.
-
removeGroupMemberships
Removes all relationships from parent groups to the given group name.- Parameters:
directoryId
- Directory id.groupName
- Group name.
-
removeUserMemberships
Removes allMembershipType.GROUP_USER
relationships from parent groups to the given username.- Parameters:
directoryId
- Directory id.username
- Username.
-
removeAllRelationships
void removeAllRelationships(long directoryId) Removes all relationships the the given directory identified by directory id.- Parameters:
directoryId
- Directory id.
-
removeAllUserRelationships
void removeAllUserRelationships(long directoryId) Removes all user relationships the the given directory identified by directory id.- Parameters:
directoryId
- Directory id.
-
renameUserRelationships
Renames username in all relationships.- Parameters:
directoryId
- Directory id.oldName
- Old username.newName
- New username.
-
renameGroupRelationships
Renames group name in all relationships.- Parameters:
directoryId
- Directory id.oldName
- Old group name.newName
- New group name.
-
addAll
Bulk add of memberships.- Parameters:
memberships
- Set of memberships.- Returns:
- Batch result.
-
getMembershipsCreatedAfter
@ExperimentalSpi List<InternalMembership> getMembershipsCreatedAfter(long directoryId, Date timestamp, int maxResults) Retrieves memberships with the creation timestamp greater than the specified date- Parameters:
directoryId
- the id of the directory to searchtimestamp
- the date to limit the search bymaxResults
- the maximum number of results to return- Returns:
-