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
removeAllGroupMemberships
in interface GroupMembershipCache
public void removeAllDirectoryMemberships(long directoryId)
GroupMembershipCache
removeAllDirectoryMemberships
in interface GroupMembershipCache
Copyright © 2003–2015 Atlassian. All rights reserved.