## Uses of Interface
org.keycloak.models.RoleModel

- Packages that use RoleModel
  Package | Description
  --- | ---
  org.keycloak.exportimport.util |
  org.keycloak.federation.kerberos |
  org.keycloak.federation.sssd |
  org.keycloak.forms.account.freemarker.model |
  org.keycloak.models |
  org.keycloak.models.cache.infinispan |
  org.keycloak.models.cache.infinispan.entities |
  org.keycloak.models.delegate |
  org.keycloak.models.jpa |
  org.keycloak.models.map.client |
  org.keycloak.models.map.clientscope |
  org.keycloak.models.map.group |
  org.keycloak.models.map.realm |
  org.keycloak.models.map.role |
  org.keycloak.models.map.storage.chm |
  org.keycloak.models.map.user |
  org.keycloak.models.utils |
  org.keycloak.partialimport |
  org.keycloak.protocol.oidc |
  org.keycloak.protocol.saml.mappers |
  org.keycloak.services.resources.admin |
  org.keycloak.services.resources.admin.permissions |
  org.keycloak.services.util |
  org.keycloak.storage |
  org.keycloak.storage.adapter |
  org.keycloak.storage.client |
  org.keycloak.storage.federated |
  org.keycloak.storage.jpa |
  org.keycloak.storage.ldap |
  org.keycloak.storage.ldap.mappers |
  org.keycloak.storage.ldap.mappers.membership.group |
  org.keycloak.storage.ldap.mappers.membership.role |
  org.keycloak.storage.openshift |
  org.keycloak.storage.role |
  org.keycloak.storage.user |

