Package com.atlassian.crowd.directory
Class DirectoryCacheImplUsingChangeOperations
java.lang.Object
com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations
- All Implemented Interfaces:
DirectoryCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupMembersForGroup(Group parentGroup, Set<String> remoteGroups) voidaddGroupToGroup(String childGroup, String parentGroup) voidaddOrUpdateCachedGroup(Group group) voidaddOrUpdateCachedGroups(Collection<? extends Group> remoteGroups, Date syncStartDate) voidaddOrUpdateCachedUser(User user) com.atlassian.crowd.directory.synchronisation.utils.AddUpdateSets<UserTemplateWithCredentialAndAttributes,UserTemplate> addOrUpdateCachedUsers(Collection<? extends User> remoteUsers, Date syncStartDate) voidaddUserMembersForGroup(Group parentGroup, Set<String> remoteUsers) voidaddUserToGroup(String username, String groupName) voidapplySyncingGroupAttributes(String groupName, Set<String> deletedAttributes, Map<String, Set<String>> storedAttributes) voidapplySyncingUserAttributes(String userName, Set<String> deletedAttributes, Map<String, Set<String>> storedAttributes) voiddeleteCachedGroup(String groupName) voiddeleteCachedGroups(Set<String> groupnames) voiddeleteCachedGroupsByGuids(Set<String> guids) voiddeleteCachedGroupsNotIn(GroupType groupType, List<? extends Group> remoteGroups, Date syncStartDate) voiddeleteCachedGroupsNotInByExternalId(Collection<? extends Group> remoteGroups, Date syncStartDate) voiddeleteCachedUser(String username) voiddeleteCachedUsersByGuid(Set<String> guids) voiddeleteCachedUsersNotIn(Collection<? extends User> users, Date syncStartDate) voiddeleteGroupMembersForGroup(Group parentGroup, Set<String> remoteGroups) voiddeleteUserMembersForGroup(Group parentGroup, Set<String> remoteUsers) findGroupsByExternalIds(Set<String> externalIds) findGroupsExternalIdsByNames(Set<String> groupNames) findUsersByExternalIds(Set<String> externalIds) longlonglongvoidremoveGroupFromGroup(String childGroup, String parentGroup) voidremoveUserFromGroup(String username, String groupName) voidsyncGroupMembersForGroup(Group parentGroup, Collection<String> remoteGroups) voidsyncGroupMembershipsAndMembersForGroup(String groupName, Set<String> parentGroupNames, Set<String> childGroupNames) voidsyncGroupMembershipsForUser(String childUsername, Set<String> parentGroupNames) voidsyncUserMembersForGroup(Group parentGroup, Collection<String> remoteUsers)
-
Constructor Details
-
DirectoryCacheImplUsingChangeOperations
-
-
Method Details
-
addOrUpdateCachedUsers
public com.atlassian.crowd.directory.synchronisation.utils.AddUpdateSets<UserTemplateWithCredentialAndAttributes,UserTemplate> addOrUpdateCachedUsers(Collection<? extends User> remoteUsers, Date syncStartDate) throws OperationFailedException - Specified by:
addOrUpdateCachedUsersin interfaceDirectoryCache- Throws:
OperationFailedException
-
deleteCachedUsersByGuid
- Specified by:
deleteCachedUsersByGuidin interfaceDirectoryCache- Throws:
OperationFailedException
-
addOrUpdateCachedGroups
public void addOrUpdateCachedGroups(Collection<? extends Group> remoteGroups, Date syncStartDate) throws OperationFailedException - Specified by:
addOrUpdateCachedGroupsin interfaceDirectoryCache- Throws:
OperationFailedException
-
deleteCachedGroupsNotIn
public void deleteCachedGroupsNotIn(GroupType groupType, List<? extends Group> remoteGroups, Date syncStartDate) throws OperationFailedException - Specified by:
deleteCachedGroupsNotInin interfaceDirectoryCache- Throws:
OperationFailedException
-
deleteCachedGroupsNotInByExternalId
public void deleteCachedGroupsNotInByExternalId(Collection<? extends Group> remoteGroups, Date syncStartDate) throws OperationFailedException - Specified by:
deleteCachedGroupsNotInByExternalIdin interfaceDirectoryCache- Throws:
OperationFailedException
-
syncUserMembersForGroup
public void syncUserMembersForGroup(Group parentGroup, Collection<String> remoteUsers) throws OperationFailedException - Specified by:
syncUserMembersForGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
addUserMembersForGroup
public void addUserMembersForGroup(Group parentGroup, Set<String> remoteUsers) throws OperationFailedException - Specified by:
addUserMembersForGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
deleteUserMembersForGroup
public void deleteUserMembersForGroup(Group parentGroup, Set<String> remoteUsers) throws OperationFailedException - Specified by:
deleteUserMembersForGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
syncGroupMembersForGroup
public void syncGroupMembersForGroup(Group parentGroup, Collection<String> remoteGroups) throws OperationFailedException - Specified by:
syncGroupMembersForGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
addGroupMembersForGroup
public void addGroupMembersForGroup(Group parentGroup, Set<String> remoteGroups) throws OperationFailedException - Specified by:
addGroupMembersForGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
deleteGroupMembersForGroup
public void deleteGroupMembersForGroup(Group parentGroup, Set<String> remoteGroups) throws OperationFailedException - Specified by:
deleteGroupMembersForGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
deleteCachedGroups
- Specified by:
deleteCachedGroupsin interfaceDirectoryCache- Throws:
OperationFailedException
-
deleteCachedGroupsByGuids
- Specified by:
deleteCachedGroupsByGuidsin interfaceDirectoryCache- Throws:
OperationFailedException
-
deleteCachedUsersNotIn
public void deleteCachedUsersNotIn(Collection<? extends User> users, Date syncStartDate) throws OperationFailedException - Specified by:
deleteCachedUsersNotInin interfaceDirectoryCache- Throws:
OperationFailedException
-
addOrUpdateCachedUser
- Specified by:
addOrUpdateCachedUserin interfaceDirectoryCache- Throws:
OperationFailedException
-
deleteCachedUser
- Specified by:
deleteCachedUserin interfaceDirectoryCache- Throws:
OperationFailedException
-
addOrUpdateCachedGroup
- Specified by:
addOrUpdateCachedGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
deleteCachedGroup
- Specified by:
deleteCachedGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
addUserToGroup
- Specified by:
addUserToGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
removeUserFromGroup
- Specified by:
removeUserFromGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
addGroupToGroup
- Specified by:
addGroupToGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
removeGroupFromGroup
public void removeGroupFromGroup(String childGroup, String parentGroup) throws OperationFailedException - Specified by:
removeGroupFromGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
syncGroupMembershipsForUser
public void syncGroupMembershipsForUser(String childUsername, Set<String> parentGroupNames) throws OperationFailedException - Specified by:
syncGroupMembershipsForUserin interfaceDirectoryCache- Throws:
OperationFailedException
-
syncGroupMembershipsAndMembersForGroup
public void syncGroupMembershipsAndMembersForGroup(String groupName, Set<String> parentGroupNames, Set<String> childGroupNames) throws OperationFailedException - Specified by:
syncGroupMembershipsAndMembersForGroupin interfaceDirectoryCache- Throws:
OperationFailedException
-
getAllUserGuids
- Specified by:
getAllUserGuidsin interfaceDirectoryCache- Throws:
OperationFailedException
-
getAllGroupGuids
- Specified by:
getAllGroupGuidsin interfaceDirectoryCache- Throws:
OperationFailedException
-
getAllLocalGroupNames
- Specified by:
getAllLocalGroupNamesin interfaceDirectoryCache- Throws:
OperationFailedException
-
getUserCount
- Specified by:
getUserCountin interfaceDirectoryCache- Throws:
OperationFailedException
-
getGroupCount
- Specified by:
getGroupCountin interfaceDirectoryCache- Throws:
OperationFailedException
-
getExternalCachedGroupCount
- Specified by:
getExternalCachedGroupCountin interfaceDirectoryCache- Throws:
OperationFailedException
-
findUserWithAttributesByName
public UserWithAttributes findUserWithAttributesByName(String name) throws UserNotFoundException, OperationFailedException - Specified by:
findUserWithAttributesByNamein interfaceDirectoryCache- Throws:
UserNotFoundExceptionOperationFailedException
-
findUsersByExternalIds
- Specified by:
findUsersByExternalIdsin interfaceDirectoryCache
-
findGroupsByExternalIds
public Map<String,String> findGroupsByExternalIds(Set<String> externalIds) throws OperationFailedException - Specified by:
findGroupsByExternalIdsin interfaceDirectoryCache- Throws:
OperationFailedException
-
findGroupsExternalIdsByNames
public Map<String,String> findGroupsExternalIdsByNames(Set<String> groupNames) throws OperationFailedException - Specified by:
findGroupsExternalIdsByNamesin interfaceDirectoryCache- Throws:
OperationFailedException
-
findGroupWithAttributesByName
public GroupWithAttributes findGroupWithAttributesByName(String name) throws GroupNotFoundException, OperationFailedException - Specified by:
findGroupWithAttributesByNamein interfaceDirectoryCache- Throws:
GroupNotFoundExceptionOperationFailedException
-
applySyncingUserAttributes
public void applySyncingUserAttributes(String userName, Set<String> deletedAttributes, Map<String, Set<String>> storedAttributes) throws UserNotFoundException, OperationFailedException- Specified by:
applySyncingUserAttributesin interfaceDirectoryCache- Throws:
UserNotFoundExceptionOperationFailedException
-
applySyncingGroupAttributes
public void applySyncingGroupAttributes(String groupName, Set<String> deletedAttributes, Map<String, Set<String>> storedAttributes) throws GroupNotFoundException, OperationFailedException- Specified by:
applySyncingGroupAttributesin interfaceDirectoryCache- Throws:
GroupNotFoundExceptionOperationFailedException
-