com.atlassian.user.impl.cache
Class EntityRepositoryCache
java.lang.Object
com.atlassian.user.impl.cache.EntityRepositoryCache
public class EntityRepositoryCache
- extends Object
The repository cache is a cache where the key is the entity name as a
String and the value is the RepositoryIdentifier which
contains the entity.
This shouldn't be necessary once Entity objects are aware
of the repository which manages them.
A separate cache for User and Group
objects should be maintained, since they have a separate namespace for names.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityRepositoryCache
public EntityRepositoryCache(com.atlassian.cache.CacheFactory cacheFactory,
String cacheName)
put
public void put(Entity entity,
RepositoryIdentifier repository)
get
public RepositoryIdentifier get(Entity entity)
- Returns the repository containing the entity if found in the case,
or null if this entity is not in the cache.
remove
public void remove(Entity entity)
Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.