|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupMembershipCache
A direction agnostic cache of maps from directory ids and group names to groups. Can be used for caching the list of members of a group, or the list of groups that a group is a member of.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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)
void removeAllDirectoryMemberships(long directoryId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |