Class PermissionTicketAdapter
- java.lang.Object
- 
- org.keycloak.authorization.jpa.store.PermissionTicketAdapter
 
- 
- All Implemented Interfaces:
- PermissionTicket,- JpaModel<PermissionTicketEntity>
 
 public class PermissionTicketAdapter extends Object implements PermissionTicket, JpaModel<PermissionTicketEntity> - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.authorization.model.PermissionTicketPermissionTicket.FilterOption, PermissionTicket.SearchableFields
 
- 
 - 
Constructor SummaryConstructors Constructor Description PermissionTicketAdapter(PermissionTicketEntity entity, javax.persistence.EntityManager entityManager, StoreFactory storeFactory)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LonggetCreatedTimestamp()PermissionTicketEntitygetEntity()LonggetGrantedTimestamp()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()booleanisGranted()voidsetGrantedTimestamp(Long millis)voidsetPolicy(Policy policy)static PermissionTicketEntitytoEntity(javax.persistence.EntityManager em, PermissionTicket permission)
 
- 
- 
- 
Constructor Detail- 
PermissionTicketAdapterpublic PermissionTicketAdapter(PermissionTicketEntity entity, javax.persistence.EntityManager entityManager, StoreFactory storeFactory) 
 
- 
 - 
Method Detail- 
getEntitypublic PermissionTicketEntity getEntity() - Specified by:
- getEntityin interface- JpaModel<PermissionTicketEntity>
 
 - 
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
 
 - 
toEntitypublic static PermissionTicketEntity toEntity(javax.persistence.EntityManager em, PermissionTicket permission) 
 
- 
 
-