com.atlassian.user.impl.cache
Class GroupCache
java.lang.Object
com.atlassian.user.impl.cache.GroupCache
- public class GroupCache
- extends java.lang.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. |
Method Summary |
Group |
get(java.lang.String groupName)
|
void |
put(java.lang.String groupName,
Group group)
Stores the specified group in the cache against the group name. |
void |
remove(java.lang.String groupName)
|
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,
java.lang.String cacheName)
put
public void put(java.lang.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(java.lang.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(java.lang.String groupName)
Copyright © 2005-2007 Atlassian Software Systems Pty Ltd. All Rights Reserved.