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.Scope
Scope.FilterOption, Scope.SearchableFields
-
-
Field Summary
Fields Modifier and Type Field Description protected CachedScopecachedprotected StoreFactoryCacheSessioncacheSessionprotected booleaninvalidatedprotected Scopeupdated
-
Constructor Summary
Constructors Constructor Description ScopeAdapter(CachedScope cached, StoreFactoryCacheSession cacheSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetCacheTimestamp()ScopegetDelegateForUpdate()StringgetDisplayName()StringgetIconUri()StringgetId()StringgetName()ResourceServergetResourceServer()inthashCode()voidinvalidate()protected voidinvalidateFlag()protected booleanisUpdated()voidsetDisplayName(String name)voidsetIconUri(String iconUri)voidsetName(String name)
-
-
-
Field Detail
-
cached
protected CachedScope cached
-
cacheSession
protected StoreFactoryCacheSession cacheSession
-
updated
protected Scope updated
-
invalidated
protected boolean invalidated
-
-
Constructor Detail
-
ScopeAdapter
public ScopeAdapter(CachedScope cached, StoreFactoryCacheSession cacheSession)
-
-
Method Detail
-
getDelegateForUpdate
public Scope getDelegateForUpdate()
- Specified by:
getDelegateForUpdatein interfaceCachedModel<Scope>
-
invalidateFlag
protected void invalidateFlag()
-
invalidate
public void invalidate()
- Specified by:
invalidatein interfaceCachedModel<Scope>
-
getCacheTimestamp
public long getCacheTimestamp()
- Specified by:
getCacheTimestampin interfaceCachedModel<Scope>
-
isUpdated
protected boolean isUpdated()
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceScope
-
setDisplayName
public void setDisplayName(String name)
- Specified by:
setDisplayNamein interfaceScope
-
getIconUri
public String getIconUri()
- Specified by:
getIconUriin interfaceScope
-
setIconUri
public void setIconUri(String iconUri)
- Specified by:
setIconUriin interfaceScope
-
getResourceServer
public ResourceServer getResourceServer()
- Specified by:
getResourceServerin interfaceScope
-
-