Class PermissionTicketAdapter
java.lang.Object
org.keycloak.models.cache.infinispan.authorization.PermissionTicketAdapter
- All Implemented Interfaces:
CachedModel<PermissionTicket>,PermissionTicket
public class PermissionTicketAdapter
extends Object
implements PermissionTicket, CachedModel<PermissionTicket>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.PermissionTicket
PermissionTicket.FilterOption -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CachedPermissionTicketprotected StoreFactoryCacheSessionprotected booleanprotected PermissionTicket -
Constructor Summary
ConstructorsConstructorDescriptionPermissionTicketAdapter(CachedPermissionTicket cached, StoreFactoryCacheSession cacheSession) -
Method Summary
Modifier and TypeMethodDescriptionlongWhen was the model was loaded from database.Invalidates the cache for this model and returns a delegate that represents the actual data providergetId()Returns the unique identifier for this instance.getOwner()Returns the resource's owner, which is usually an identifier that uniquely identifies the resource's owner.Returns theResourceassociated with this instanceReturns theResourceServerwhere this policy belongs to.getScope()Returns theScopeassociated with this instanceinthashCode()voidInvalidate the cache for this modelprotected voidbooleanprotected booleanvoidsetGrantedTimestamp(Long millis) void
-
Field Details
-
cached
-
cacheSession
-
updated
-
invalidated
protected boolean invalidated
-
-
Constructor Details
-
PermissionTicketAdapter
public PermissionTicketAdapter(CachedPermissionTicket cached, StoreFactoryCacheSession cacheSession)
-
-
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<PermissionTicket>- Returns:
-
invalidateFlag
protected void invalidateFlag() -
invalidate
public void invalidate()Description copied from interface:CachedModelInvalidate the cache for this model- Specified by:
invalidatein interfaceCachedModel<PermissionTicket>
-
getCacheTimestamp
public long getCacheTimestamp()Description copied from interface:CachedModelWhen was the model was loaded from database.- Specified by:
getCacheTimestampin interfaceCachedModel<PermissionTicket>- Returns:
-
isUpdated
protected boolean isUpdated() -
getId
Description copied from interface:PermissionTicketReturns the unique identifier for this instance.- Specified by:
getIdin interfacePermissionTicket- Returns:
- the unique identifier for this instance
-
getOwner
Description copied from interface:PermissionTicketReturns the resource's owner, which is usually an identifier that uniquely identifies the resource's owner.- Specified by:
getOwnerin interfacePermissionTicket- Returns:
- the owner of this resource
-
getRequester
- Specified by:
getRequesterin interfacePermissionTicket
-
isGranted
public boolean isGranted()- Specified by:
isGrantedin interfacePermissionTicket
-
getCreatedTimestamp
- Specified by:
getCreatedTimestampin interfacePermissionTicket
-
getGrantedTimestamp
- Specified by:
getGrantedTimestampin interfacePermissionTicket
-
setGrantedTimestamp
- Specified by:
setGrantedTimestampin interfacePermissionTicket
-
getResourceServer
Description copied from interface:PermissionTicketReturns theResourceServerwhere this policy belongs to.- Specified by:
getResourceServerin interfacePermissionTicket- Returns:
- a resource server
-
getPolicy
- Specified by:
getPolicyin interfacePermissionTicket
-
setPolicy
- Specified by:
setPolicyin interfacePermissionTicket
-
getResource
Description copied from interface:PermissionTicketReturns theResourceassociated with this instance- Specified by:
getResourcein interfacePermissionTicket- Returns:
- the
Resourceassociated with this instance
-
getScope
Description copied from interface:PermissionTicketReturns theScopeassociated with this instance- Specified by:
getScopein interfacePermissionTicket- Returns:
- the
Scopeassociated with this instance
-
hashCode
public int hashCode()
-