Class ScopeAdapter
- java.lang.Object
- 
- org.keycloak.models.cache.infinispan.authorization.ScopeAdapter
 
- 
- All Implemented Interfaces:
- CachedModel<Scope>,- Scope
 
 public class ScopeAdapter extends Object implements Scope, CachedModel<Scope> - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.ScopeScope.FilterOption, Scope.SearchableFields
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected CachedScopecachedprotected StoreFactoryCacheSessioncacheSessionprotected booleaninvalidatedprotected Scopeupdated
 - 
Constructor SummaryConstructors Constructor Description ScopeAdapter(CachedScope cached, StoreFactoryCacheSession cacheSession)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetCacheTimestamp()When was the model was loaded from database.ScopegetDelegateForUpdate()Invalidates the cache for this model and returns a delegate that represents the actual data providerStringgetDisplayName()Returns the end user friendly name for this scope.StringgetIconUri()Returns an iconURIfor this scope.StringgetId()Returns the unique identifier for this instance.StringgetName()Returns the name of this scope.ResourceServergetResourceServer()Returns theResourceServerinstance to where this scope belongs to.inthashCode()voidinvalidate()Invalidate the cache for this modelprotected voidinvalidateFlag()protected booleanisUpdated()voidsetDisplayName(String name)Sets an end user friendly name for this scope.voidsetIconUri(String iconUri)Sets an iconURIfor this scope.voidsetName(String name)Sets a name for this scope.
 
- 
- 
- 
Field Detail- 
cachedprotected CachedScope cached 
 - 
cacheSessionprotected StoreFactoryCacheSession cacheSession 
 - 
updatedprotected Scope updated 
 - 
invalidatedprotected boolean invalidated 
 
- 
 - 
Constructor Detail- 
ScopeAdapterpublic ScopeAdapter(CachedScope cached, StoreFactoryCacheSession cacheSession) 
 
- 
 - 
Method Detail- 
getDelegateForUpdatepublic Scope getDelegateForUpdate() Description copied from interface:CachedModelInvalidates the cache for this model and returns a delegate that represents the actual data provider- Specified by:
- getDelegateForUpdatein interface- CachedModel<Scope>
- Returns:
 
 - 
invalidateFlagprotected void invalidateFlag() 
 - 
invalidatepublic void invalidate() Description copied from interface:CachedModelInvalidate the cache for this model- Specified by:
- invalidatein interface- CachedModel<Scope>
 
 - 
getCacheTimestamppublic long getCacheTimestamp() Description copied from interface:CachedModelWhen was the model was loaded from database.- Specified by:
- getCacheTimestampin interface- CachedModel<Scope>
- Returns:
 
 - 
isUpdatedprotected boolean isUpdated() 
 - 
getIdpublic String getId() Description copied from interface:ScopeReturns the unique identifier for this instance.
 - 
getNamepublic String getName() Description copied from interface:ScopeReturns the name of this scope.
 - 
setNamepublic void setName(String name) Description copied from interface:ScopeSets a name for this scope. The name must be unique.
 - 
getDisplayNamepublic String getDisplayName() Description copied from interface:ScopeReturns the end user friendly name for this scope. If not defined, value forScope.getName()is returned.- Specified by:
- getDisplayNamein interface- Scope
- Returns:
- the friendly name for this scope
 
 - 
setDisplayNamepublic void setDisplayName(String name) Description copied from interface:ScopeSets an end user friendly name for this scope.- Specified by:
- setDisplayNamein interface- Scope
- Parameters:
- name- the name of this scope
 
 - 
getIconUripublic String getIconUri() Description copied from interface:ScopeReturns an iconURIfor this scope.- Specified by:
- getIconUriin interface- Scope
- Returns:
- a uri for an icon
 
 - 
setIconUripublic void setIconUri(String iconUri) Description copied from interface:ScopeSets an iconURIfor this scope.- Specified by:
- setIconUriin interface- Scope
 
 - 
getResourceServerpublic ResourceServer getResourceServer() Description copied from interface:ScopeReturns theResourceServerinstance to where this scope belongs to.- Specified by:
- getResourceServerin interface- Scope
- Returns:
 
 
- 
 
-