Class ScopeAdapter
java.lang.Object
org.keycloak.models.cache.infinispan.authorization.ScopeAdapter
- All Implemented Interfaces:
CachedModel<Scope>,Scope
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.Scope
Scope.FilterOption -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CachedScopeprotected StoreFactoryCacheSessionprotected booleanprotected Scope -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongWhen was the model was loaded from database.Invalidates the cache for this model and returns a delegate that represents the actual data providerReturns the end user friendly name for this scope.Returns an iconURIfor this scope.getId()Returns the unique identifier for this instance.getName()Returns the name of this scope.Returns theResourceServerinstance to where this scope belongs to.inthashCode()voidInvalidate the cache for this modelprotected voidprotected booleanvoidsetDisplayName(String name) Sets an end user friendly name for this scope.voidsetIconUri(String iconUri) Sets an iconURIfor this scope.voidSets a name for this scope.
-
Field Details
-
cached
-
cacheSession
-
updated
-
invalidated
protected boolean invalidated
-
-
Constructor Details
-
ScopeAdapter
-
-
Method Details
-
getDelegateForUpdate
Description copied from interface:CachedModelInvalidates the cache for this model and returns a delegate that represents the actual data provider- Specified by:
getDelegateForUpdatein interfaceCachedModel<Scope>- Returns:
-
invalidateFlag
protected void invalidateFlag() -
invalidate
public void invalidate()Description copied from interface:CachedModelInvalidate the cache for this model- Specified by:
invalidatein interfaceCachedModel<Scope>
-
getCacheTimestamp
public long getCacheTimestamp()Description copied from interface:CachedModelWhen was the model was loaded from database.- Specified by:
getCacheTimestampin interfaceCachedModel<Scope>- Returns:
-
isUpdated
protected boolean isUpdated() -
getId
Description copied from interface:ScopeReturns the unique identifier for this instance. -
getName
Description copied from interface:ScopeReturns the name of this scope. -
setName
Description copied from interface:ScopeSets a name for this scope. The name must be unique. -
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 interfaceScope- Returns:
- the friendly name for this scope
-
setDisplayName
Description copied from interface:ScopeSets an end user friendly name for this scope.- Specified by:
setDisplayNamein interfaceScope- Parameters:
name- the name of this scope
-
getIconUri
Description copied from interface:ScopeReturns an iconURIfor this scope.- Specified by:
getIconUriin interfaceScope- Returns:
- a uri for an icon
-
setIconUri
Description copied from interface:ScopeSets an iconURIfor this scope.- Specified by:
setIconUriin interfaceScope
-
getResourceServer
Description copied from interface:ScopeReturns theResourceServerinstance to where this scope belongs to.- Specified by:
getResourceServerin interfaceScope- Returns:
-
equals
-
hashCode
public int hashCode()
-