public interface DirectoryCacheChangeOperations
| Modifier and Type | Interface and Description |
|---|---|
static class |
DirectoryCacheChangeOperations.AddRemoveSets<T> |
static class |
DirectoryCacheChangeOperations.GroupShadowingType |
static class |
DirectoryCacheChangeOperations.GroupsToAddUpdateReplace |
void deleteCachedUsersNotIn(Collection<? extends User> users, Date syncStartDate) throws com.atlassian.crowd.exception.OperationFailedException
void deleteCachedUsersByGuid(Set<String> usernames) throws com.atlassian.crowd.exception.OperationFailedException
void deleteCachedGroupsNotIn(GroupType groupType, List<? extends Group> ldapGroups, Date syncStartDate) throws com.atlassian.crowd.exception.OperationFailedException
void deleteCachedGroupsNotInByExternalId(Collection<? extends Group> remoteGroups, Date syncStartDate) throws com.atlassian.crowd.exception.OperationFailedException
void deleteCachedGroups(Set<String> groupnames) throws com.atlassian.crowd.exception.OperationFailedException
void deleteCachedGroupsByGuids(Set<String> guids) throws com.atlassian.crowd.exception.OperationFailedException
AddUpdateSets<UserTemplateWithCredentialAndAttributes,UserTemplate> getUsersToAddAndUpdate(Collection<? extends User> remoteUsers, Date syncStartDate) throws com.atlassian.crowd.exception.OperationFailedException
void addUsers(Set<UserTemplateWithCredentialAndAttributes> usersToAdd) throws com.atlassian.crowd.exception.OperationFailedException
void updateUsers(Collection<UserTemplate> usersToUpdate) throws com.atlassian.crowd.exception.OperationFailedException
DirectoryCacheChangeOperations.GroupsToAddUpdateReplace findGroupsToUpdate(Collection<? extends Group> remoteGroups, Date syncStartDate) throws com.atlassian.crowd.exception.OperationFailedException
void removeGroups(Collection<String> keySet) throws com.atlassian.crowd.exception.OperationFailedException
void addGroups(Set<GroupTemplate> allToAdd) throws com.atlassian.crowd.exception.OperationFailedException
void updateGroups(Collection<GroupTemplate> groupsToUpdate) throws com.atlassian.crowd.exception.OperationFailedException
DirectoryCacheChangeOperations.GroupShadowingType isGroupShadowed(Group group) throws com.atlassian.crowd.exception.OperationFailedException
DirectoryCacheChangeOperations.AddRemoveSets<String> findUserMembershipForGroupChanges(Group group, Collection<String> remoteUsers) throws com.atlassian.crowd.exception.OperationFailedException
void addUserMembershipsForGroup(Group group, Set<String> toAdd) throws com.atlassian.crowd.exception.OperationFailedException
void removeUserMembershipsForGroup(Group group, Set<String> toRemove) throws com.atlassian.crowd.exception.OperationFailedException
DirectoryCacheChangeOperations.AddRemoveSets<String> findGroupMembershipForGroupChanges(Group parentGroup, Collection<String> remoteGroups) throws com.atlassian.crowd.exception.OperationFailedException
void addGroupMembershipsForGroup(Group parentGroup, Collection<String> toAdd) throws com.atlassian.crowd.exception.OperationFailedException
void removeGroupMembershipsForGroup(Group parentGroup, Collection<String> toRemove) throws com.atlassian.crowd.exception.OperationFailedException
Set<String> getAllUserGuids() throws com.atlassian.crowd.exception.OperationFailedException
long getUserCount()
throws com.atlassian.crowd.exception.OperationFailedException
Set<String> getAllGroupGuids() throws com.atlassian.crowd.exception.OperationFailedException
long getGroupCount()
throws com.atlassian.crowd.exception.OperationFailedException
long getExternalCachedGroupCount()
throws com.atlassian.crowd.exception.OperationFailedException
Set<String> getAllLocalGroupNames() throws com.atlassian.crowd.exception.OperationFailedException
void addOrUpdateCachedUser(User user) throws com.atlassian.crowd.exception.OperationFailedException
void deleteCachedUser(String username) throws com.atlassian.crowd.exception.OperationFailedException
void addOrUpdateCachedGroup(Group group) throws com.atlassian.crowd.exception.OperationFailedException
void deleteCachedGroup(String groupName) throws com.atlassian.crowd.exception.OperationFailedException
void addUserToGroup(String username, String groupName) throws com.atlassian.crowd.exception.OperationFailedException
void removeUserFromGroup(String username, String groupName) throws com.atlassian.crowd.exception.OperationFailedException
void addGroupToGroup(String childGroup, String parentGroup) throws com.atlassian.crowd.exception.OperationFailedException
void removeGroupFromGroup(String childGroup, String parentGroup) throws com.atlassian.crowd.exception.OperationFailedException
void syncGroupMembershipsForUser(String childUsername, Set<String> parentGroupNames) throws com.atlassian.crowd.exception.OperationFailedException
void syncGroupMembershipsAndMembersForGroup(String groupName, Set<String> parentGroupNames, Set<String> childGroupNames) throws com.atlassian.crowd.exception.OperationFailedException
UserWithAttributes findUserWithAttributesByName(String name) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.OperationFailedException
GroupWithAttributes findGroupWithAttributesByName(String name) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.OperationFailedException
Map<String,String> findGroupsByExternalIds(Set<String> externalIds) throws com.atlassian.crowd.exception.OperationFailedException
externalIds - external ids of the groups to findcom.atlassian.crowd.exception.OperationFailedExceptionMap<String,String> findGroupsExternalIdsByNames(Set<String> groupNames) throws com.atlassian.crowd.exception.OperationFailedException
groupNames - names of the groups to findcom.atlassian.crowd.exception.OperationFailedExceptionvoid applySyncingUserAttributes(String userName, Set<String> deletedAttributes, Map<String,Set<String>> storedAttributes) throws com.atlassian.crowd.exception.UserNotFoundException, com.atlassian.crowd.exception.OperationFailedException
userName - user to apply attributes todeletedAttributes - attribute keys that need to be deletedstoredAttributes - attributes and values that need to be saved (will overwrite any existing attributes with the same keys)com.atlassian.crowd.exception.UserNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptionvoid applySyncingGroupAttributes(String groupName, Set<String> deletedAttributes, Map<String,Set<String>> storedAttributes) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.OperationFailedException
groupName - group to apply attributes todeletedAttributes - attribute keys that need to be deletedstoredAttributes - attributes and values that need to be saved (will overwrite any existing attributes with the same keys)com.atlassian.crowd.exception.GroupNotFoundExceptioncom.atlassian.crowd.exception.OperationFailedExceptionCopyright © 2023 Atlassian. All rights reserved.