public interface PermissionTicketStore
PermissionTicketStore is responsible to manage the persistence of PermissionTicket instances.| Modifier and Type | Method and Description |
|---|---|
PermissionTicket |
create(String resourceId,
String scopeId,
String requester,
ResourceServer resourceServer)
Creates a new
PermissionTicket instance. |
void |
delete(String id)
Deletes a permission from the underlying persistence mechanism.
|
List<PermissionTicket> |
find(Map<String,String> attributes,
String resourceServerId,
int firstResult,
int maxResult) |
PermissionTicket |
findById(String id,
String resourceServerId)
Returns a
PermissionTicket with the given id |
List<PermissionTicket> |
findByOwner(String owner,
String resourceServerId)
Returns a list of
PermissionTicket associated with the given owner. |
List<PermissionTicket> |
findByResource(String resourceId,
String resourceServerId)
Returns a list of
PermissionTicket associated with a org.keycloak.authorization.core.model.Resource with the given resourceId. |
List<PermissionTicket> |
findByResourceServer(String resourceServerId)
Returns a list of
PermissionTicket associated with a ResourceServer with the given resourceServerId. |
List<PermissionTicket> |
findByScope(String scopeId,
String resourceServerId)
Returns a list of
PermissionTicket associated with a org.keycloak.authorization.core.model.Scope with the given scopeId. |
List<PermissionTicket> |
findGranted(String userId,
String resourceServerId)
Returns a list of
PermissionTicket granted to the given userId. |
List<PermissionTicket> |
findGranted(String resourceName,
String userId,
String resourceServerId)
|
List<Resource> |
findGrantedOwnerResources(String owner,
int first,
int max)
Returns a list of
Resource granted by the owner to other users |
List<Resource> |
findGrantedResources(String requester,
String name,
int first,
int max)
Returns a list of
Resource granted to the given requester |
PermissionTicket create(String resourceId, String scopeId, String requester, ResourceServer resourceServer)
PermissionTicket instance.permission - the policy representationresourceServer - the resource server to which this policy belongsPermissionTicketvoid delete(String id)
id - the id of the policy to deletePermissionTicket findById(String id, String resourceServerId)
PermissionTicket with the given idid - the identifier of the permissionresourceServerId - the resource server idList<PermissionTicket> findByResourceServer(String resourceServerId)
PermissionTicket associated with a ResourceServer with the given resourceServerId.resourceServerId - the identifier of a resource serverList<PermissionTicket> findByOwner(String owner, String resourceServerId)
PermissionTicket associated with the given owner.owner - the identifier of a resource serverList<PermissionTicket> findByResource(String resourceId, String resourceServerId)
PermissionTicket associated with a org.keycloak.authorization.core.model.Resource with the given resourceId.resourceId - the identifier of a resourceresourceServerId - the resource server idList<PermissionTicket> findByScope(String scopeId, String resourceServerId)
PermissionTicket associated with a org.keycloak.authorization.core.model.Scope with the given scopeId.scopeId - the id of the scopesresourceServerId - the resource server idList<PermissionTicket> find(Map<String,String> attributes, String resourceServerId, int firstResult, int maxResult)
List<PermissionTicket> findGranted(String userId, String resourceServerId)
PermissionTicket granted to the given userId.userId - the user idresourceServerId - the resource server idList<PermissionTicket> findGranted(String resourceName, String userId, String resourceServerId)
resourceName - the name of a resourceuserId - the user idresourceServerId - the resource server idList<Resource> findGrantedResources(String requester, String name, int first, int max)
Resource granted to the given requesterrequester - the requestername - the keyword to query resources by name or null if any resourcefirst - first resultmax - max resultResource granted to the given requesterCopyright © 2021 JBoss by Red Hat. All rights reserved.