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 -
Constructor Summary
ConstructorsConstructorDescriptionPermissionTicketAdapter(PermissionTicketEntity entity, jakarta.persistence.EntityManager entityManager, StoreFactory storeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Returns the unique identifier for this instance.getOwner()Returns the resource's owner, which is usually an identifier that uniquely identifies the resource's owner.Returns theResourceassociated with this instanceReturns theResourceServerwhere this policy belongs to.getScope()Returns theScopeassociated with this instanceinthashCode()booleanvoidsetGrantedTimestamp(Long millis) voidstatic PermissionTicketEntitytoEntity(jakarta.persistence.EntityManager em, PermissionTicket permission)
-
Constructor Details
-
PermissionTicketAdapter
public PermissionTicketAdapter(PermissionTicketEntity entity, jakarta.persistence.EntityManager entityManager, StoreFactory storeFactory)
-
-
Method Details
-
getEntity
- Specified by:
getEntityin interfaceJpaModel<PermissionTicketEntity>
-
getId
Description copied from interface:PermissionTicketReturns the unique identifier for this instance.- Specified by:
getIdin interfacePermissionTicket- Returns:
- the unique identifier for this instance
-
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
- Specified by:
getRequesterin interfacePermissionTicket
-
isGranted
public boolean isGranted()- Specified by:
isGrantedin interfacePermissionTicket
-
getCreatedTimestamp
- Specified by:
getCreatedTimestampin interfacePermissionTicket
-
getGrantedTimestamp
- Specified by:
getGrantedTimestampin interfacePermissionTicket
-
setGrantedTimestamp
- Specified by:
setGrantedTimestampin interfacePermissionTicket
-
getResourceServer
Description copied from interface:PermissionTicketReturns theResourceServerwhere this policy belongs to.- Specified by:
getResourceServerin interfacePermissionTicket- Returns:
- a resource server
-
getPolicy
- Specified by:
getPolicyin interfacePermissionTicket
-
setPolicy
- Specified by:
setPolicyin interfacePermissionTicket
-
getResource
Description copied from interface:PermissionTicketReturns theResourceassociated with this instance- Specified by:
getResourcein interfacePermissionTicket- Returns:
- the
Resourceassociated with this instance
-
getScope
Description copied from interface:PermissionTicketReturns theScopeassociated with this instance- Specified by:
getScopein interfacePermissionTicket- Returns:
- the
Scopeassociated with this instance
-
equals
-
hashCode
public int hashCode() -
toEntity
public static PermissionTicketEntity toEntity(jakarta.persistence.EntityManager em, PermissionTicket permission)
-