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.PermissionTicket
PermissionTicket.FilterOption, PermissionTicket.SearchableFields
-
-
Constructor Summary
Constructors Constructor Description PermissionTicketAdapter(PermissionTicketEntity entity, javax.persistence.EntityManager entityManager, StoreFactory storeFactory)
-
Method Summary
All 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
-
PermissionTicketAdapter
public PermissionTicketAdapter(PermissionTicketEntity entity, javax.persistence.EntityManager entityManager, StoreFactory storeFactory)
-
-
Method Detail
-
getEntity
public PermissionTicketEntity getEntity()
- Specified by:
getEntityin interfaceJpaModel<PermissionTicketEntity>
-
getId
public String getId()
Description copied from interface:PermissionTicketReturns the unique identifier for this instance.- Specified by:
getIdin interfacePermissionTicket- Returns:
- the unique identifier for this instance
-
getOwner
public 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 interfacePermissionTicket- Returns:
- the owner of this resource
-
getRequester
public String getRequester()
- Specified by:
getRequesterin interfacePermissionTicket
-
isGranted
public boolean isGranted()
- Specified by:
isGrantedin interfacePermissionTicket
-
getCreatedTimestamp
public Long getCreatedTimestamp()
- Specified by:
getCreatedTimestampin interfacePermissionTicket
-
getGrantedTimestamp
public Long getGrantedTimestamp()
- Specified by:
getGrantedTimestampin interfacePermissionTicket
-
setGrantedTimestamp
public void setGrantedTimestamp(Long millis)
- Specified by:
setGrantedTimestampin interfacePermissionTicket
-
getResourceServer
public ResourceServer getResourceServer()
Description copied from interface:PermissionTicketReturns theResourceServerwhere this policy belongs to.- Specified by:
getResourceServerin interfacePermissionTicket- Returns:
- a resource server
-
getPolicy
public Policy getPolicy()
- Specified by:
getPolicyin interfacePermissionTicket
-
setPolicy
public void setPolicy(Policy policy)
- Specified by:
setPolicyin interfacePermissionTicket
-
getResource
public Resource getResource()
Description copied from interface:PermissionTicketReturns theResourceassociated with this instance- Specified by:
getResourcein interfacePermissionTicket- Returns:
- the
Resourceassociated with this instance
-
getScope
public Scope getScope()
Description copied from interface:PermissionTicketReturns theScopeassociated with this instance- Specified by:
getScopein interfacePermissionTicket- Returns:
- the
Scopeassociated with this instance
-
toEntity
public static PermissionTicketEntity toEntity(javax.persistence.EntityManager em, PermissionTicket permission)
-
-