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.PermissionTicketPermissionTicket.FilterOption, PermissionTicket.SearchableFields
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected CachedPermissionTicketcachedprotected StoreFactoryCacheSessioncacheSessionprotected booleaninvalidatedprotected PermissionTicketupdated
 - 
Constructor SummaryConstructors Constructor Description PermissionTicketAdapter(CachedPermissionTicket cached, StoreFactoryCacheSession cacheSession)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCacheTimestamp()When was the model was loaded from database.LonggetCreatedTimestamp()PermissionTicketgetDelegateForUpdate()Invalidates the cache for this model and returns a delegate that represents the actual data providerLonggetGrantedTimestamp()StringgetId()Returns the unique identifier for this instance.StringgetOwner()Returns the resource's owner, which is usually an identifier that uniquely identifies the resource's owner.PolicygetPolicy()StringgetRequester()ResourcegetResource()Returns theResourceassociated with this instanceResourceServergetResourceServer()Returns theResourceServerwhere this policy belongs to.ScopegetScope()Returns theScopeassociated with this instanceinthashCode()voidinvalidate()Invalidate the cache for this modelprotected voidinvalidateFlag()booleanisGranted()protected booleanisUpdated()voidsetGrantedTimestamp(Long millis)voidsetPolicy(Policy policy)
 
- 
- 
- 
Field Detail- 
cachedprotected CachedPermissionTicket cached 
 - 
cacheSessionprotected StoreFactoryCacheSession cacheSession 
 - 
updatedprotected PermissionTicket updated 
 - 
invalidatedprotected boolean invalidated 
 
- 
 - 
Constructor Detail- 
PermissionTicketAdapterpublic PermissionTicketAdapter(CachedPermissionTicket cached, StoreFactoryCacheSession cacheSession) 
 
- 
 - 
Method Detail- 
getDelegateForUpdatepublic PermissionTicket 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<PermissionTicket>
- Returns:
 
 - 
invalidateFlagprotected void invalidateFlag() 
 - 
invalidatepublic void invalidate() Description copied from interface:CachedModelInvalidate the cache for this model- Specified by:
- invalidatein interface- CachedModel<PermissionTicket>
 
 - 
getCacheTimestamppublic long getCacheTimestamp() Description copied from interface:CachedModelWhen was the model was loaded from database.- Specified by:
- getCacheTimestampin interface- CachedModel<PermissionTicket>
- Returns:
 
 - 
isUpdatedprotected boolean isUpdated() 
 - 
getIdpublic String getId() Description copied from interface:PermissionTicketReturns the unique identifier for this instance.- Specified by:
- getIdin interface- PermissionTicket
- Returns:
- the unique identifier for this instance
 
 - 
getOwnerpublic String 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 interface- PermissionTicket
- Returns:
- the owner of this resource
 
 - 
getRequesterpublic String getRequester() - Specified by:
- getRequesterin interface- PermissionTicket
 
 - 
isGrantedpublic boolean isGranted() - Specified by:
- isGrantedin interface- PermissionTicket
 
 - 
getCreatedTimestamppublic Long getCreatedTimestamp() - Specified by:
- getCreatedTimestampin interface- PermissionTicket
 
 - 
getGrantedTimestamppublic Long getGrantedTimestamp() - Specified by:
- getGrantedTimestampin interface- PermissionTicket
 
 - 
setGrantedTimestamppublic void setGrantedTimestamp(Long millis) - Specified by:
- setGrantedTimestampin interface- PermissionTicket
 
 - 
getResourceServerpublic ResourceServer getResourceServer() Description copied from interface:PermissionTicketReturns theResourceServerwhere this policy belongs to.- Specified by:
- getResourceServerin interface- PermissionTicket
- Returns:
- a resource server
 
 - 
getPolicypublic Policy getPolicy() - Specified by:
- getPolicyin interface- PermissionTicket
 
 - 
setPolicypublic void setPolicy(Policy policy) - Specified by:
- setPolicyin interface- PermissionTicket
 
 - 
getResourcepublic Resource getResource() Description copied from interface:PermissionTicketReturns theResourceassociated with this instance- Specified by:
- getResourcein interface- PermissionTicket
- Returns:
- the Resourceassociated with this instance
 
 - 
getScopepublic Scope getScope() Description copied from interface:PermissionTicketReturns theScopeassociated with this instance- Specified by:
- getScopein interface- PermissionTicket
- Returns:
- the Scopeassociated with this instance
 
 
- 
 
-