- public class MembershipCache
- extends java.lang.Object
The membership check cache is a cache where the key is the
Both true and false membership checks are cached.
getMembershipKey(String, Group) for a given user
and group, and the value is a
Boolean indicating whether the user
is a member of that group.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MembershipCache(com.atlassian.cache.CacheFactory cacheFactory,
protected java.lang.String getMembershipKey(java.lang.String username,
public void put(User user,
public java.lang.Boolean get(User user,
Boolean.TRUE if the user is a member of the group,
Boolean.FALSE if the user is not a member of the group, or
null if the result is not in the cache.
public void remove(User user,
public void remove(java.util.List usernames,
- Remove all cached values for a list of users and an associated group.
Typically called to remove all membership information when a group is
usernames - a
List of username
group - the group of which the users are members.
Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.