523 if (name == null)
return null;
525 ScopeListQuery query =
cache.
get(cacheKey, ScopeListQuery.class);
527 logger.tracev(
"scope by name cache hit: {0}", name);
532 if (model == null)
return null;
534 query =
new ScopeListQuery(loaded, cacheKey, model.getId(), resourceServerId);
540 String
id = query.getScopes().iterator().next();
544 return findById(
id, query.getResourceServerId());
Long getCurrentRevision(String id)
Definition: CacheManager.java:77
Set< String > invalidations
Definition: StoreFactoryCacheSession.java:98
static String getScopeByNameCacheKey(String name, String serverId)
Definition: StoreFactoryCacheSession.java:338
Scope findByName(String name, String resourceServerId)
public< T extends Revisioned > T get(String id, Class< T > type)
Definition: CacheManager.java:94
Scope findById(String id, String resourceServerId)
Definition: StoreFactoryCacheSession.java:494
StoreFactoryCacheManager cache
Definition: StoreFactoryCacheSession.java:89
void addRevisioned(Revisioned object, long startupRevision)
Definition: CacheManager.java:132
static final Logger logger
Definition: StoreFactoryCacheSession.java:87
ScopeStore getScopeStoreDelegate()
Definition: StoreFactoryCacheSession.java:318
final long startupRevision
Definition: StoreFactoryCacheSession.java:102