public interface InternalMembershipDao extends MembershipDao
InternalMembership
.Modifier and Type | Method and Description |
---|---|
BatchResult<InternalMembership> |
addAll(Set<InternalMembership> memberships)
Bulk add of memberships.
|
List<InternalMembership> |
getMembershipsCreatedAfter(long directoryId,
Date timestamp,
int maxResults)
Retrieves memberships with the creation timestamp greater than the specified date
|
void |
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 all
MembershipType.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.
|
addAllUsersToGroup, addGroupToGroup, addUserToGroup, countDirectMembersOfGroup, isGroupDirectMember, isUserDirectMember, removeGroupFromGroup, removeUserFromGroup, search, searchGroupedByName
void removeGroupMembers(long directoryId, String groupName)
directoryId
- Directory id.groupName
- Group name.void removeGroupMemberships(long directoryId, String groupName)
directoryId
- Directory id.groupName
- Group name.void removeUserMemberships(long directoryId, String username)
MembershipType.GROUP_USER
relationships
from parent groups to the given username.directoryId
- Directory id.username
- Username.void removeAllRelationships(long directoryId)
directoryId
- Directory id.void removeAllUserRelationships(long directoryId)
directoryId
- Directory id.void renameUserRelationships(long directoryId, String oldName, String newName)
directoryId
- Directory id.oldName
- Old username.newName
- New username.void renameGroupRelationships(long directoryId, String oldName, String newName)
directoryId
- Directory id.oldName
- Old group name.newName
- New group name.BatchResult<InternalMembership> addAll(Set<InternalMembership> memberships)
memberships
- Set of memberships.@ExperimentalSpi List<InternalMembership> getMembershipsCreatedAfter(long directoryId, Date timestamp, int maxResults)
directoryId
- the id of the directory to searchtimestamp
- the date to limit the search bymaxResults
- the maximum number of results to returnCopyright © 2020 Atlassian. All rights reserved.