public class DefaultGroupMembershipCache extends Object implements GroupMembershipCache
Constructor and Description |
---|
DefaultGroupMembershipCache(com.atlassian.cache.CacheFactory cacheFactory,
String cacheKey) |
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 groupName,
Iterable<com.atlassian.crowd.model.group.InternalDirectoryGroup> referencedGroups)
Caches the list of Group objects for each membership for the given group name in the specified directory.
|
public DefaultGroupMembershipCache(com.atlassian.cache.CacheFactory cacheFactory, String cacheKey)
public void setGroupsForGroup(long directoryId, String groupName, Iterable<com.atlassian.crowd.model.group.InternalDirectoryGroup> referencedGroups)
GroupMembershipCache
setGroupsForGroup
in interface GroupMembershipCache
public List<com.atlassian.crowd.model.group.InternalDirectoryGroup> getGroupsForGroup(long directoryId, String groupName)
GroupMembershipCache
null
if there is no cached list.getGroupsForGroup
in interface GroupMembershipCache
public void removeGroupGroupMemberships(long directoryId, String groupName)
GroupMembershipCache
removeGroupGroupMemberships
in interface GroupMembershipCache
public void removeAllGroupMemberships(com.atlassian.crowd.model.group.Group group)
GroupMembershipCache
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.
removeAllGroupMemberships
in interface GroupMembershipCache
public void removeAllDirectoryMemberships(long directoryId)
GroupMembershipCache
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.
removeAllDirectoryMemberships
in interface GroupMembershipCache
Copyright © 2003–2016 Atlassian. All rights reserved.