Class ResourceAdapter
java.lang.Object
org.keycloak.models.cache.infinispan.authorization.ResourceAdapter
- All Implemented Interfaces:
CachedModel<Resource>,Resource
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.Resource
Resource.FilterOption -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CachedResourceprotected final StoreFactoryCacheSessionprotected booleanprotected Resource -
Constructor Summary
ConstructorsConstructorDescriptionResourceAdapter(CachedResource cached, StoreFactoryCacheSession cacheSession) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAttribute(String name) longgetId()getName()getOwner()getSingleAttribute(String name) getType()getUris()inthashCode()voidprotected voidbooleanprotected booleanvoidremoveAttribute(String name) voidsetAttribute(String name, List<String> values) voidsetDisplayName(String name) voidsetIconUri(String iconUri) voidvoidsetOwnerManagedAccess(boolean ownerManagedAccess) voidvoidupdateScopes(Set<Scope> scopes) voidupdateUris(Set<String> uris)
-
Field Details
-
cached
-
cacheSession
-
updated
-
invalidated
protected boolean invalidated -
scopes
-
-
Constructor Details
-
ResourceAdapter
-
-
Method Details
-
getDelegateForUpdate
- Specified by:
getDelegateForUpdatein interfaceCachedModel<Resource>
-
invalidateFlag
protected void invalidateFlag() -
invalidate
public void invalidate()- Specified by:
invalidatein interfaceCachedModel<Resource>
-
getCacheTimestamp
public long getCacheTimestamp()- Specified by:
getCacheTimestampin interfaceCachedModel<Resource>
-
isUpdated
protected boolean isUpdated() -
getId
-
getName
-
setName
-
getDisplayName
- Specified by:
getDisplayNamein interfaceResource
-
setDisplayName
- Specified by:
setDisplayNamein interfaceResource
-
getIconUri
- Specified by:
getIconUriin interfaceResource
-
setIconUri
- Specified by:
setIconUriin interfaceResource
-
getResourceServer
- Specified by:
getResourceServerin interfaceResource
-
getUris
-
updateUris
- Specified by:
updateUrisin interfaceResource
-
getType
-
setType
-
getScopes
-
getOwner
-
isOwnerManagedAccess
public boolean isOwnerManagedAccess()- Specified by:
isOwnerManagedAccessin interfaceResource
-
setOwnerManagedAccess
public void setOwnerManagedAccess(boolean ownerManagedAccess) - Specified by:
setOwnerManagedAccessin interfaceResource
-
updateScopes
- Specified by:
updateScopesin interfaceResource
-
getAttributes
- Specified by:
getAttributesin interfaceResource
-
getSingleAttribute
- Specified by:
getSingleAttributein interfaceResource
-
getAttribute
- Specified by:
getAttributein interfaceResource
-
setAttribute
- Specified by:
setAttributein interfaceResource
-
removeAttribute
- Specified by:
removeAttributein interfaceResource
-
equals
-
hashCode
public int hashCode()
-