- - ### Uses of RoleModel in org.keycloak.exportimport.util

    Methods in org.keycloak.exportimport.util with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `static RoleRepresentation` | ExportUtils.`exportRole(RoleModel role)` Full export of role including composite roles

    Method parameters in org.keycloak.exportimport.util with type arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `static List<RoleRepresentation>` | ExportUtils.`exportRoles(Stream<RoleModel> roles)`
    `static List<String>` | ExportUtils.`getRoleNames(Collection<RoleModel> roles)`

  - ### Uses of RoleModel in org.keycloak.federation.kerberos

    Methods in org.keycloak.federation.kerberos with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | KerberosFederationProvider.`preRemove(RealmModel realm, RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.federation.sssd

    Methods in org.keycloak.federation.sssd with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | SSSDFederationProvider.`preRemove(RealmModel realm, RoleModel role)`

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

    Methods in org.keycloak.forms.account.freemarker.model that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `List<RoleModel>` | ApplicationsBean.ApplicationEntry.`getRealmRolesAvailable()`

    Constructor parameters in org.keycloak.forms.account.freemarker.model with type arguments of type RoleModel
    Constructor and Description
    `ApplicationEntry(KeycloakSession session, List<RoleModel> realmRolesAvailable, MultivaluedHashMap<String,ApplicationsBean.ClientRoleEntry> resourceRolesAvailable, ClientModel client, List<String> clientScopesGranted, List<String> additionalGrants)`

  - ### Uses of RoleModel in org.keycloak.models

    Fields in org.keycloak.models with type parameters of type RoleModel
    Modifier and Type | Field and Description
    --- | ---
    `static SearchableModelField<RoleModel>` | RoleModel.SearchableFields.`CLIENT_ID` If client role, ID of the client (not the clientId)
    `static SearchableModelField<RoleModel>` | RoleModel.SearchableFields.`DESCRIPTION`
    `static SearchableModelField<RoleModel>` | RoleModel.SearchableFields.`ID`
    `static SearchableModelField<RoleModel>` | RoleModel.SearchableFields.`IS_CLIENT_ROLE`
    `static SearchableModelField<RoleModel>` | RoleModel.SearchableFields.`IS_COMPOSITE_ROLE`
    `static SearchableModelField<RoleModel>` | RoleModel.SearchableFields.`NAME`
    `static SearchableModelField<RoleModel>` | RoleModel.SearchableFields.`REALM_ID`

    Methods in org.keycloak.models that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `default RoleModel` | RoleProvider.`addClientRole(ClientModel client, String name)` Adds a client role with given `name` to the given client.
    `RoleModel` | RoleProvider.`addClientRole(ClientModel client, String id, String name)` Adds a client role with given internal ID and `name` to the given client.
    `default RoleModel` | RealmProvider.`addClientRole(RealmModel realm, ClientModel client, String name)` Deprecated. Use the corresponding method from `RoleProvider`.
    `default RoleModel` | RealmProvider.`addClientRole(RealmModel realm, ClientModel client, String id, String name)` Deprecated. Use the corresponding method from `RoleProvider`.
    `default RoleModel` | RoleProvider.`addRealmRole(RealmModel realm, String name)` Adds a realm role with given `name` to the given realm.
    `default RoleModel` | RealmProvider.`addRealmRole(RealmModel realm, String name)` Deprecated. Use the corresponding method from `RoleProvider`.
    `RoleModel` | RoleProvider.`addRealmRole(RealmModel realm, String id, String name)` Adds a realm role with given internal ID and `name` to the given realm.
    `RoleModel` | RealmProvider.`addRealmRole(RealmModel realm, String id, String name)` Deprecated. Use the corresponding method from `RoleProvider`.
    `RoleModel` | RoleContainerModel.`addRole(String name)`
    `RoleModel` | RoleContainerModel.`addRole(String id, String name)`
    `default RoleModel` | RealmProvider.`getClientRole(RealmModel realm, ClientModel client, String name)` Deprecated. Use the corresponding method from `RoleProvider`.
    `RoleModel` | RealmModel.`getDefaultRole()` Returns default realm role.
    `RoleModel` | RealmProvider.`getRealmRole(RealmModel realm, String name)` Deprecated. Use the corresponding method from `RoleProvider`.
    `RoleModel` | RoleContainerModel.RoleRemovedEvent.`getRole()`
    `RoleModel` | RoleContainerModel.`getRole(String name)`
    `RoleModel` | RealmModel.`getRoleById(String id)`
    `default RoleModel` | RealmProvider.`getRoleById(String id, RealmModel realm)` Deprecated. Use the corresponding method from `RoleProvider`.

    Methods in org.keycloak.models that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | RoleMapperModel.`getClientRoleMappings(ClientModel app)` Deprecated. Use `getClientRoleMappingsStream` instead.
    `default Set<RoleModel>` | RoleMapperModel.Streams.`getClientRoleMappings(ClientModel app)`
    `default Stream<RoleModel>` | RoleMapperModel.`getClientRoleMappingsStream(ClientModel app)` Returns stream of client roles that are directly set to this object for the given client.
    `Stream<RoleModel>` | RoleMapperModel.Streams.`getClientRoleMappingsStream(ClientModel app)`
    `default Set<RoleModel>` | RealmProvider.`getClientRoles(RealmModel realm, ClientModel client)` Deprecated. Use the corresponding method from `RoleProvider`.
    `default Set<RoleModel>` | RealmProvider.`getClientRoles(RealmModel realm, ClientModel client, Integer first, Integer max)` Deprecated. Use the corresponding method from `RoleProvider`.
    `default Stream<RoleModel>` | RoleProvider.`getClientRolesStream(ClientModel client)` Returns all the client roles of the given client.
    `Stream<RoleModel>` | RoleProvider.`getClientRolesStream(ClientModel client, Integer first, Integer max)` Returns the client roles of the given client.
    `default Set<RoleModel>` | RoleModel.`getComposites()` Deprecated. Use `getCompositesStream` instead.
    `Stream<RoleModel>` | RoleModel.`getCompositesStream()` Returns all composite roles as a stream.
    `Set<RoleModel>` | RoleMapperModel.`getRealmRoleMappings()` Deprecated. Use `getRealmRoleMappingsStream` instead.
    `default Set<RoleModel>` | RoleMapperModel.Streams.`getRealmRoleMappings()`
    `default Stream<RoleModel>` | RoleMapperModel.`getRealmRoleMappingsStream()` Returns stream of realm roles that are directly set to this object.
    `Stream<RoleModel>` | RoleMapperModel.Streams.`getRealmRoleMappingsStream()`
    `default Set<RoleModel>` | RoleProvider.`getRealmRoles(RealmModel realm)` Deprecated. use the stream variant instead
    `default Set<RoleModel>` | RealmProvider.`getRealmRoles(RealmModel realm)` Deprecated. Use the corresponding method from `RoleProvider`.
    `default Set<RoleModel>` | RealmProvider.`getRealmRoles(RealmModel realm, Integer first, Integer max)` Deprecated. Use the corresponding method from `RoleProvider`.
    `default Stream<RoleModel>` | RoleProvider.`getRealmRolesStream(RealmModel realm)` Returns all the realm roles of the given realm as a stream.
    `Stream<RoleModel>` | RoleProvider.`getRealmRolesStream(RealmModel realm, Integer first, Integer max)` Returns the realm roles of the given realm as a stream.
    `default Set<RoleModel>` | ScopeContainerModel.`getRealmScopeMappings()` Deprecated. Use `getRealmScopeMappingsStream` instead.
    `Stream<RoleModel>` | ScopeContainerModel.`getRealmScopeMappingsStream()` From the scope mappings returned by `ScopeContainerModel.getScopeMappingsStream()` returns only those that belong to the realm that owns this scope container.
    `Set<RoleModel>` | RoleMapperModel.`getRoleMappings()` Deprecated. Use `getRoleMappingsStream` instead.
    `default Set<RoleModel>` | RoleMapperModel.Streams.`getRoleMappings()`
    `default Stream<RoleModel>` | RoleMapperModel.`getRoleMappingsStream()` Returns stream of all role (both realm all client) that are directly set to this object.
    `Stream<RoleModel>` | RoleMapperModel.Streams.`getRoleMappingsStream()`
    `default Set<RoleModel>` | RoleContainerModel.`getRoles()` Deprecated. Use `getRolesStream` instead.
    `default Set<RoleModel>` | ClientSessionContext.`getRoles()` Deprecated. Use `getRolesStream` instead.
    `default Set<RoleModel>` | RoleContainerModel.`getRoles(Integer firstResult, Integer maxResults)` Deprecated. Use `getRolesStream` instead.
    `Stream<RoleModel>` | RoleContainerModel.`getRolesStream()` Returns available roles as a stream.
    `Stream<RoleModel>` | ClientSessionContext.`getRolesStream()` Returns all roles including composite ones as a stream.
    `Stream<RoleModel>` | RoleContainerModel.`getRolesStream(Integer firstResult, Integer maxResults)` Returns available roles as a stream.
    `default Set<RoleModel>` | ScopeContainerModel.`getScopeMappings()` Deprecated. Use `getScopeMappingsStream` instead.
    `Stream<RoleModel>` | ScopeContainerModel.`getScopeMappingsStream()` Returns scope mappings for this scope container as a stream.
    `default Set<RoleModel>` | RealmProvider.`searchForClientRoles(RealmModel realm, ClientModel client, String search, Integer first, Integer max)` Deprecated. Use the corresponding method from `RoleProvider`.
    `default Set<RoleModel>` | RealmProvider.`searchForRoles(RealmModel realm, String search, Integer first, Integer max)` Deprecated. Use the corresponding method from `RoleProvider`.
    `default Set<RoleModel>` | RoleContainerModel.`searchForRoles(String search, Integer first, Integer max)` Deprecated. Use `searchForRolesStream` instead.
    `Stream<RoleModel>` | RoleContainerModel.`searchForRolesStream(String search, Integer first, Integer max)` Searches roles by the given name.

    Methods in org.keycloak.models with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoleModel.`addCompositeRole(RoleModel role)`
    `void` | ScopeContainerModel.`addScopeMapping(RoleModel role)`
    `default void` | RealmModel.`addToDefaultRoles(RoleModel role)` Adds a role as a composite to default role of this realm.
    `void` | RoleMapperModel.`deleteRoleMapping(RoleModel role)` Removes the given role mapping from this object.
    `void` | ScopeContainerModel.`deleteScopeMapping(RoleModel role)`
    `default List<GroupModel>` | RealmProvider.`getGroupsByRole(RealmModel realm, RoleModel role, int firstResult, int maxResults)` Deprecated. Use the corresponding method from `GroupProvider`.
    `default List<GroupModel>` | GroupProvider.`getGroupsByRole(RealmModel realm, RoleModel role, int firstResult, int maxResults)` Deprecated. Use `getGroupsByRoleStream` instead.
    `Stream<GroupModel>` | GroupProvider.`getGroupsByRoleStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)` Returns groups with the given role in the given realm.
    `void` | RoleMapperModel.`grantRole(RoleModel role)` Grants the given role to this object.
    `boolean` | RoleModel.`hasRole(RoleModel role)`
    `boolean` | RoleMapperModel.`hasRole(RoleModel role)` Returns `true` if this object is directly or indirectly assigned the given role, `false` otherwise.
    `boolean` | ScopeContainerModel.`hasScope(RoleModel role)`
    `void` | UserProvider.`preRemove(RealmModel realm, RoleModel role)` Called when a role is removed.
    `void` | RoleModel.`removeCompositeRole(RoleModel role)`
    `default boolean` | RealmProvider.`removeRole(RealmModel realm, RoleModel role)` Deprecated. Use the corresponding method from `RoleProvider`.
    `boolean` | RoleProvider.`removeRole(RoleModel role)` Removes given realm role from the given realm.
    `boolean` | RoleContainerModel.`removeRole(RoleModel role)`
    `void` | RealmModel.`setDefaultRole(RoleModel role)` Sets default role for this realm

  - ### Uses of RoleModel in org.keycloak.models.cache.infinispan

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

    Fields in org.keycloak.models.cache.infinispan with type parameters of type RoleModel
    Modifier and Type | Field and Description
    --- | ---
    `protected Set<RoleModel>` | RoleAdapter.`composites`

    Methods in org.keycloak.models.cache.infinispan that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | RealmCacheSession.`addClientRole(ClientModel client, String name)`
    `RoleModel` | RealmCacheSession.`addClientRole(ClientModel client, String id, String name)`
    `RoleModel` | RealmCacheSession.`addRealmRole(RealmModel realm, String name)`
    `RoleModel` | RealmCacheSession.`addRealmRole(RealmModel realm, String id, String name)`
    `RoleModel` | RealmAdapter.`addRole(String name)`
    `RoleModel` | ClientAdapter.`addRole(String name)`
    `RoleModel` | RealmAdapter.`addRole(String id, String name)`
    `RoleModel` | ClientAdapter.`addRole(String id, String name)`
    `RoleModel` | RealmCacheSession.`getClientRole(ClientModel client, String name)`
    `RoleModel` | RealmAdapter.`getDefaultRole()`
    `RoleModel` | RealmCacheSession.`getRealmRole(RealmModel realm, String name)`
    `RoleModel` | RealmAdapter.`getRole(String name)`
    `RoleModel` | ClientAdapter.`getRole(String name)`
    `RoleModel` | RealmCacheSession.`getRoleById(RealmModel realm, String id)`
    `RoleModel` | RealmAdapter.`getRoleById(String id)`

    Methods in org.keycloak.models.cache.infinispan that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | UserAdapter.`getClientRoleMappingsStream(ClientModel app)`
    `Stream<RoleModel>` | GroupAdapter.`getClientRoleMappingsStream(ClientModel app)`
    `Stream<RoleModel>` | RealmCacheSession.`getClientRolesStream(ClientModel client)`
    `Stream<RoleModel>` | RealmCacheSession.`getClientRolesStream(ClientModel client, Integer first, Integer max)`
    `Stream<RoleModel>` | RoleAdapter.`getCompositesStream()`
    `Stream<RoleModel>` | UserAdapter.`getRealmRoleMappingsStream()`
    `Stream<RoleModel>` | GroupAdapter.`getRealmRoleMappingsStream()`
    `Stream<RoleModel>` | RealmCacheSession.`getRealmRolesStream(RealmModel realm)`
    `Stream<RoleModel>` | RealmCacheSession.`getRealmRolesStream(RealmModel realm, Integer first, Integer max)`
    `Stream<RoleModel>` | ClientScopeAdapter.`getRealmScopeMappingsStream()`
    `Stream<RoleModel>` | ClientAdapter.`getRealmScopeMappingsStream()`
    `Stream<RoleModel>` | UserAdapter.`getRoleMappingsStream()`
    `Stream<RoleModel>` | GroupAdapter.`getRoleMappingsStream()`
    `Stream<RoleModel>` | RealmAdapter.`getRolesStream()`
    `Stream<RoleModel>` | ClientAdapter.`getRolesStream()`
    `Stream<RoleModel>` | RealmAdapter.`getRolesStream(Integer first, Integer max)`
    `Stream<RoleModel>` | ClientAdapter.`getRolesStream(Integer first, Integer max)`
    `Stream<RoleModel>` | ClientScopeAdapter.`getScopeMappingsStream()`
    `Stream<RoleModel>` | ClientAdapter.`getScopeMappingsStream()`
    `Stream<RoleModel>` | RealmCacheSession.`searchForClientRolesStream(ClientModel client, String search, Integer first, Integer max)`
    `Stream<RoleModel>` | RealmCacheSession.`searchForRolesStream(RealmModel realm, String search, Integer first, Integer max)`
    `Stream<RoleModel>` | RealmAdapter.`searchForRolesStream(String search, Integer first, Integer max)`
    `Stream<RoleModel>` | ClientAdapter.`searchForRolesStream(String search, Integer first, Integer max)`

    Methods in org.keycloak.models.cache.infinispan with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoleAdapter.`addCompositeRole(RoleModel role)`
    `void` | ClientScopeAdapter.`addScopeMapping(RoleModel role)`
    `void` | ClientAdapter.`addScopeMapping(RoleModel role)`
    `void` | RealmAdapter.`addToDefaultRoles(RoleModel role)`
    `void` | UserAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | GroupAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | ClientScopeAdapter.`deleteScopeMapping(RoleModel role)`
    `void` | ClientAdapter.`deleteScopeMapping(RoleModel role)`
    `Stream<GroupModel>` | RealmCacheSession.`getGroupsByRoleStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)`
    `Stream<UserModel>` | UserCacheSession.`getRoleMembersStream(RealmModel realm, RoleModel role)`
    `Stream<UserModel>` | UserCacheSession.`getRoleMembersStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)`
    `void` | UserAdapter.`grantRole(RoleModel role)`
    `void` | GroupAdapter.`grantRole(RoleModel role)`
    `void` | UserCacheSession.`grantToAllUsers(RealmModel realm, RoleModel role)`
    `boolean` | UserAdapter.`hasRole(RoleModel role)`
    `boolean` | RoleAdapter.`hasRole(RoleModel role)`
    `boolean` | GroupAdapter.`hasRole(RoleModel role)`
    `boolean` | ClientScopeAdapter.`hasScope(RoleModel role)`
    `boolean` | ClientAdapter.`hasScope(RoleModel role)`
    `void` | UserCacheSession.`preRemove(RealmModel realm, RoleModel role)`
    `void` | RoleAdapter.`removeCompositeRole(RoleModel role)`
    `boolean` | RealmCacheSession.`removeRole(RoleModel role)`
    `boolean` | RealmAdapter.`removeRole(RoleModel role)`
    `boolean` | ClientAdapter.`removeRole(RoleModel role)`
    `void` | RealmAdapter.`setDefaultRole(RoleModel role)`

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

    Method parameters in org.keycloak.models.cache.infinispan.entities with type arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `MultivaluedHashMap<String,String>` | CachedRole.`getAttributes(Supplier<RoleModel> roleModel)`

    Constructors in org.keycloak.models.cache.infinispan.entities with parameters of type RoleModel
    Constructor and Description
    `CachedClientRole(Long revision, String clientId, RoleModel model, RealmModel realm)`
    `CachedRealmRole(Long revision, RoleModel model, RealmModel realm)`
    `CachedRole(Long revision, RoleModel model, RealmModel realm)`

  - ### Uses of RoleModel in org.keycloak.models.delegate

    Methods in org.keycloak.models.delegate that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | ClientModelLazyDelegate.`addRole(String name)`
    `RoleModel` | ClientModelLazyDelegate.`addRole(String id, String name)`
    `RoleModel` | ClientModelLazyDelegate.`getRole(String name)`

    Methods in org.keycloak.models.delegate that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | ClientModelLazyDelegate.`getRealmScopeMappings()`
    `Stream<RoleModel>` | ClientModelLazyDelegate.`getRealmScopeMappingsStream()`
    `Set<RoleModel>` | ClientModelLazyDelegate.`getRoles()`
    `Set<RoleModel>` | ClientModelLazyDelegate.`getRoles(Integer firstResult, Integer maxResults)`
    `Stream<RoleModel>` | ClientModelLazyDelegate.`getRolesStream()`
    `Stream<RoleModel>` | ClientModelLazyDelegate.`getRolesStream(Integer firstResult, Integer maxResults)`
    `Set<RoleModel>` | ClientModelLazyDelegate.`getScopeMappings()`
    `Stream<RoleModel>` | ClientModelLazyDelegate.`getScopeMappingsStream()`
    `Set<RoleModel>` | ClientModelLazyDelegate.`searchForRoles(String search, Integer first, Integer max)`
    `Stream<RoleModel>` | ClientModelLazyDelegate.`searchForRolesStream(String search, Integer first, Integer max)`

    Methods in org.keycloak.models.delegate with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | ClientModelLazyDelegate.`addScopeMapping(RoleModel role)`
    `void` | ClientModelLazyDelegate.`deleteScopeMapping(RoleModel role)`
    `boolean` | ClientModelLazyDelegate.`hasScope(RoleModel role)`
    `boolean` | ClientModelLazyDelegate.`removeRole(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.models.jpa

    Classes in org.keycloak.models.jpa that implement RoleModel
    Modifier and Type | Class and Description
    --- | ---
    `class` | `RoleAdapter`

    Methods in org.keycloak.models.jpa that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | JpaRealmProvider.`addClientRole(ClientModel client, String name)`
    `RoleModel` | JpaRealmProvider.`addClientRole(ClientModel client, String id, String name)`
    `RoleModel` | JpaRealmProvider.`addRealmRole(RealmModel realm, String name)`
    `RoleModel` | JpaRealmProvider.`addRealmRole(RealmModel realm, String id, String name)`
    `RoleModel` | RealmAdapter.`addRole(String name)`
    `RoleModel` | ClientAdapter.`addRole(String name)`
    `RoleModel` | RealmAdapter.`addRole(String id, String name)`
    `RoleModel` | ClientAdapter.`addRole(String id, String name)`
    `RoleModel` | JpaRealmProvider.`getClientRole(ClientModel client, String name)`
    `RoleModel` | RealmAdapter.`getDefaultRole()`
    `RoleModel` | JpaRealmProvider.`getRealmRole(RealmModel realm, String name)`
    `RoleModel` | RealmAdapter.`getRole(String name)`
    `RoleModel` | ClientAdapter.`getRole(String name)`
    `RoleModel` | JpaRealmProvider.`getRoleById(RealmModel realm, String id)`
    `RoleModel` | RealmAdapter.`getRoleById(String id)`

    Methods in org.keycloak.models.jpa that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | UserAdapter.`getClientRoleMappingsStream(ClientModel app)`
    `Stream<RoleModel>` | GroupAdapter.`getClientRoleMappingsStream(ClientModel app)`
    `Stream<RoleModel>` | JpaRealmProvider.`getClientRolesStream(ClientModel client, Integer first, Integer max)`
    `Stream<RoleModel>` | RoleAdapter.`getCompositesStream()`
    `Stream<RoleModel>` | UserAdapter.`getRealmRoleMappingsStream()`
    `Stream<RoleModel>` | GroupAdapter.`getRealmRoleMappingsStream()`
    `Stream<RoleModel>` | JpaRealmProvider.`getRealmRolesStream(RealmModel realm)`
    `Stream<RoleModel>` | JpaRealmProvider.`getRealmRolesStream(RealmModel realm, Integer first, Integer max)`
    `Stream<RoleModel>` | ClientScopeAdapter.`getRealmScopeMappingsStream()`
    `Stream<RoleModel>` | ClientAdapter.`getRealmScopeMappingsStream()`
    `Stream<RoleModel>` | UserAdapter.`getRoleMappingsStream()`
    `Stream<RoleModel>` | GroupAdapter.`getRoleMappingsStream()`
    `Stream<RoleModel>` | RealmAdapter.`getRolesStream()`
    `Stream<RoleModel>` | ClientAdapter.`getRolesStream()`
    `Stream<RoleModel>` | RealmAdapter.`getRolesStream(Integer first, Integer max)`
    `Stream<RoleModel>` | ClientAdapter.`getRolesStream(Integer first, Integer max)`
    `protected Stream<RoleModel>` | JpaRealmProvider.`getRolesStream(javax.persistence.TypedQuery<RoleEntity> query, RealmModel realm, Integer first, Integer max)`
    `Stream<RoleModel>` | ClientScopeAdapter.`getScopeMappingsStream()`
    `Stream<RoleModel>` | ClientAdapter.`getScopeMappingsStream()`
    `Stream<RoleModel>` | JpaRealmProvider.`searchForClientRolesStream(ClientModel client, String search, Integer first, Integer max)`
    `protected Stream<RoleModel>` | JpaRealmProvider.`searchForRoles(javax.persistence.TypedQuery<RoleEntity> query, RealmModel realm, String search, Integer first, Integer max)`
    `Stream<RoleModel>` | JpaRealmProvider.`searchForRolesStream(RealmModel realm, String search, Integer first, Integer max)`
    `Stream<RoleModel>` | RealmAdapter.`searchForRolesStream(String search, Integer first, Integer max)`
    `Stream<RoleModel>` | ClientAdapter.`searchForRolesStream(String search, Integer first, Integer max)`

    Methods in org.keycloak.models.jpa with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoleAdapter.`addCompositeRole(RoleModel role)`
    `void` | ClientScopeAdapter.`addScopeMapping(RoleModel role)`
    `void` | ClientAdapter.`addScopeMapping(RoleModel role)`
    `void` | UserAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | GroupAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | ClientScopeAdapter.`deleteScopeMapping(RoleModel role)`
    `void` | ClientAdapter.`deleteScopeMapping(RoleModel role)`
    `protected javax.persistence.TypedQuery<GroupRoleMappingEntity>` | GroupAdapter.`getGroupRoleMappingEntityTypedQuery(RoleModel role)`
    `Stream<GroupModel>` | JpaRealmProvider.`getGroupsByRoleStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)`
    `Stream<UserModel>` | JpaUserProvider.`getRoleMembersStream(RealmModel realm, RoleModel role)`
    `Stream<UserModel>` | JpaUserProvider.`getRoleMembersStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)`
    `protected javax.persistence.TypedQuery<UserRoleMappingEntity>` | UserAdapter.`getUserRoleMappingEntityTypedQuery(RoleModel role)`
    `void` | UserAdapter.`grantRole(RoleModel role)`
    `void` | GroupAdapter.`grantRole(RoleModel role)`
    `void` | UserAdapter.`grantRoleImpl(RoleModel role)`
    `void` | JpaUserProvider.`grantToAllUsers(RealmModel realm, RoleModel role)`
    `boolean` | UserAdapter.`hasRole(RoleModel role)`
    `boolean` | RoleAdapter.`hasRole(RoleModel role)`
    `boolean` | GroupAdapter.`hasRole(RoleModel role)`
    `boolean` | ClientScopeAdapter.`hasScope(RoleModel role)`
    `boolean` | ClientAdapter.`hasScope(RoleModel role)`
    `void` | JpaUserProvider.`preRemove(RealmModel realm, RoleModel role)`
    `void` | JpaRealmProvider.`preRemove(RealmModel realm, RoleModel role)`
    `void` | RoleAdapter.`removeCompositeRole(RoleModel role)`
    `boolean` | RealmAdapter.`removeRole(RoleModel role)`
    `boolean` | JpaRealmProvider.`removeRole(RoleModel role)`
    `boolean` | ClientAdapter.`removeRole(RoleModel roleModel)`
    `RoleContainerModel.RoleRemovedEvent` | JpaRealmProvider.`roleRemovedEvent(RoleModel role)`
    `void` | RealmAdapter.`setDefaultRole(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.models.map.client

    Methods in org.keycloak.models.map.client that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | AbstractClientModel.`addRole(String name)`
    `RoleModel` | AbstractClientModel.`addRole(String id, String name)`
    `RoleModel` | AbstractClientModel.`getRole(String name)`

    Methods in org.keycloak.models.map.client that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | AbstractClientModel.`getRealmScopeMappingsStream()`
    `Stream<RoleModel>` | AbstractClientModel.`getRolesStream()`
    `Stream<RoleModel>` | AbstractClientModel.`getRolesStream(Integer firstResult, Integer maxResults)`
    `Stream<RoleModel>` | MapClientAdapter.`getScopeMappingsStream()` Scopes mappings
    `Stream<RoleModel>` | AbstractClientModel.`searchForRolesStream(String search, Integer first, Integer max)`

    Methods in org.keycloak.models.map.client with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | MapClientAdapter.`addScopeMapping(RoleModel role)`
    `void` | MapClientAdapter.`deleteScopeMapping(RoleModel role)`
    `boolean` | MapClientAdapter.`hasScope(RoleModel role)`
    `void` | MapClientProvider.`preRemove(RealmModel realm, RoleModel role)`
    `boolean` | AbstractClientModel.`removeRole(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.models.map.clientscope

    Methods in org.keycloak.models.map.clientscope that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | MapClientScopeAdapter.`getRealmScopeMappingsStream()`
    `Stream<RoleModel>` | MapClientScopeAdapter.`getScopeMappingsStream()`

    Methods in org.keycloak.models.map.clientscope with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | MapClientScopeAdapter.`addScopeMapping(RoleModel role)`
    `void` | MapClientScopeAdapter.`deleteScopeMapping(RoleModel role)`
    `boolean` | MapClientScopeAdapter.`hasScope(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.models.map.group

    Methods in org.keycloak.models.map.group that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | MapGroupAdapter.`getClientRoleMappingsStream(ClientModel app)`
    `Stream<RoleModel>` | MapGroupAdapter.`getRealmRoleMappingsStream()`
    `Stream<RoleModel>` | MapGroupAdapter.`getRoleMappingsStream()`

    Methods in org.keycloak.models.map.group with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | MapGroupAdapter.`deleteRoleMapping(RoleModel role)`
    `Stream<GroupModel>` | MapGroupProvider.`getGroupsByRoleStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)`
    `void` | MapGroupAdapter.`grantRole(RoleModel role)`
    `boolean` | MapGroupAdapter.`hasRole(RoleModel role)`
    `void` | MapGroupProvider.`preRemove(RealmModel realm, RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.models.map.realm

    Methods in org.keycloak.models.map.realm that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | MapRealmProvider.`addClientRole(ClientModel client, String id, String name)` Deprecated.
    `RoleModel` | MapRealmProvider.`addRealmRole(RealmModel realm, String id, String name)` Deprecated.
    `RoleModel` | MapRealmAdapter.`addRole(String name)`
    `RoleModel` | MapRealmAdapter.`addRole(String id, String name)`
    `RoleModel` | MapRealmProvider.`getClientRole(ClientModel client, String name)` Deprecated.
    `RoleModel` | MapRealmAdapter.`getDefaultRole()`
    `RoleModel` | MapRealmProvider.`getRealmRole(RealmModel realm, String name)` Deprecated.
    `RoleModel` | MapRealmAdapter.`getRole(String name)`
    `RoleModel` | MapRealmProvider.`getRoleById(RealmModel realm, String id)` Deprecated.
    `RoleModel` | MapRealmAdapter.`getRoleById(String id)`

    Methods in org.keycloak.models.map.realm that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | MapRealmProvider.`getClientRolesStream(ClientModel client, Integer first, Integer max)` Deprecated.
    `Stream<RoleModel>` | MapRealmProvider.`getRealmRolesStream(RealmModel realm, Integer first, Integer max)` Deprecated.
    `Stream<RoleModel>` | MapRealmAdapter.`getRolesStream()`
    `Stream<RoleModel>` | MapRealmAdapter.`getRolesStream(Integer firstResult, Integer maxResults)`
    `Stream<RoleModel>` | MapRealmProvider.`searchForClientRolesStream(ClientModel client, String search, Integer first, Integer max)` Deprecated.
    `Stream<RoleModel>` | MapRealmProvider.`searchForRolesStream(RealmModel realm, String search, Integer first, Integer max)` Deprecated.
    `Stream<RoleModel>` | MapRealmAdapter.`searchForRolesStream(String search, Integer first, Integer max)`

    Methods in org.keycloak.models.map.realm with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<GroupModel>` | MapRealmProvider.`getGroupsByRoleStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)` Deprecated.
    `boolean` | MapRealmProvider.`removeRole(RoleModel role)` Deprecated.
    `boolean` | MapRealmAdapter.`removeRole(RoleModel role)`
    `void` | MapRealmAdapter.`setDefaultRole(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.models.map.role

    Classes in org.keycloak.models.map.role that implement RoleModel
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractRoleModel<E extends AbstractEntity>`
    `class` | `MapRoleAdapter`

    Methods in org.keycloak.models.map.role that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | MapRoleProvider.`addClientRole(ClientModel client, String id, String name)`
    `RoleModel` | MapRoleProvider.`addRealmRole(RealmModel realm, String id, String name)`
    `RoleModel` | MapRoleProvider.`getClientRole(ClientModel client, String name)`
    `RoleModel` | MapRoleProvider.`getRealmRole(RealmModel realm, String name)`
    `RoleModel` | MapRoleProvider.`getRoleById(RealmModel realm, String id)`

    Methods in org.keycloak.models.map.role that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | MapRoleProvider.`getClientRolesStream(ClientModel client)`
    `Stream<RoleModel>` | MapRoleProvider.`getClientRolesStream(ClientModel client, Integer first, Integer max)`
    `Stream<RoleModel>` | MapRoleAdapter.`getCompositesStream()`
    `Stream<RoleModel>` | MapRoleProvider.`getRealmRolesStream(RealmModel realm)`
    `Stream<RoleModel>` | MapRoleProvider.`getRealmRolesStream(RealmModel realm, Integer first, Integer max)`
    `Stream<RoleModel>` | MapRoleProvider.`searchForClientRolesStream(ClientModel client, String search, Integer first, Integer max)`
    `Stream<RoleModel>` | MapRoleProvider.`searchForRolesStream(RealmModel realm, String search, Integer first, Integer max)`

    Methods in org.keycloak.models.map.role with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | MapRoleAdapter.`addCompositeRole(RoleModel role)`
    `boolean` | MapRoleAdapter.`hasRole(RoleModel role)`
    `void` | MapRoleAdapter.`removeCompositeRole(RoleModel role)`
    `boolean` | MapRoleProvider.`removeRole(RoleModel role)`

    Constructor parameters in org.keycloak.models.map.role with type arguments of type RoleModel
    Constructor and Description
    `MapRoleProvider(KeycloakSession session, MapStorage<MapRoleEntity,RoleModel> roleStore)`

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

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

  - ### Uses of RoleModel in org.keycloak.models.map.user

    Methods in org.keycloak.models.map.user that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | MapUserAdapter.`getClientRoleMappingsStream(ClientModel app)`
    `Stream<RoleModel>` | MapUserAdapter.`getRealmRoleMappingsStream()`
    `Stream<RoleModel>` | MapUserAdapter.`getRoleMappingsStream()`

    Methods in org.keycloak.models.map.user with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | MapUserAdapter.`deleteRoleMapping(RoleModel role)`
    `Stream<UserModel>` | MapUserProvider.`getRoleMembersStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)`
    `void` | MapUserAdapter.`grantRole(RoleModel role)`
    `void` | MapUserProvider.`grantToAllUsers(RealmModel realm, RoleModel role)`
    `boolean` | MapUserAdapter.`hasRole(RoleModel role)`
    `void` | MapUserProvider.`preRemove(RealmModel realm, RoleModel role)`

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

    Methods in org.keycloak.models.utils that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `static RoleModel` | RepresentationToModel.`createRole(RealmModel newRealm, RoleRepresentation roleRep)`
    `static RoleModel` | KeycloakModelUtils.`getRoleFromString(RealmModel realm, String roleName)`
    `static RoleModel` | KeycloakModelUtils.`setupOfflineRole(RealmModel realm)`

    Methods in org.keycloak.models.utils that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `static Set<RoleModel>` | RoleUtils.`expandCompositeRoles(Set<RoleModel> roles)`
    `static Stream<RoleModel>` | RoleUtils.`expandCompositeRolesStream(Stream<RoleModel> roles)`
    `Stream<RoleModel>` | UserModelDelegate.`getClientRoleMappingsStream(ClientModel app)`
    `static Set<RoleModel>` | KeycloakModelUtils.`getClientScopeMappings(ClientModel client, ScopeContainerModel container)` Deprecated. Use `KeycloakModelUtils.getClientScopeMappingsStream(ClientModel, ScopeContainerModel)` getClientScopeMappingsStream} instead.
    `static Stream<RoleModel>` | KeycloakModelUtils.`getClientScopeMappingsStream(ClientModel client, ScopeContainerModel container)`
    `static Set<RoleModel>` | RoleUtils.`getDeepUserRoleMappings(UserModel user)`
    `Stream<RoleModel>` | UserModelDelegate.`getRealmRoleMappingsStream()`
    `Stream<RoleModel>` | UserModelDelegate.`getRoleMappingsStream()`

    Methods in org.keycloak.models.utils with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `static void` | DefaultClientScopes.`createOfflineAccessClientScope(RealmModel newRealm, RoleModel offlineRole)`
    `void` | ReadOnlyUserModelDelegate.`deleteRoleMapping(RoleModel role)`
    `void` | UserModelDelegate.`deleteRoleMapping(RoleModel role)`
    `void` | ReadOnlyUserModelDelegate.`grantRole(RoleModel role)`
    `void` | UserModelDelegate.`grantRole(RoleModel role)`
    `boolean` | UserModelDelegate.`hasRole(RoleModel role)`
    `static boolean` | RoleUtils.`hasRole(Set<RoleModel> roles, RoleModel targetRole)`
    `static boolean` | RoleUtils.`hasRole(Stream<RoleModel> roles, RoleModel targetRole)`
    `static boolean` | RoleUtils.`hasRoleFromGroup(GroupModel group, RoleModel targetRole, boolean checkParentGroup)` Checks whether the `targetRole` is contained in the given group or its parents (if requested)
    `static boolean` | RoleUtils.`hasRoleFromGroup(Iterable<GroupModel> groups, RoleModel targetRole, boolean checkParentGroup)` Deprecated. Use `RoleUtils.hasRoleFromGroup(Stream, RoleModel, boolean)` hasRoleFromGroup(Stream, RoleModel, boolean)} instead.
    `static boolean` | RoleUtils.`hasRoleFromGroup(Stream<GroupModel> groups, RoleModel targetRole, boolean checkParentGroup)` Checks whether the `targetRole` is contained in any of the `groups` or their parents (if requested)
    `static boolean` | RoleUtils.`isClientRole(RoleModel r, ClientModel c)`
    `static boolean` | RoleUtils.`isRealmRole(RoleModel r)`
    `static boolean` | RoleUtils.`isRealmRole(RoleModel r, RealmModel realm)`
    `static boolean` | KeycloakModelUtils.`searchFor(RoleModel role, RoleModel composite, Set<String> visited)` Deep search if given role is descendant of composite role
    `static RoleRepresentation` | ModelToRepresentation.`toBriefRepresentation(RoleModel role)`
    `static RoleRepresentation` | ModelToRepresentation.`toRepresentation(RoleModel role)`

    Method parameters in org.keycloak.models.utils with type arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `static Set<RoleModel>` | RoleUtils.`expandCompositeRoles(Set<RoleModel> roles)`
    `static Stream<RoleModel>` | RoleUtils.`expandCompositeRolesStream(Stream<RoleModel> roles)`
    `static boolean` | RoleUtils.`hasRole(Set<RoleModel> roles, RoleModel targetRole)`
    `static boolean` | RoleUtils.`hasRole(Stream<RoleModel> roles, RoleModel targetRole)`

  - ### Uses of RoleModel in org.keycloak.partialimport

    Methods in org.keycloak.partialimport with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | RealmRolesPartialImport.RoleHelper.`deleteRole(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.protocol.oidc

    Methods in org.keycloak.protocol.oidc that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `static Set<RoleModel>` | TokenManager.`getAccess(UserModel user, ClientModel client, Stream<ClientScopeModel> clientScopes)`

  - ### Uses of RoleModel in org.keycloak.protocol.saml.mappers

    Methods in org.keycloak.protocol.saml.mappers with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `String` | SAMLRoleNameMapper.`mapName(ProtocolMapperModel model, RoleModel role)`
    `String` | RoleNameMapper.`mapName(ProtocolMapperModel model, RoleModel roleModel)`

  - ### Uses of RoleModel in org.keycloak.services.resources.admin

    Methods in org.keycloak.services.resources.admin that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `protected RoleModel` | RoleByIdResource.`getRoleModel(String id)`

    Methods in org.keycloak.services.resources.admin with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | RoleResource.`addComposites(AdminPermissionEvaluator auth, AdminEventBuilder adminEvent, javax.ws.rs.core.UriInfo uriInfo, List<RoleRepresentation> roles, RoleModel role)`
    `protected void` | RoleResource.`deleteComposites(AdminEventBuilder adminEvent, javax.ws.rs.core.UriInfo uriInfo, List<RoleRepresentation> roles, RoleModel role)`
    `protected void` | RoleResource.`deleteRole(RoleModel role)`
    `protected Stream<RoleRepresentation>` | RoleResource.`getClientRoleComposites(ClientModel app, RoleModel role)`
    `protected Stream<RoleRepresentation>` | RoleResource.`getRealmRoleComposites(RoleModel role)`
    `protected RoleRepresentation` | RoleResource.`getRole(RoleModel roleModel)`
    `static ManagementPermissionReference` | RoleByIdResource.`toMgmtRef(RoleModel role, AdminPermissionManagement permissions)`
    `protected void` | RoleResource.`updateRole(RoleRepresentation rep, RoleModel role)`

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

    Methods in org.keycloak.services.resources.admin.permissions with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | RolePermissionEvaluator.`canManage(RoleModel role)`
    `boolean` | RolePermissionEvaluator.`canMapClientScope(RoleModel role)`
    `boolean` | RolePermissionEvaluator.`canMapComposite(RoleModel role)`
    `boolean` | RolePermissionEvaluator.`canMapRole(RoleModel role)`
    `boolean` | RolePermissionEvaluator.`canView(RoleModel role)`
    `Map<String,String>` | RolePermissionManagement.`getPermissions(RoleModel role)`
    `boolean` | RolePermissionManagement.`isPermissionsEnabled(RoleModel role)`
    `Policy` | RolePermissionManagement.`mapClientScopePermission(RoleModel role)`
    `Policy` | RolePermissionManagement.`mapCompositePermission(RoleModel role)`
    `Policy` | RolePermissionManagement.`mapRolePermission(RoleModel role)`
    `void` | RolePermissionEvaluator.`requireManage(RoleModel role)`
    `void` | RolePermissionEvaluator.`requireMapClientScope(RoleModel role)`
    `void` | RolePermissionEvaluator.`requireMapComposite(RoleModel role)`
    `void` | RolePermissionEvaluator.`requireMapRole(RoleModel role)`
    `void` | RolePermissionEvaluator.`requireView(RoleModel role)`
    `Resource` | RolePermissionManagement.`resource(RoleModel role)`
    `ResourceServer` | RolePermissionManagement.`resourceServer(RoleModel role)`
    `Policy` | RolePermissionManagement.`rolePolicy(ResourceServer server, RoleModel role)`
    `void` | RolePermissionManagement.`setPermissionsEnabled(RoleModel role, boolean enable)`

  - ### Uses of RoleModel in org.keycloak.services.util

    Methods in org.keycloak.services.util that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | DefaultClientSessionContext.`getRolesStream()`

  - ### Uses of RoleModel in org.keycloak.storage

    Methods in org.keycloak.storage that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | RoleStorageManager.`addClientRole(ClientModel client, String name)`
    `RoleModel` | RoleStorageManager.`addClientRole(ClientModel client, String id, String name)`
    `RoleModel` | RoleStorageManager.`addRealmRole(RealmModel realm, String name)`
    `RoleModel` | RoleStorageManager.`addRealmRole(RealmModel realm, String id, String name)`
    `RoleModel` | RoleStorageManager.`getClientRole(ClientModel client, String name)`
    `RoleModel` | RoleStorageManager.`getRealmRole(RealmModel realm, String name)`
    `RoleModel` | RoleStorageManager.`getRoleById(RealmModel realm, String id)`

    Methods in org.keycloak.storage that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | RoleStorageManager.`getClientRolesStream(ClientModel client)`
    `Stream<RoleModel>` | RoleStorageManager.`getClientRolesStream(ClientModel client, Integer first, Integer max)`
    `Stream<RoleModel>` | RoleStorageManager.`getRealmRolesStream(RealmModel realm, Integer first, Integer max)`
    `Stream<RoleModel>` | RoleStorageManager.`searchForClientRolesStream(ClientModel client, String search, Integer first, Integer max)` Obtaining roles from an external role storage is time-bounded.
    `Stream<RoleModel>` | RoleStorageManager.`searchForRolesStream(RealmModel realm, String search, Integer first, Integer max)` Obtaining roles from an external role storage is time-bounded.

    Methods in org.keycloak.storage with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<GroupModel>` | GroupStorageManager.`getGroupsByRoleStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)`
    `Stream<UserModel>` | UserStorageManager.`getRoleMembersStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)`
    `void` | UserStorageManager.`grantToAllUsers(RealmModel realm, RoleModel role)` `UserQueryProvider` methods implementation end here `UserBulkUpdateProvider` methods implementation start here
    `default void` | UserStorageProvider.`preRemove(RealmModel realm, RoleModel role)` Callback when a role is removed.
    `void` | UserStorageManager.`preRemove(RealmModel realm, RoleModel role)`
    `boolean` | RoleStorageManager.`removeRole(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.storage.adapter

    Methods in org.keycloak.storage.adapter that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | AbstractUserAdapterFederatedStorage.`getClientRoleMappings(ClientModel app)` Gets role mappings from federated storage and automatically appends default roles.
    `Set<RoleModel>` | AbstractUserAdapterFederatedStorage.Streams.`getClientRoleMappings(ClientModel app)`
    `Set<RoleModel>` | AbstractUserAdapter.`getClientRoleMappings(ClientModel app)`
    `Set<RoleModel>` | AbstractUserAdapter.Streams.`getClientRoleMappings(ClientModel app)`
    `Stream<RoleModel>` | InMemoryUserAdapter.`getClientRoleMappingsStream(ClientModel app)`
    `Stream<RoleModel>` | AbstractUserAdapterFederatedStorage.Streams.`getClientRoleMappingsStream(ClientModel app)`
    `Stream<RoleModel>` | AbstractUserAdapter.Streams.`getClientRoleMappingsStream(ClientModel app)`
    `protected Set<RoleModel>` | AbstractUserAdapterFederatedStorage.`getFederatedRoleMappings()`
    `Set<RoleModel>` | AbstractUserAdapterFederatedStorage.`getRealmRoleMappings()` Gets role mappings from federated storage and automatically appends default roles.
    `Set<RoleModel>` | AbstractUserAdapterFederatedStorage.Streams.`getRealmRoleMappings()`
    `Set<RoleModel>` | AbstractUserAdapter.`getRealmRoleMappings()`
    `Set<RoleModel>` | AbstractUserAdapter.Streams.`getRealmRoleMappings()`
    `Stream<RoleModel>` | InMemoryUserAdapter.`getRealmRoleMappingsStream()`
    `Stream<RoleModel>` | AbstractUserAdapterFederatedStorage.Streams.`getRealmRoleMappingsStream()`
    `Stream<RoleModel>` | AbstractUserAdapter.Streams.`getRealmRoleMappingsStream()`
    `Set<RoleModel>` | AbstractUserAdapterFederatedStorage.`getRoleMappings()` Gets role mappings from federated storage and automatically appends default roles.
    `Set<RoleModel>` | AbstractUserAdapterFederatedStorage.Streams.`getRoleMappings()`
    `Set<RoleModel>` | AbstractUserAdapter.`getRoleMappings()`
    `Set<RoleModel>` | AbstractUserAdapter.Streams.`getRoleMappings()`
    `protected Set<RoleModel>` | AbstractUserAdapterFederatedStorage.`getRoleMappingsInternal()`
    `protected Set<RoleModel>` | AbstractUserAdapter.`getRoleMappingsInternal()`
    `Stream<RoleModel>` | InMemoryUserAdapter.`getRoleMappingsStream()`
    `Stream<RoleModel>` | AbstractUserAdapterFederatedStorage.Streams.`getRoleMappingsStream()`
    `Stream<RoleModel>` | AbstractUserAdapter.Streams.`getRoleMappingsStream()`

    Methods in org.keycloak.storage.adapter with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | UpdateOnlyChangeUserModelDelegate.`deleteRoleMapping(RoleModel role)`
    `void` | InMemoryUserAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | AbstractUserAdapterFederatedStorage.`deleteRoleMapping(RoleModel role)`
    `void` | AbstractUserAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | UpdateOnlyChangeUserModelDelegate.`grantRole(RoleModel role)`
    `void` | InMemoryUserAdapter.`grantRole(RoleModel role)`
    `void` | AbstractUserAdapterFederatedStorage.`grantRole(RoleModel role)`
    `void` | AbstractUserAdapter.`grantRole(RoleModel role)`
    `boolean` | InMemoryUserAdapter.`hasRole(RoleModel role)`
    `boolean` | AbstractUserAdapterFederatedStorage.`hasRole(RoleModel role)`
    `boolean` | AbstractUserAdapterFederatedStorage.Streams.`hasRole(RoleModel role)`
    `boolean` | AbstractUserAdapter.`hasRole(RoleModel role)`
    `boolean` | AbstractUserAdapter.Streams.`hasRole(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.storage.client

    Methods in org.keycloak.storage.client that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | UnsupportedOperationsClientStorageAdapter.`addRole(String name)`
    `RoleModel` | UnsupportedOperationsClientStorageAdapter.`addRole(String id, String name)`
    `RoleModel` | UnsupportedOperationsClientStorageAdapter.`getRole(String name)`

    Methods in org.keycloak.storage.client that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | UnsupportedOperationsClientStorageAdapter.`getRolesStream()`
    `Stream<RoleModel>` | UnsupportedOperationsClientStorageAdapter.`getRolesStream(Integer first, Integer max)`
    `Stream<RoleModel>` | UnsupportedOperationsClientStorageAdapter.`searchForRolesStream(String search, Integer first, Integer max)`

    Methods in org.keycloak.storage.client with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | AbstractReadOnlyClientStorageAdapter.`addScopeMapping(RoleModel role)`
    `void` | AbstractReadOnlyClientScopeAdapter.`addScopeMapping(RoleModel role)`
    `void` | AbstractReadOnlyClientStorageAdapter.`deleteScopeMapping(RoleModel role)`
    `void` | AbstractReadOnlyClientScopeAdapter.`deleteScopeMapping(RoleModel role)`
    `default void` | ClientStorageProvider.`preRemove(RealmModel realm, RoleModel role)` Callback when a role is removed.
    `boolean` | UnsupportedOperationsClientStorageAdapter.`removeRole(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.storage.federated

    Methods in org.keycloak.storage.federated that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | UserRoleMappingsFederatedStorage.`getRoleMappings(RealmModel realm, String userId)` Deprecated. Use `getRoleMappingsStream` instead.
    `default Set<RoleModel>` | UserRoleMappingsFederatedStorage.Streams.`getRoleMappings(RealmModel realm, String userId)`
    `default Stream<RoleModel>` | UserRoleMappingsFederatedStorage.`getRoleMappingsStream(RealmModel realm, String userId)` Obtains the roles associated with the federated user identified by `userId`.
    `Stream<RoleModel>` | UserRoleMappingsFederatedStorage.Streams.`getRoleMappingsStream(RealmModel realm, String userId)`

    Methods in org.keycloak.storage.federated with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | UserRoleMappingsFederatedStorage.`deleteRoleMapping(RealmModel realm, String userId, RoleModel role)`
    `void` | UserRoleMappingsFederatedStorage.`grantRole(RealmModel realm, String userId, RoleModel role)`
    `void` | UserFederatedStorageProvider.`preRemove(RealmModel realm, RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.storage.jpa

    Methods in org.keycloak.storage.jpa that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | JpaUserFederatedStorageProvider.`getRoleMappingsStream(RealmModel realm, String userId)`

    Methods in org.keycloak.storage.jpa with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | JpaUserFederatedStorageProvider.`deleteRoleMapping(RealmModel realm, String userId, RoleModel role)`
    `void` | JpaUserFederatedStorageProvider.`grantRole(RealmModel realm, String userId, RoleModel role)`
    `void` | JpaUserFederatedStorageProvider.`preRemove(RealmModel realm, RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.storage.ldap

    Methods in org.keycloak.storage.ldap with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<UserModel>` | LDAPStorageProvider.`getRoleMembersStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)`
    `void` | LDAPStorageProvider.`preRemove(RealmModel realm, RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.storage.ldap.mappers

    Methods in org.keycloak.storage.ldap.mappers with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `List<UserModel>` | LDAPStorageMapper.`getRoleMembers(RealmModel realm, RoleModel role, int firstResult, int maxResults)` Return empty list if doesn't support storing of roles
    `List<UserModel>` | AbstractLDAPStorageMapper.`getRoleMembers(RealmModel realm, RoleModel role, int firstResult, int maxResults)`

  - ### Uses of RoleModel in org.keycloak.storage.ldap.mappers.membership.group

    Methods in org.keycloak.storage.ldap.mappers.membership.group with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | GroupLDAPStorageMapper.LDAPGroupMappingsUserDelegate.`hasRole(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.storage.ldap.mappers.membership.role

    Methods in org.keycloak.storage.ldap.mappers.membership.role that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.`getClientRoleMappingsStream(ClientModel client)`
    `protected Stream<RoleModel>` | RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.`getLDAPRoleMappingsConverted()`
    `Stream<RoleModel>` | RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.`getRealmRoleMappingsStream()`
    `Stream<RoleModel>` | RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.`getRoleMappingsStream()`

    Methods in org.keycloak.storage.ldap.mappers.membership.role with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.`deleteRoleMapping(RoleModel role)`
    `List<UserModel>` | RoleLDAPStorageMapper.`getRoleMembers(RealmModel realm, RoleModel role, int firstResult, int maxResults)`
    `void` | RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.`grantRole(RoleModel role)`
    `boolean` | RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.`hasRole(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.storage.openshift

    Methods in org.keycloak.storage.openshift that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | OpenshiftSAClientAdapter.`getRealmScopeMappingsStream()`
    `Stream<RoleModel>` | OpenshiftSAClientAdapter.`getScopeMappingsStream()`

    Methods in org.keycloak.storage.openshift with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | OpenshiftSAClientAdapter.`hasScope(RoleModel role)`

  - ### Uses of RoleModel in org.keycloak.storage.role

    Methods in org.keycloak.storage.role that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | RoleLookupProvider.`getClientRole(ClientModel client, String name)` Exact search for a client role by given name.
    `RoleModel` | RoleLookupProvider.`getRealmRole(RealmModel realm, String name)` Exact search for a role by given name.
    `RoleModel` | RoleLookupProvider.`getRoleById(RealmModel realm, String id)` Exact search for a role by its internal ID..

    Methods in org.keycloak.storage.role that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<RoleModel>` | RoleLookupProvider.`searchForClientRolesStream(ClientModel client, String search, Integer first, Integer max)` Case-insensitive search for client roles that contain the given string in their name or description.
    `Stream<RoleModel>` | RoleLookupProvider.`searchForRolesStream(RealmModel realm, String search, Integer first, Integer max)` Case-insensitive search for roles that contain the given string in their name or description.

  - ### Uses of RoleModel in org.keycloak.storage.user

    Methods in org.keycloak.storage.user with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `default List<UserModel>` | UserQueryProvider.`getRoleMembers(RealmModel realm, RoleModel role)` Deprecated. Use `getRoleMembersStream` instead.
    `default List<UserModel>` | UserQueryProvider.`getRoleMembers(RealmModel realm, RoleModel role, int firstResult, int maxResults)` Deprecated. Use `getRoleMembersStream` instead.
    `default Stream<UserModel>` | UserQueryProvider.`getRoleMembersStream(RealmModel realm, RoleModel role)` Obtains users that have the specified role.
    `default Stream<UserModel>` | UserQueryProvider.`getRoleMembersStream(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults)` Searches for users that have the specified role.
    `void` | UserBulkUpdateProvider.`grantToAllUsers(RealmModel realm, RoleModel role)` Grants the given role to all users from particular realm.

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