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 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 authorization.core.model.Scope with the given scopeId. |
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 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 authorization.core.model.Scope with the given scopeId.scopeId - the id of the scopesresourceServerId - the resource server idCopyright © 2018 JBoss by Red Hat. All rights reserved.