public interface GroupMembershipCache
Modifier and Type | Method and Description |
---|---|
List<com.atlassian.crowd.model.group.InternalDirectoryGroup> |
getGroupsForGroup(long directoryId,
String groupName)
Returns the list of groups which are cached for the given group name in the specified directory.
|
void |
removeAllDirectoryMemberships(long directoryId)
Removes any entries in the cache which relate to the specified directory.
|
void |
removeAllGroupMemberships(com.atlassian.crowd.model.group.Group group)
Removes any entries in the cache which contain the group in its directory.
|
void |
removeGroupGroupMemberships(long directoryId,
String groupName)
Removes any list of groups which are cached for the named group in the specified directory.
|
void |
setGroupsForGroup(long directoryId,
String group,
Iterable<com.atlassian.crowd.model.group.InternalDirectoryGroup> parentGroups)
Caches the list of Group objects for each membership for the given group name in the specified directory.
|
void setGroupsForGroup(long directoryId, String group, Iterable<com.atlassian.crowd.model.group.InternalDirectoryGroup> parentGroups)
List<com.atlassian.crowd.model.group.InternalDirectoryGroup> getGroupsForGroup(long directoryId, String groupName)
null
if there is no cached list.void removeGroupGroupMemberships(long directoryId, String groupName)
void removeAllGroupMemberships(com.atlassian.crowd.model.group.Group group)
This can be a slow operation if the cache is large. This is a trade-off of the cache design, which is optimised for fast retrieval of the list of groups cached for a group.
Removes any GROUPS_FOR_GROUP entry in this cache for the passed in group.
void removeAllDirectoryMemberships(long directoryId)
This can be a slow operation if the cache is large. This is a trade-off of the cache design, which is optimised for fast retrieval of the list of groups cached for a group.
Copyright © 2003–2020 Atlassian. All rights reserved.