コード例 #1
0
 public void clearCacheEntry(CacheKey key) {
   String keyValue = ((AuthorizationGrantCacheKey) key).getUserAttributesId();
   super.clearCacheEntry(keyValue);
   SessionDataStore.getInstance().clearSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME);
   if (enableRequestScopeCache) {
     SessionDataStore.getInstance().clearSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME);
   }
 }
コード例 #2
0
 public void addToCache(CacheKey key, CacheEntry entry) {
   String keyValue = ((AuthorizationGrantCacheKey) key).getUserAttributesId();
   super.addToCache(keyValue, entry);
   SessionDataStore.getInstance()
       .storeSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME, entry);
   if (enableRequestScopeCache) {
     SessionDataStore.getInstance()
         .storeSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME, entry);
   }
 }
コード例 #3
0
 public CacheEntry getValueFromCache(CacheKey key) {
   String keyValue = ((AuthorizationGrantCacheKey) key).getUserAttributesId();
   CacheEntry cacheEntry = super.getValueFromCache(keyValue);
   if (cacheEntry == null) {
     cacheEntry =
         (CacheEntry)
             SessionDataStore.getInstance()
                 .getSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME);
   }
   return cacheEntry;
 }
コード例 #4
0
 private void storeToSessionStore(String id, AuthorizationGrantCacheEntry entry) {
   SessionDataStore.getInstance().storeSessionData(id, AUTHORIZATION_GRANT_CACHE_NAME, entry);
 }
コード例 #5
0
 private AuthorizationGrantCacheEntry getFromSessionStore(String id) {
   return (AuthorizationGrantCacheEntry)
       SessionDataStore.getInstance().getSessionData(id, AUTHORIZATION_GRANT_CACHE_NAME);
 }
コード例 #6
0
 private void clearFromSessionStore(String id) {
   SessionDataStore.getInstance().clearSessionData(id, AUTHORIZATION_GRANT_CACHE_NAME);
 }