protected class StoreFactoryCacheSession.PermissionTicketCache extends Object implements PermissionTicketStore
| Modifier | Constructor and Description |
|---|---|
protected |
PermissionTicketCache() |
| 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 |
public PermissionTicket create(String resourceId, String scopeId, String requester, ResourceServer resourceServer)
PermissionTicketStorePermissionTicket instance.create in interface PermissionTicketStoreresourceServer - the resource server to which this policy belongsPermissionTicketpublic void delete(String id)
PermissionTicketStoredelete in interface PermissionTicketStoreid - the id of the policy to deletepublic PermissionTicket findById(String id, String resourceServerId)
PermissionTicketStorePermissionTicket with the given idfindById in interface PermissionTicketStoreid - the identifier of the permissionresourceServerId - the resource server idpublic List<PermissionTicket> findByResourceServer(String resourceServerId)
PermissionTicketStorePermissionTicket associated with a ResourceServer with the given resourceServerId.findByResourceServer in interface PermissionTicketStoreresourceServerId - the identifier of a resource serverpublic List<PermissionTicket> findByResource(String resourceId, String resourceServerId)
PermissionTicketStorePermissionTicket associated with a org.keycloak.authorization.core.model.Resource with the given resourceId.findByResource in interface PermissionTicketStoreresourceId - the identifier of a resourceresourceServerId - the resource server idpublic List<PermissionTicket> findByScope(String scopeId, String resourceServerId)
PermissionTicketStorePermissionTicket associated with a org.keycloak.authorization.core.model.Scope with the given scopeId.findByScope in interface PermissionTicketStorescopeId - the id of the scopesresourceServerId - the resource server idpublic List<PermissionTicket> find(Map<String,String> attributes, String resourceServerId, int firstResult, int maxResult)
find in interface PermissionTicketStorepublic List<PermissionTicket> findGranted(String userId, String resourceServerId)
PermissionTicketStorePermissionTicket granted to the given userId.findGranted in interface PermissionTicketStoreuserId - the user idresourceServerId - the resource server idpublic List<PermissionTicket> findGranted(String resourceName, String userId, String resourceServerId)
PermissionTicketStorefindGranted in interface PermissionTicketStoreresourceName - the name of a resourceuserId - the user idresourceServerId - the resource server idpublic List<Resource> findGrantedResources(String requester, String name, int first, int max)
PermissionTicketStoreResource granted to the given requesterfindGrantedResources in interface PermissionTicketStorerequester - the requestername - the keyword to query resources by name or null if any resourcefirst - first resultmax - max resultResource granted to the given requesterpublic List<Resource> findGrantedOwnerResources(String owner, int first, int max)
PermissionTicketStoreResource granted by the owner to other usersfindGrantedOwnerResources in interface PermissionTicketStoreowner - the ownerfirst - first resultmax - max resultResource granted by the ownerpublic List<PermissionTicket> findByOwner(String owner, String resourceServerId)
PermissionTicketStorePermissionTicket associated with the given owner.findByOwner in interface PermissionTicketStoreowner - the identifier of a resource serverCopyright © 2021 JBoss by Red Hat. All rights reserved.