## Uses of Interface
org.keycloak.authorization.model.Resource

- Packages that use Resource
  Package | Description
  --- | ---
  org.keycloak.authorization.admin |
  org.keycloak.authorization.jpa.store |
  org.keycloak.authorization.model | Provides the domain model and any other type related with it
  org.keycloak.authorization.permission |
  org.keycloak.authorization.protection.resource |
  org.keycloak.authorization.store | Provides classes and a SPI to plug different metadata storage implementations.
  org.keycloak.forms.account.freemarker.model |
  org.keycloak.models.cache.infinispan.authorization |
  org.keycloak.models.cache.infinispan.authorization.entities |
  org.keycloak.models.map.authorization |
  org.keycloak.models.map.authorization.adapter |
  org.keycloak.models.map.storage.chm |
  org.keycloak.models.utils |
  org.keycloak.services.resources.admin.permissions |

- - ### Uses of Resource in org.keycloak.authorization.admin

    Method parameters in org.keycloak.authorization.admin with type arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | ResourceSetService.`find(String id, String name, String uri, String owner, String type, String scope, Boolean matchingUri, Boolean exactName, Boolean deep, Integer firstResult, Integer maxResult, BiFunction<Resource,Boolean,?> toRepresentation)`
    `javax.ws.rs.core.Response` | ResourceSetService.`findById(String id, Function<Resource,? extends ResourceRepresentation> toRepresentation)`

  - ### Uses of Resource in org.keycloak.authorization.jpa.store

    Classes in org.keycloak.authorization.jpa.store that implement Resource
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ResourceAdapter`

    Methods in org.keycloak.authorization.jpa.store that return Resource
    Modifier and Type | Method and Description
    --- | ---
    `Resource` | JPAResourceStore.`create(String id, String name, ResourceServer resourceServer, String owner)`
    `Resource` | JPAResourceStore.`findById(String id, String resourceServerId)`
    `Resource` | JPAResourceStore.`findByName(String name, String resourceServerId)`
    `Resource` | JPAResourceStore.`findByName(String name, String ownerId, String resourceServerId)`
    `Resource` | PermissionTicketAdapter.`getResource()`

    Methods in org.keycloak.authorization.jpa.store that return types with arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `List<Resource>` | JPAResourceStore.`findByOwner(String ownerId, String resourceServerId, int first, int max)`
    `List<Resource>` | JPAResourceStore.`findByResourceServer(Map<Resource.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)`
    `List<Resource>` | JPAResourceStore.`findByResourceServer(String resourceServerId)`
    `List<Resource>` | JPAResourceStore.`findByUri(String uri, String resourceServerId)`
    `List<Resource>` | JPAPermissionTicketStore.`findGrantedOwnerResources(String owner, int first, int max)`
    `List<Resource>` | JPAPermissionTicketStore.`findGrantedResources(String requester, String name, int first, int max)`
    `Set<Resource>` | PolicyAdapter.`getResources()`

    Methods in org.keycloak.authorization.jpa.store with parameters of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `void` | PolicyAdapter.`addResource(Resource resource)`
    `void` | PolicyAdapter.`removeResource(Resource resource)`
    `static ResourceEntity` | ResourceAdapter.`toEntity(javax.persistence.EntityManager em, Resource resource)`

    Method parameters in org.keycloak.authorization.jpa.store with type arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `void` | JPAResourceStore.`findByOwner(String ownerId, String resourceServerId, Consumer<Resource> consumer)`
    `void` | JPAResourceStore.`findByScope(List<String> scopes, String resourceServerId, Consumer<Resource> consumer)`
    `void` | JPAResourceStore.`findByType(String type, String resourceServerId, Consumer<Resource> consumer)`
    `void` | JPAResourceStore.`findByType(String type, String owner, String resourceServerId, Consumer<Resource> consumer)`
    `void` | JPAResourceStore.`findByTypeInstance(String type, String resourceServerId, Consumer<Resource> consumer)`

  - ### Uses of Resource in org.keycloak.authorization.model

    Fields in org.keycloak.authorization.model with type parameters of type Resource
    Modifier and Type | Field and Description
    --- | ---
    `static SearchableModelField<Resource>` | Resource.SearchableFields.`ID`
    `static SearchableModelField<Resource>` | Resource.SearchableFields.`NAME`
    `static SearchableModelField<Resource>` | Resource.SearchableFields.`OWNER`
    `static SearchableModelField<Resource>` | Resource.SearchableFields.`OWNER_MANAGED_ACCESS`
    `static SearchableModelField<Resource>` | Resource.SearchableFields.`RESOURCE_SERVER_ID`
    `static SearchableModelField<Resource>` | Resource.SearchableFields.`SCOPE_ID`
    `static SearchableModelField<Resource>` | Resource.SearchableFields.`TYPE`
    `static SearchableModelField<Resource>` | Resource.SearchableFields.`URI`

    Methods in org.keycloak.authorization.model that return Resource
    Modifier and Type | Method and Description
    --- | ---
    `Resource` | PermissionTicket.`getResource()` Returns the `Resource` associated with this instance

    Methods in org.keycloak.authorization.model that return types with arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `Set<Resource>` | Policy.`getResources()` Returns the `Resource` instances where this policy applies.
    `SearchableModelField<Resource>` | Resource.FilterOption.`getSearchableModelField()`

    Methods in org.keycloak.authorization.model with parameters of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `void` | Policy.`addResource(Resource resource)`
    `void` | Policy.`removeResource(Resource resource)`

  - ### Uses of Resource in org.keycloak.authorization.permission

    Methods in org.keycloak.authorization.permission that return Resource
    Modifier and Type | Method and Description
    --- | ---
    `Resource` | ResourcePermission.`getResource()` Returns the resource to which this permission applies.

    Methods in org.keycloak.authorization.permission with parameters of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `static ResourcePermission` | Permissions.`createResourcePermissions(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization, AuthorizationRequest request)`
    `static ResourcePermission` | Permissions.`permission(ResourceServer server, Resource resource, Scope scope)`
    `static Set<Scope>` | Permissions.`resolveScopes(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization)`

    Constructors in org.keycloak.authorization.permission with parameters of type Resource
    Constructor and Description
    `ResourcePermission(Resource resource, Collection<Scope> scopes, ResourceServer resourceServer)`
    `ResourcePermission(Resource resource, Collection<Scope> scopes, ResourceServer resourceServer, Map<String,? extends Collection<String>> claims)`
    `ResourcePermission(Resource resource, ResourceServer resourceServer, Map<String,? extends Collection<String>> claims)`

  - ### Uses of Resource in org.keycloak.authorization.protection.resource

    Constructors in org.keycloak.authorization.protection.resource with parameters of type Resource
    Constructor and Description
    `UmaResourceRepresentation(Resource resource)`

  - ### Uses of Resource in org.keycloak.authorization.store

    Methods in org.keycloak.authorization.store that return Resource
    Modifier and Type | Method and Description
    --- | ---
    `default Resource` | ResourceStore.`create(String name, ResourceServer resourceServer, String owner)` Creates a `Resource` instance backed by this persistent storage implementation.
    `Resource` | ResourceStore.`create(String id, String name, ResourceServer resourceServer, String owner)` Creates a `Resource` instance backed by this persistent storage implementation.
    `Resource` | ResourceStore.`findById(String id, String resourceServerId)` Returns a `Resource` instance based on its identifier.
    `Resource` | ResourceStore.`findByName(String name, String resourceServerId)` Find a `Resource` by its name where the owner is the resource server itself.
    `Resource` | ResourceStore.`findByName(String name, String ownerId, String resourceServerId)` Find a `Resource` by its name where the owner is the given `ownerId`.

    Methods in org.keycloak.authorization.store that return types with arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `default List<Resource>` | ResourceStore.`findByOwner(String ownerId, String resourceServerId)` Finds all `Resource` instances with the given `ownerId`.
    `List<Resource>` | ResourceStore.`findByOwner(String ownerId, String resourceServerId, int first, int max)`
    `List<Resource>` | ResourceStore.`findByResourceServer(Map<Resource.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)` Finds all `Resource` instances associated with a given resource server.
    `List<Resource>` | ResourceStore.`findByResourceServer(String resourceServerId)` Finds all `Resource` instances associated with a given resource server.
    `default List<Resource>` | ResourceStore.`findByScope(List<String> id, String resourceServerId)` Finds all `Resource` associated with a given scope.
    `default List<Resource>` | ResourceStore.`findByType(String type, String resourceServerId)` Finds all `Resource` with the given type.
    `default List<Resource>` | ResourceStore.`findByType(String type, String owner, String resourceServerId)` Finds all `Resource` with the given type.
    `default List<Resource>` | ResourceStore.`findByTypeInstance(String type, String resourceServerId)`
    `List<Resource>` | ResourceStore.`findByUri(String uri, String resourceServerId)` Finds all `Resource` instances with the given uri.
    `List<Resource>` | PermissionTicketStore.`findGrantedOwnerResources(String owner, int first, int max)` Returns a list of `Resource` granted by the owner to other users
    `List<Resource>` | PermissionTicketStore.`findGrantedResources(String requester, String name, int first, int max)` Returns a list of `Resource` granted to the given `requester`

    Method parameters in org.keycloak.authorization.store with type arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `void` | ResourceStore.`findByOwner(String ownerId, String resourceServerId, Consumer<Resource> consumer)`
    `void` | ResourceStore.`findByScope(List<String> scopes, String resourceServerId, Consumer<Resource> consumer)`
    `void` | ResourceStore.`findByType(String type, String resourceServerId, Consumer<Resource> consumer)` Finds all `Resource` with the given type.
    `void` | ResourceStore.`findByType(String type, String owner, String resourceServerId, Consumer<Resource> consumer)` Finds all `Resource` with the given type.
    `void` | ResourceStore.`findByTypeInstance(String type, String resourceServerId, Consumer<Resource> consumer)`

  - ### Uses of Resource in org.keycloak.forms.account.freemarker.model

    Constructors in org.keycloak.forms.account.freemarker.model with parameters of type Resource
    Constructor and Description
    `ResourceBean(Resource resource)`

  - ### Uses of Resource in org.keycloak.models.cache.infinispan.authorization

    Fields in org.keycloak.models.cache.infinispan.authorization declared as Resource
    Modifier and Type | Field and Description
    --- | ---
    `protected Resource` | ResourceAdapter.`updated`

    Fields in org.keycloak.models.cache.infinispan.authorization with type parameters of type Resource
    Modifier and Type | Field and Description
    --- | ---
    `protected Set<Resource>` | PolicyAdapter.`resources`

    Methods in org.keycloak.models.cache.infinispan.authorization that return Resource
    Modifier and Type | Method and Description
    --- | ---
    `Resource` | StoreFactoryCacheSession.ResourceCache.`create(String id, String name, ResourceServer resourceServer, String owner)`
    `Resource` | StoreFactoryCacheSession.ResourceCache.`findById(String id, String resourceServerId)`
    `Resource` | StoreFactoryCacheSession.ResourceCache.`findByName(String name, String resourceServerId)`
    `Resource` | StoreFactoryCacheSession.ResourceCache.`findByName(String name, String ownerId, String resourceServerId)`
    `Resource` | ResourceAdapter.`getDelegateForUpdate()`
    `Resource` | PermissionTicketAdapter.`getResource()`

    Methods in org.keycloak.models.cache.infinispan.authorization that return types with arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `List<Resource>` | StoreFactoryCacheSession.ResourceCache.`findByOwner(String ownerId, String resourceServerId)`
    `List<Resource>` | StoreFactoryCacheSession.ResourceCache.`findByOwner(String ownerId, String resourceServerId, int first, int max)`
    `List<Resource>` | StoreFactoryCacheSession.ResourceCache.`findByResourceServer(Map<Resource.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)`
    `List<Resource>` | StoreFactoryCacheSession.ResourceCache.`findByResourceServer(String resourceServerId)`
    `List<Resource>` | StoreFactoryCacheSession.ResourceCache.`findByScope(List<String> ids, String resourceServerId)`
    `List<Resource>` | StoreFactoryCacheSession.ResourceCache.`findByType(String type, String resourceServerId)`
    `List<Resource>` | StoreFactoryCacheSession.ResourceCache.`findByType(String type, String owner, String resourceServerId)`
    `List<Resource>` | StoreFactoryCacheSession.ResourceCache.`findByTypeInstance(String type, String resourceServerId)`
    `List<Resource>` | StoreFactoryCacheSession.ResourceCache.`findByUri(String uri, String resourceServerId)`
    `List<Resource>` | StoreFactoryCacheSession.PermissionTicketCache.`findGrantedOwnerResources(String owner, int first, int max)`
    `List<Resource>` | StoreFactoryCacheSession.PermissionTicketCache.`findGrantedResources(String requester, String name, int first, int max)`
    `Set<Resource>` | PolicyAdapter.`getResources()`

    Methods in org.keycloak.models.cache.infinispan.authorization with parameters of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `void` | PolicyAdapter.`addResource(Resource resource)`
    `void` | PolicyAdapter.`removeResource(Resource resource)`

    Method parameters in org.keycloak.models.cache.infinispan.authorization with type arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `void` | StoreFactoryCacheSession.ResourceCache.`findByOwner(String ownerId, String resourceServerId, Consumer<Resource> consumer)`
    `void` | StoreFactoryCacheSession.ResourceCache.`findByScope(List<String> ids, String resourceServerId, Consumer<Resource> consumer)`
    `void` | StoreFactoryCacheSession.ResourceCache.`findByType(String type, String resourceServerId, Consumer<Resource> consumer)`
    `void` | StoreFactoryCacheSession.ResourceCache.`findByType(String type, String owner, String resourceServerId, Consumer<Resource> consumer)`
    `void` | StoreFactoryCacheSession.ResourceCache.`findByTypeInstance(String type, String resourceServerId, Consumer<Resource> consumer)`

  - ### Uses of Resource in org.keycloak.models.cache.infinispan.authorization.entities

    Method parameters in org.keycloak.models.cache.infinispan.authorization.entities with type arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,List<String>>` | CachedResource.`getAttributes(Supplier<Resource> source)`
    `Set<String>` | CachedResource.`getScopesIds(Supplier<Resource> source)`
    `Set<String>` | CachedResource.`getUris(Supplier<Resource> source)`

    Constructors in org.keycloak.models.cache.infinispan.authorization.entities with parameters of type Resource
    Constructor and Description
    `CachedResource(Long revision, Resource resource)`

  - ### Uses of Resource in org.keycloak.models.map.authorization

    Methods in org.keycloak.models.map.authorization that return Resource
    Modifier and Type | Method and Description
    --- | ---
    `Resource` | MapResourceStore.`create(String id, String name, ResourceServer resourceServer, String owner)`
    `Resource` | MapResourceStore.`findById(String id, String resourceServerId)`
    `Resource` | MapResourceStore.`findByName(String name, String resourceServerId)`
    `Resource` | MapResourceStore.`findByName(String name, String ownerId, String resourceServerId)`

    Methods in org.keycloak.models.map.authorization that return types with arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `List<Resource>` | MapResourceStore.`findByOwner(String ownerId, String resourceServerId, int first, int max)`
    `List<Resource>` | MapResourceStore.`findByResourceServer(Map<Resource.FilterOption,String[]> attributes, String resourceServerId, int firstResult, int maxResult)`
    `List<Resource>` | MapResourceStore.`findByResourceServer(String resourceServerId)`
    `List<Resource>` | MapResourceStore.`findByUri(String uri, String resourceServerId)`
    `List<Resource>` | MapPermissionTicketStore.`findGrantedOwnerResources(String owner, int first, int max)`
    `List<Resource>` | MapPermissionTicketStore.`findGrantedResources(String requester, String name, int first, int max)`

    Method parameters in org.keycloak.models.map.authorization with type arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `void` | MapResourceStore.`findByOwner(String ownerId, String resourceServerId, Consumer<Resource> consumer)`
    `void` | MapResourceStore.`findByScope(List<String> scopes, String resourceServerId, Consumer<Resource> consumer)`
    `void` | MapResourceStore.`findByType(String type, String resourceServerId, Consumer<Resource> consumer)`
    `void` | MapResourceStore.`findByType(String type, String owner, String resourceServerId, Consumer<Resource> consumer)`
    `void` | MapResourceStore.`findByTypeInstance(String type, String resourceServerId, Consumer<Resource> consumer)`

    Constructor parameters in org.keycloak.models.map.authorization with type arguments of type Resource
    Constructor and Description
    `MapResourceStore(KeycloakSession session, MapStorage<MapResourceEntity,Resource> resourceStore, AuthorizationProvider provider)`

  - ### Uses of Resource in org.keycloak.models.map.authorization.adapter

    Classes in org.keycloak.models.map.authorization.adapter that implement Resource
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractResourceModel<E extends AbstractEntity>`
    `class` | `MapResourceAdapter`

    Methods in org.keycloak.models.map.authorization.adapter that return Resource
    Modifier and Type | Method and Description
    --- | ---
    `Resource` | MapPermissionTicketAdapter.`getResource()`

    Methods in org.keycloak.models.map.authorization.adapter that return types with arguments of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `Set<Resource>` | MapPolicyAdapter.`getResources()`

    Methods in org.keycloak.models.map.authorization.adapter with parameters of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `void` | MapPolicyAdapter.`addResource(Resource resource)`
    `void` | MapPolicyAdapter.`removeResource(Resource resource)`

  - ### Uses of Resource in org.keycloak.models.map.storage.chm

    Fields in org.keycloak.models.map.storage.chm with type parameters of type Resource
    Modifier and Type | Field and Description
    --- | ---
    `static Map<SearchableModelField<Resource>,MapModelCriteriaBuilder.UpdatePredicatesFunc<Object,MapResourceEntity,Resource>>` | MapFieldPredicates.`AUTHZ_RESOURCE_PREDICATES`
    `static Map<SearchableModelField<Resource>,MapModelCriteriaBuilder.UpdatePredicatesFunc<Object,MapResourceEntity,Resource>>` | MapFieldPredicates.`AUTHZ_RESOURCE_PREDICATES`

  - ### Uses of Resource in org.keycloak.models.utils

    Methods in org.keycloak.models.utils that return Resource
    Modifier and Type | Method and Description
    --- | ---
    `static Resource` | RepresentationToModel.`toModel(ResourceRepresentation resource, ResourceServer resourceServer, AuthorizationProvider authorization)`

    Methods in org.keycloak.models.utils with parameters of type Resource
    Modifier and Type | Method and Description
    --- | ---
    `static ResourceRepresentation` | ModelToRepresentation.`toRepresentation(Resource model, String resourceServer, AuthorizationProvider authorization)`
    `static ResourceRepresentation` | ModelToRepresentation.`toRepresentation(Resource model, String resourceServer, AuthorizationProvider authorization, Boolean deep)`

  - ### Uses of Resource in org.keycloak.services.resources.admin.permissions

    Methods in org.keycloak.services.resources.admin.permissions that return Resource
    Modifier and Type | Method and Description
    --- | ---
    `Resource` | UserPermissionManagement.`resource()`
    `Resource` | ClientPermissionManagement.`resource(ClientModel client)`
    `Resource` | GroupPermissionManagement.`resource(GroupModel group)`
    `Resource` | IdentityProviderPermissionManagement.`resource(IdentityProviderModel idp)`
    `Resource` | RolePermissionManagement.`resource(RoleModel role)`

Copyright © 2021 JBoss by Red Hat. All rights reserved.