com.atlassian.user.impl.cache
Class GroupCache
java.lang.Object
com.atlassian.user.impl.cache.GroupCache
public class GroupCache
- extends Object
Caches the groups retrieved from the underlying group manager.
Will also cache the fact that a group could not be found so that we don't incur
the expense of another search when have previously determined that a group doesn't
exist.
- See Also:
CachingGroupManager
|
Field Summary |
static Group |
NULL_GROUP
The NULL_GROUP is stored as the value in the groups cache when
a group that does not exist is requested. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_GROUP
public static final Group NULL_GROUP
- The NULL_GROUP is stored as the value in the groups cache when
a group that does not exist is requested.
GroupCache
public GroupCache(CacheManager cacheManager,
String cacheName)
put
public void put(String groupName,
Group group)
- Stores the specified group in the cache against the group name.
If group is null, stores
NULL_GROUP in the cache so the
fact that the group does not exist is remembered by the
cache.
get
public Group get(String groupName)
- Returns:
- the group with the cached name,
NULL_GROUP if the
group could not be found on the previous search, or null if no
group with that name is in the cache.
remove
public void remove(String groupName)