|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DirectoryCache
A cache of users, groups and memberships for an external Directory.
The CacheRefresher
passes the updated data to this interface for caching.
UsnChangedCacheRefresher
Method Summary | |
---|---|
void |
addGroupToGroup(String childGroup,
String parentGroup)
|
void |
addOrUpdateCachedGroup(Group group)
|
void |
addOrUpdateCachedGroups(List<? extends Group> groups,
Date syncStartDate)
|
void |
addOrUpdateCachedUser(User user)
|
void |
addOrUpdateCachedUsers(List<? extends User> users,
Date syncStartDate)
Synchronises a list of Users from an external directory in the local cache. |
void |
addUserToGroup(String username,
String groupName)
|
void |
deleteCachedGroup(String groupName)
|
void |
deleteCachedGroups(Set<String> groupnames)
|
void |
deleteCachedGroupsNotIn(GroupType groupType,
List<? extends Group> ldapGroups,
Date syncStartDate)
|
void |
deleteCachedUser(String username)
|
void |
deleteCachedUsers(Set<String> usernames)
|
void |
deleteCachedUsersNotIn(List<? extends User> users,
Date syncStartDate)
|
void |
removeGroupFromGroup(String childGroup,
String parentGroup)
|
void |
removeUserFromGroup(String username,
String groupName)
|
void |
syncGroupMembersForGroup(Group ldapGroup,
Collection<String> groups)
|
void |
syncGroupMembershipsAndMembersForGroup(String groupName,
Set<String> parentGroupNames,
Set<String> childGroupNames)
|
void |
syncGroupMembershipsForUser(String childUsername,
Set<String> parentGroupNames)
|
void |
syncUserMembersForGroup(Group ldapGroup,
Collection<String> remoteUsers)
|
Method Detail |
---|
void addOrUpdateCachedUsers(List<? extends User> users, Date syncStartDate) throws OperationFailedException
If the syncStartDate is not null, then it is used to ensure we don't re-introduce stale data if a User is updated
locally after we did our search.
Some callers may intentionally choose to pass null - eg when UsnChangedCacheRefresher
does a partial synchronise.
users
- A list of Users from the external directory.syncStartDate
- The date that the synchronise started (can be null).
OperationFailedException
- If the Internal Directory throws a OperationFailedException - which seems unlikely.void deleteCachedUsersNotIn(List<? extends User> users, Date syncStartDate) throws OperationFailedException
OperationFailedException
void deleteCachedUsers(Set<String> usernames) throws OperationFailedException
OperationFailedException
void addOrUpdateCachedGroups(List<? extends Group> groups, Date syncStartDate) throws OperationFailedException
OperationFailedException
void deleteCachedGroupsNotIn(GroupType groupType, List<? extends Group> ldapGroups, Date syncStartDate) throws OperationFailedException
OperationFailedException
void deleteCachedGroups(Set<String> groupnames) throws OperationFailedException
OperationFailedException
void syncUserMembersForGroup(Group ldapGroup, Collection<String> remoteUsers) throws OperationFailedException
OperationFailedException
void syncGroupMembersForGroup(Group ldapGroup, Collection<String> groups) throws OperationFailedException
OperationFailedException
void addOrUpdateCachedUser(User user) throws OperationFailedException
OperationFailedException
void deleteCachedUser(String username) throws OperationFailedException
OperationFailedException
void addOrUpdateCachedGroup(Group group) throws OperationFailedException
OperationFailedException
void deleteCachedGroup(String groupName) throws OperationFailedException
OperationFailedException
void addUserToGroup(String username, String groupName) throws OperationFailedException
OperationFailedException
void removeUserFromGroup(String username, String groupName) throws OperationFailedException
OperationFailedException
void addGroupToGroup(String childGroup, String parentGroup) throws OperationFailedException
OperationFailedException
void removeGroupFromGroup(String childGroup, String parentGroup) throws OperationFailedException
OperationFailedException
void syncGroupMembershipsForUser(String childUsername, Set<String> parentGroupNames) throws OperationFailedException
OperationFailedException
void syncGroupMembershipsAndMembersForGroup(String groupName, Set<String> parentGroupNames, Set<String> childGroupNames) throws OperationFailedException
OperationFailedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |