com.atlassian.crowd.directory
Class DirectoryCacheImplUsingChangeOperations
java.lang.Object
com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations
- All Implemented Interfaces:
- DirectoryCache
public class DirectoryCacheImplUsingChangeOperations
- extends Object
- implements DirectoryCache
|
Method Summary |
void |
addGroupToGroup(String childGroup,
String parentGroup)
|
void |
addOrUpdateCachedGroup(Group group)
|
void |
addOrUpdateCachedGroups(List<? extends Group> remoteGroups,
Date syncStartDate)
|
void |
addOrUpdateCachedUser(User user)
|
void |
addOrUpdateCachedUsers(List<? extends User> remoteUsers,
Date syncStartDate)
|
void |
addUserToGroup(String username,
String groupName)
|
void |
applySyncingGroupAttributes(String groupName,
Set<String> deletedAttributes,
Map<String,Set<String>> storedAttributes)
|
void |
deleteCachedGroup(String groupName)
|
void |
deleteCachedGroups(Set<String> groupnames)
|
void |
deleteCachedGroupsNotIn(GroupType groupType,
List<? extends Group> remoteGroups,
Date syncStartDate)
|
void |
deleteCachedUser(String username)
|
void |
deleteCachedUsersByGuid(Set<String> guids)
|
void |
deleteCachedUsersNotIn(List<? extends User> users,
Date syncStartDate)
|
GroupWithAttributes |
findGroupWithAttributesByName(String name)
|
Set<String> |
getAllUserGuids()
|
long |
getUserCount()
|
void |
removeGroupFromGroup(String childGroup,
String parentGroup)
|
void |
removeUserFromGroup(String username,
String groupName)
|
void |
syncGroupMembersForGroup(Group parentGroup,
Collection<String> remoteGroups)
|
void |
syncGroupMembershipsAndMembersForGroup(String groupName,
Set<String> parentGroupNames,
Set<String> childGroupNames)
|
void |
syncGroupMembershipsForUser(String childUsername,
Set<String> parentGroupNames)
|
void |
syncUserMembersForGroup(Group group,
Collection<String> remoteUsers)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryCacheImplUsingChangeOperations
public DirectoryCacheImplUsingChangeOperations(com.atlassian.crowd.directory.DirectoryCacheChangeOperations dc)
addOrUpdateCachedUsers
public void addOrUpdateCachedUsers(List<? extends User> remoteUsers,
Date syncStartDate)
throws OperationFailedException
- Specified by:
addOrUpdateCachedUsers in interface DirectoryCache
- Throws:
OperationFailedException
deleteCachedUsersByGuid
public void deleteCachedUsersByGuid(Set<String> guids)
throws OperationFailedException
- Specified by:
deleteCachedUsersByGuid in interface DirectoryCache
- Throws:
OperationFailedException
addOrUpdateCachedGroups
public void addOrUpdateCachedGroups(List<? extends Group> remoteGroups,
Date syncStartDate)
throws OperationFailedException
- Specified by:
addOrUpdateCachedGroups in interface DirectoryCache
- Throws:
OperationFailedException
deleteCachedGroupsNotIn
public void deleteCachedGroupsNotIn(GroupType groupType,
List<? extends Group> remoteGroups,
Date syncStartDate)
throws OperationFailedException
- Specified by:
deleteCachedGroupsNotIn in interface DirectoryCache
- Throws:
OperationFailedException
syncUserMembersForGroup
public void syncUserMembersForGroup(Group group,
Collection<String> remoteUsers)
throws OperationFailedException
- Specified by:
syncUserMembersForGroup in interface DirectoryCache
- Throws:
OperationFailedException
syncGroupMembersForGroup
public void syncGroupMembersForGroup(Group parentGroup,
Collection<String> remoteGroups)
throws OperationFailedException
- Specified by:
syncGroupMembersForGroup in interface DirectoryCache
- Throws:
OperationFailedException
deleteCachedGroups
public void deleteCachedGroups(Set<String> groupnames)
throws OperationFailedException
- Specified by:
deleteCachedGroups in interface DirectoryCache
- Throws:
OperationFailedException
deleteCachedUsersNotIn
public void deleteCachedUsersNotIn(List<? extends User> users,
Date syncStartDate)
throws OperationFailedException
- Specified by:
deleteCachedUsersNotIn in interface DirectoryCache
- Throws:
OperationFailedException
addOrUpdateCachedUser
public void addOrUpdateCachedUser(User user)
throws OperationFailedException
- Specified by:
addOrUpdateCachedUser in interface DirectoryCache
- Throws:
OperationFailedException
deleteCachedUser
public void deleteCachedUser(String username)
throws OperationFailedException
- Specified by:
deleteCachedUser in interface DirectoryCache
- Throws:
OperationFailedException
addOrUpdateCachedGroup
public void addOrUpdateCachedGroup(Group group)
throws OperationFailedException
- Specified by:
addOrUpdateCachedGroup in interface DirectoryCache
- Throws:
OperationFailedException
deleteCachedGroup
public void deleteCachedGroup(String groupName)
throws OperationFailedException
- Specified by:
deleteCachedGroup in interface DirectoryCache
- Throws:
OperationFailedException
addUserToGroup
public void addUserToGroup(String username,
String groupName)
throws OperationFailedException
- Specified by:
addUserToGroup in interface DirectoryCache
- Throws:
OperationFailedException
removeUserFromGroup
public void removeUserFromGroup(String username,
String groupName)
throws OperationFailedException
- Specified by:
removeUserFromGroup in interface DirectoryCache
- Throws:
OperationFailedException
addGroupToGroup
public void addGroupToGroup(String childGroup,
String parentGroup)
throws OperationFailedException
- Specified by:
addGroupToGroup in interface DirectoryCache
- Throws:
OperationFailedException
removeGroupFromGroup
public void removeGroupFromGroup(String childGroup,
String parentGroup)
throws OperationFailedException
- Specified by:
removeGroupFromGroup in interface DirectoryCache
- Throws:
OperationFailedException
syncGroupMembershipsForUser
public void syncGroupMembershipsForUser(String childUsername,
Set<String> parentGroupNames)
throws OperationFailedException
- Specified by:
syncGroupMembershipsForUser in interface DirectoryCache
- Throws:
OperationFailedException
syncGroupMembershipsAndMembersForGroup
public void syncGroupMembershipsAndMembersForGroup(String groupName,
Set<String> parentGroupNames,
Set<String> childGroupNames)
throws OperationFailedException
- Specified by:
syncGroupMembershipsAndMembersForGroup in interface DirectoryCache
- Throws:
OperationFailedException
getAllUserGuids
public Set<String> getAllUserGuids()
throws OperationFailedException
- Specified by:
getAllUserGuids in interface DirectoryCache
- Throws:
OperationFailedException
getUserCount
public long getUserCount()
throws OperationFailedException
- Specified by:
getUserCount in interface DirectoryCache
- Throws:
OperationFailedException
findGroupWithAttributesByName
public GroupWithAttributes findGroupWithAttributesByName(String name)
throws GroupNotFoundException,
OperationFailedException
- Specified by:
findGroupWithAttributesByName in interface DirectoryCache
- Throws:
GroupNotFoundException
OperationFailedException
applySyncingGroupAttributes
public void applySyncingGroupAttributes(String groupName,
Set<String> deletedAttributes,
Map<String,Set<String>> storedAttributes)
throws GroupNotFoundException,
OperationFailedException
- Specified by:
applySyncingGroupAttributes in interface DirectoryCache
- Throws:
GroupNotFoundException
OperationFailedException
Copyright © 2016 Atlassian. All Rights Reserved.