public class PermissionTicketAdapter extends Object implements PermissionTicket, CachedModel<PermissionTicket>
PermissionTicket.FilterOption, PermissionTicket.SearchableFields
Modifier and Type | Field and Description |
---|---|
protected CachedPermissionTicket |
cached |
protected StoreFactoryCacheSession |
cacheSession |
protected boolean |
invalidated |
protected PermissionTicket |
updated |
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()
CachedModel
getDelegateForUpdate
in interface CachedModel<PermissionTicket>
protected void invalidateFlag()
public void invalidate()
CachedModel
invalidate
in interface CachedModel<PermissionTicket>
public long getCacheTimestamp()
CachedModel
getCacheTimestamp
in interface CachedModel<PermissionTicket>
protected boolean isUpdated()
public String getId()
PermissionTicket
getId
in interface PermissionTicket
public String getOwner()
PermissionTicket
getOwner
in interface PermissionTicket
public String getRequester()
getRequester
in interface PermissionTicket
public boolean isGranted()
isGranted
in interface PermissionTicket
public Long getCreatedTimestamp()
getCreatedTimestamp
in interface PermissionTicket
public Long getGrantedTimestamp()
getGrantedTimestamp
in interface PermissionTicket
public void setGrantedTimestamp(Long millis)
setGrantedTimestamp
in interface PermissionTicket
public ResourceServer getResourceServer()
PermissionTicket
ResourceServer
where this policy belongs to.getResourceServer
in interface PermissionTicket
public Policy getPolicy()
getPolicy
in interface PermissionTicket
public void setPolicy(Policy policy)
setPolicy
in interface PermissionTicket
public Resource getResource()
PermissionTicket
Resource
associated with this instancegetResource
in interface PermissionTicket
Resource
associated with this instancepublic Scope getScope()
PermissionTicket
Scope
associated with this instancegetScope
in interface PermissionTicket
Scope
associated with this instanceCopyright © 2021 JBoss by Red Hat. All rights reserved.