public class PermissionTicketAdapter extends Object implements PermissionTicket, CachedModel<PermissionTicket>
| Modifier and Type | Field and Description |
|---|---|
protected CachedPermissionTicket |
cached |
protected StoreFactoryCacheSession |
cacheSession |
protected boolean |
invalidated |
protected PermissionTicket |
updated |
GRANTED, ID, OWNER, POLICY, POLICY_IS_NOT_NULL, REQUESTER, REQUESTER_IS_NULL, RESOURCE, RESOURCE_NAME, SCOPE, SCOPE_IS_NULL| Constructor and Description |
|---|
PermissionTicketAdapter(CachedPermissionTicket cached,
StoreFactoryCacheSession cacheSession) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCacheTimestamp()
When was the model was loaded from database.
|
Long |
getCreatedTimestamp() |
PermissionTicket |
getDelegateForUpdate()
Invalidates the cache for this model and returns a delegate that represents the actual data provider
|
Long |
getGrantedTimestamp() |
String |
getId()
Returns the unique identifier for this instance.
|
String |
getOwner()
Returns the resource's owner, which is usually an identifier that uniquely identifies the resource's owner.
|
Policy |
getPolicy() |
String |
getRequester() |
Resource |
getResource()
Returns the
Resource associated with this instance |
ResourceServer |
getResourceServer()
Returns the
ResourceServer where this policy belongs to. |
Scope |
getScope()
Returns the
Scope associated with this instance |
int |
hashCode() |
void |
invalidate()
Invalidate the cache for this model
|
protected void |
invalidateFlag() |
boolean |
isGranted() |
protected boolean |
isUpdated() |
void |
setGrantedTimestamp(Long millis) |
void |
setPolicy(Policy policy) |
protected CachedPermissionTicket cached
protected StoreFactoryCacheSession cacheSession
protected PermissionTicket updated
protected boolean invalidated
public PermissionTicketAdapter(CachedPermissionTicket cached, StoreFactoryCacheSession cacheSession)
public PermissionTicket getDelegateForUpdate()
CachedModelgetDelegateForUpdate in interface CachedModel<PermissionTicket>protected void invalidateFlag()
public void invalidate()
CachedModelinvalidate in interface CachedModel<PermissionTicket>public long getCacheTimestamp()
CachedModelgetCacheTimestamp in interface CachedModel<PermissionTicket>protected boolean isUpdated()
public String getId()
PermissionTicketgetId in interface PermissionTicketpublic String getOwner()
PermissionTicketgetOwner in interface PermissionTicketpublic String getRequester()
getRequester in interface PermissionTicketpublic boolean isGranted()
isGranted in interface PermissionTicketpublic Long getCreatedTimestamp()
getCreatedTimestamp in interface PermissionTicketpublic Long getGrantedTimestamp()
getGrantedTimestamp in interface PermissionTicketpublic void setGrantedTimestamp(Long millis)
setGrantedTimestamp in interface PermissionTicketpublic ResourceServer getResourceServer()
PermissionTicketResourceServer where this policy belongs to.getResourceServer in interface PermissionTicketpublic Policy getPolicy()
getPolicy in interface PermissionTicketpublic void setPolicy(Policy policy)
setPolicy in interface PermissionTicketpublic Resource getResource()
PermissionTicketResource associated with this instancegetResource in interface PermissionTicketResource associated with this instancepublic Scope getScope()
PermissionTicketScope associated with this instancegetScope in interface PermissionTicketScope associated with this instanceCopyright © 2021 JBoss by Red Hat. All rights reserved.