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

- Packages that use RoleModel
  Package | Description
  --- | ---
  org.keycloak.exportimport.util |
  org.keycloak.federation.kerberos |
  org.keycloak.federation.ldap |
  org.keycloak.federation.ldap.mappers.membership.role |
  org.keycloak.forms.account.freemarker.model |
  org.keycloak.forms.login |
  org.keycloak.forms.login.freemarker |
  org.keycloak.forms.login.freemarker.model |
  org.keycloak.models |
  org.keycloak.models.cache.infinispan |
  org.keycloak.models.cache.infinispan.entities |
  org.keycloak.models.jpa |
  org.keycloak.models.mongo.keycloak.adapters |
  org.keycloak.models.mongo.utils |
  org.keycloak.models.utils |
  org.keycloak.partialimport |
  org.keycloak.protocol.oidc |
  org.keycloak.protocol.saml.mappers |
  org.keycloak.services.managers |
  org.keycloak.services.resources.admin |
  org.keycloak.storage |
  org.keycloak.storage.adapter |
  org.keycloak.storage.changeset |
  org.keycloak.storage.federated |
  org.keycloak.storage.jpa |
  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(Collection<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.ldap

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

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

    Methods in org.keycloak.federation.ldap.mappers.membership.role that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | RoleLDAPFederationMapper.LDAPRoleMappingsUserDelegate.`getClientRoleMappings(ClientModel client)`
    `protected Set<RoleModel>` | RoleLDAPFederationMapper.LDAPRoleMappingsUserDelegate.`getLDAPRoleMappingsConverted()`
    `Set<RoleModel>` | RoleLDAPFederationMapper.LDAPRoleMappingsUserDelegate.`getRealmRoleMappings()`
    `Set<RoleModel>` | RoleLDAPFederationMapper.LDAPRoleMappingsUserDelegate.`getRoleMappings()`

    Methods in org.keycloak.federation.ldap.mappers.membership.role with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoleLDAPFederationMapper.LDAPRoleMappingsUserDelegate.`deleteRoleMapping(RoleModel role)`
    `void` | RoleLDAPFederationMapper.LDAPRoleMappingsUserDelegate.`grantRole(RoleModel role)`
    `boolean` | RoleLDAPFederationMapper.LDAPRoleMappingsUserDelegate.`hasRole(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()`
    `List<RoleModel>` | ApplicationsBean.ApplicationEntry.`getRealmRolesGranted()`

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

  - ### Uses of RoleModel in org.keycloak.forms.login

    Method parameters in org.keycloak.forms.login with type arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `LoginFormsProvider` | LoginFormsProvider.`setAccessRequest(List<RoleModel> realmRolesRequested, javax.ws.rs.core.MultivaluedMap<String,RoleModel> resourceRolesRequested, List<ProtocolMapperModel> protocolMappers)`
    `LoginFormsProvider` | LoginFormsProvider.`setAccessRequest(List<RoleModel> realmRolesRequested, javax.ws.rs.core.MultivaluedMap<String,RoleModel> resourceRolesRequested, List<ProtocolMapperModel> protocolMappers)`

  - ### Uses of RoleModel in org.keycloak.forms.login.freemarker

    Method parameters in org.keycloak.forms.login.freemarker with type arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `LoginFormsProvider` | FreeMarkerLoginFormsProvider.`setAccessRequest(List<RoleModel> realmRolesRequested, javax.ws.rs.core.MultivaluedMap<String,RoleModel> resourceRolesRequested, List<ProtocolMapperModel> protocolMappersRequested)`
    `LoginFormsProvider` | FreeMarkerLoginFormsProvider.`setAccessRequest(List<RoleModel> realmRolesRequested, javax.ws.rs.core.MultivaluedMap<String,RoleModel> resourceRolesRequested, List<ProtocolMapperModel> protocolMappersRequested)`

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

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

    Constructor parameters in org.keycloak.forms.login.freemarker.model with type arguments of type RoleModel
    Constructor and Description
    `OAuthGrantBean(String code, ClientSessionModel clientSession, ClientModel client, List<RoleModel> realmRolesRequested, javax.ws.rs.core.MultivaluedMap<String,RoleModel> resourceRolesRequested, List<ProtocolMapperModel> protocolMappersRequested, String accessRequestMessage)`
    `OAuthGrantBean(String code, ClientSessionModel clientSession, ClientModel client, List<RoleModel> realmRolesRequested, javax.ws.rs.core.MultivaluedMap<String,RoleModel> resourceRolesRequested, List<ProtocolMapperModel> protocolMappersRequested, String accessRequestMessage)`

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

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

    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)`
    `Set<RoleModel>` | RealmProvider.`getClientRoles(RealmModel realm, ClientModel client)`
    `Set<RoleModel>` | RoleModel.`getComposites()`
    `Set<RoleModel>` | UserConsentModel.`getGrantedRoles()`
    `Set<RoleModel>` | RoleMapperModel.`getRealmRoleMappings()`
    `Set<RoleModel>` | RealmProvider.`getRealmRoles(RealmModel realm)`
    `Set<RoleModel>` | ScopeContainerModel.`getRealmScopeMappings()`
    `Set<RoleModel>` | RoleMapperModel.`getRoleMappings()`
    `Set<RoleModel>` | RoleContainerModel.`getRoles()`
    `Set<RoleModel>` | ScopeContainerModel.`getScopeMappings()`

    Methods in org.keycloak.models with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoleModel.`addCompositeRole(RoleModel role)`
    `void` | UserConsentModel.`addGrantedRole(RoleModel role)`
    `void` | ScopeContainerModel.`addScopeMapping(RoleModel role)`
    `void` | RoleMapperModel.`deleteRoleMapping(RoleModel role)`
    `void` | ScopeContainerModel.`deleteScopeMapping(RoleModel role)`
    `void` | RoleMapperModel.`grantRole(RoleModel role)`
    `void` | UserFederationManager.`grantToAllUsers(RealmModel realm, RoleModel role)`
    `boolean` | RoleModel.`hasRole(RoleModel role)`
    `boolean` | RoleMapperModel.`hasRole(RoleModel role)`
    `boolean` | ScopeContainerModel.`hasScope(RoleModel role)`
    `boolean` | UserConsentModel.`isRoleGranted(RoleModel role)`
    `void` | UserProvider.`preRemove(RealmModel realm, RoleModel role)`
    `void` | UserFederationProvider.`preRemove(RealmModel realm, RoleModel role)` called before a role is removed.
    `void` | UserFederationManager.`preRemove(RealmModel realm, RoleModel role)`
    `void` | RoleModel.`removeCompositeRole(RoleModel role)`
    `boolean` | RealmProvider.`removeRole(RealmModel realm, RoleModel role)`
    `boolean` | RoleContainerModel.`removeRole(RoleModel role)`

  - ### 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`

    Methods in org.keycloak.models.cache.infinispan that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | RealmCacheSession.`addClientRole(RealmModel realm, ClientModel client, String name)`
    `RoleModel` | RealmCacheSession.`addClientRole(RealmModel realm, 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(RealmModel realm, ClientModel client, String name)`
    `RoleModel` | RealmCacheSession.`getRealmRole(RealmModel realm, String name)`
    `RoleModel` | RealmAdapter.`getRole(String name)`
    `RoleModel` | ClientAdapter.`getRole(String name)`
    `RoleModel` | RealmAdapter.`getRoleById(String id)`
    `RoleModel` | RealmCacheSession.`getRoleById(String id, RealmModel realm)`

    Methods in org.keycloak.models.cache.infinispan that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | UserAdapter.`getClientRoleMappings(ClientModel app)`
    `Set<RoleModel>` | GroupAdapter.`getClientRoleMappings(ClientModel app)`
    `Set<RoleModel>` | RealmCacheSession.`getClientRoles(RealmModel realm, ClientModel client)`
    `Set<RoleModel>` | RoleAdapter.`getComposites()`
    `Set<RoleModel>` | UserAdapter.`getRealmRoleMappings()`
    `Set<RoleModel>` | GroupAdapter.`getRealmRoleMappings()`
    `Set<RoleModel>` | RealmCacheSession.`getRealmRoles(RealmModel realm)`
    `Set<RoleModel>` | ClientTemplateAdapter.`getRealmScopeMappings()`
    `Set<RoleModel>` | ClientAdapter.`getRealmScopeMappings()`
    `Set<RoleModel>` | UserAdapter.`getRoleMappings()`
    `Set<RoleModel>` | GroupAdapter.`getRoleMappings()`
    `Set<RoleModel>` | RealmAdapter.`getRoles()`
    `Set<RoleModel>` | ClientAdapter.`getRoles()`
    `Set<RoleModel>` | ClientTemplateAdapter.`getScopeMappings()`
    `Set<RoleModel>` | ClientAdapter.`getScopeMappings()`

    Methods in org.keycloak.models.cache.infinispan with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoleAdapter.`addCompositeRole(RoleModel role)`
    `void` | ClientTemplateAdapter.`addScopeMapping(RoleModel role)`
    `void` | ClientAdapter.`addScopeMapping(RoleModel role)`
    `void` | UserAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | GroupAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | ClientTemplateAdapter.`deleteScopeMapping(RoleModel role)`
    `void` | ClientAdapter.`deleteScopeMapping(RoleModel role)`
    `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` | ClientTemplateAdapter.`hasScope(RoleModel role)`
    `boolean` | ClientAdapter.`hasScope(RoleModel role)`
    `void` | UserCacheSession.`preRemove(RealmModel realm, RoleModel role)`
    `void` | RoleAdapter.`removeCompositeRole(RoleModel role)`
    `boolean` | RealmCacheSession.`removeRole(RealmModel realm, RoleModel role)`
    `boolean` | RealmAdapter.`removeRole(RoleModel role)`
    `boolean` | ClientAdapter.`removeRole(RoleModel role)`

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

    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.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(RealmModel realm, ClientModel client, String name)`
    `RoleModel` | JpaRealmProvider.`addClientRole(RealmModel realm, 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(RealmModel realm, ClientModel client, String name)`
    `RoleModel` | JpaRealmProvider.`getRealmRole(RealmModel realm, String name)`
    `RoleModel` | RealmAdapter.`getRole(String name)`
    `RoleModel` | ClientAdapter.`getRole(String name)`
    `RoleModel` | RealmAdapter.`getRoleById(String id)`
    `RoleModel` | JpaRealmProvider.`getRoleById(String id, RealmModel realm)`

    Methods in org.keycloak.models.jpa that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | UserAdapter.`getClientRoleMappings(ClientModel app)`
    `Set<RoleModel>` | GroupAdapter.`getClientRoleMappings(ClientModel app)`
    `Set<RoleModel>` | JpaRealmProvider.`getClientRoles(RealmModel realm, ClientModel client)`
    `Set<RoleModel>` | RoleAdapter.`getComposites()`
    `Set<RoleModel>` | UserAdapter.`getRealmRoleMappings()`
    `Set<RoleModel>` | GroupAdapter.`getRealmRoleMappings()`
    `Set<RoleModel>` | JpaRealmProvider.`getRealmRoles(RealmModel realm)`
    `Set<RoleModel>` | ClientTemplateAdapter.`getRealmScopeMappings()`
    `Set<RoleModel>` | ClientAdapter.`getRealmScopeMappings()`
    `Set<RoleModel>` | UserAdapter.`getRoleMappings()`
    `Set<RoleModel>` | GroupAdapter.`getRoleMappings()`
    `Set<RoleModel>` | RealmAdapter.`getRoles()`
    `Set<RoleModel>` | ClientAdapter.`getRoles()`
    `Set<RoleModel>` | ClientTemplateAdapter.`getScopeMappings()`
    `Set<RoleModel>` | ClientAdapter.`getScopeMappings()`

    Methods in org.keycloak.models.jpa with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoleAdapter.`addCompositeRole(RoleModel role)`
    `void` | ClientTemplateAdapter.`addScopeMapping(RoleModel role)`
    `void` | ClientAdapter.`addScopeMapping(RoleModel role)`
    `void` | UserAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | GroupAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | ClientTemplateAdapter.`deleteScopeMapping(RoleModel role)`
    `void` | ClientAdapter.`deleteScopeMapping(RoleModel role)`
    `protected javax.persistence.TypedQuery<GroupRoleMappingEntity>` | GroupAdapter.`getGroupRoleMappingEntityTypedQuery(RoleModel role)`
    `protected javax.persistence.TypedQuery<TemplateScopeMappingEntity>` | ClientTemplateAdapter.`getRealmScopeMappingQuery(RoleModel role)`
    `protected javax.persistence.TypedQuery<ScopeMappingEntity>` | ClientAdapter.`getRealmScopeMappingQuery(RoleModel role)`
    `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` | ClientTemplateAdapter.`hasScope(RoleModel role)`
    `boolean` | ClientAdapter.`hasScope(RoleModel role)`
    `void` | JpaUserProvider.`preRemove(RealmModel realm, RoleModel role)`
    `void` | RoleAdapter.`removeCompositeRole(RoleModel role)`
    `boolean` | JpaRealmProvider.`removeRole(RealmModel realm, RoleModel role)`
    `boolean` | RealmAdapter.`removeRole(RoleModel role)`
    `boolean` | ClientAdapter.`removeRole(RoleModel roleModel)`
    `static RoleEntity` | RoleAdapter.`toRoleEntity(RoleModel model, javax.persistence.EntityManager em)`

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

    Methods in org.keycloak.models.mongo.keycloak.adapters that return RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `RoleModel` | MongoRealmProvider.`addClientRole(RealmModel realm, ClientModel client, String name)`
    `RoleModel` | MongoRealmProvider.`addClientRole(RealmModel realm, ClientModel client, String id, String name)`
    `RoleModel` | MongoRealmProvider.`addRealmRole(RealmModel realm, String name)`
    `RoleModel` | MongoRealmProvider.`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` | MongoRealmProvider.`getClientRole(RealmModel realm, ClientModel client, String name)`
    `RoleModel` | MongoRealmProvider.`getRealmRole(RealmModel realm, String name)`
    `RoleModel` | RealmAdapter.`getRole(String name)`
    `RoleModel` | ClientAdapter.`getRole(String name)`
    `RoleModel` | RealmAdapter.`getRoleById(String id)`
    `RoleModel` | MongoRealmProvider.`getRoleById(String id, RealmModel realm)`

    Methods in org.keycloak.models.mongo.keycloak.adapters that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | UserAdapter.`getClientRoleMappings(ClientModel app)`
    `Set<RoleModel>` | GroupAdapter.`getClientRoleMappings(ClientModel app)`
    `Set<RoleModel>` | MongoRealmProvider.`getClientRoles(RealmModel realm, ClientModel client)`
    `Set<RoleModel>` | RoleAdapter.`getComposites()`
    `Set<RoleModel>` | UserAdapter.`getRealmRoleMappings()`
    `Set<RoleModel>` | GroupAdapter.`getRealmRoleMappings()`
    `Set<RoleModel>` | MongoRealmProvider.`getRealmRoles(RealmModel realm)`
    `Set<RoleModel>` | ClientTemplateAdapter.`getRealmScopeMappings()`
    `Set<RoleModel>` | ClientAdapter.`getRealmScopeMappings()`
    `Set<RoleModel>` | UserAdapter.`getRoleMappings()`
    `Set<RoleModel>` | GroupAdapter.`getRoleMappings()`
    `Set<RoleModel>` | RealmAdapter.`getRoles()`
    `Set<RoleModel>` | ClientAdapter.`getRoles()`
    `Set<RoleModel>` | ClientTemplateAdapter.`getScopeMappings()`
    `Set<RoleModel>` | ClientAdapter.`getScopeMappings()`

    Methods in org.keycloak.models.mongo.keycloak.adapters with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoleAdapter.`addCompositeRole(RoleModel childRole)`
    `void` | ClientTemplateAdapter.`addScopeMapping(RoleModel role)`
    `void` | ClientAdapter.`addScopeMapping(RoleModel role)`
    `void` | UserAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | GroupAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | ClientTemplateAdapter.`deleteScopeMapping(RoleModel role)`
    `void` | ClientAdapter.`deleteScopeMapping(RoleModel role)`
    `void` | UserAdapter.`grantRole(RoleModel role)`
    `void` | GroupAdapter.`grantRole(RoleModel role)`
    `void` | MongoUserProvider.`grantToAllUsers(RealmModel realm, RoleModel role)`
    `boolean` | UserAdapter.`hasRole(RoleModel role)`
    `boolean` | RoleAdapter.`hasRole(RoleModel role)`
    `boolean` | GroupAdapter.`hasRole(RoleModel role)`
    `boolean` | ClientTemplateAdapter.`hasScope(RoleModel role)`
    `boolean` | ClientAdapter.`hasScope(RoleModel role)`
    `void` | MongoUserProvider.`preRemove(RealmModel realm, RoleModel role)`
    `void` | RoleAdapter.`removeCompositeRole(RoleModel childRole)`
    `boolean` | MongoRealmProvider.`removeRole(RealmModel realm, RoleModel role)`
    `boolean` | RealmAdapter.`removeRole(RoleModel role)`
    `boolean` | ClientAdapter.`removeRole(RoleModel role)`

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

    Methods in org.keycloak.models.mongo.utils that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `static List<RoleModel>` | MongoModelUtils.`getAllRolesOfUser(RealmModel realm, UserModel user)`

  - ### 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` | KeycloakModelUtils.`getRoleFromString(RealmModel realm, String roleName)`

    Methods in org.keycloak.models.utils that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | UserModelDelegate.`getClientRoleMappings(ClientModel app)`
    `static Set<RoleModel>` | KeycloakModelUtils.`getClientScopeMappings(ClientModel client, ScopeContainerModel container)`
    `static Set<RoleModel>` | DefaultRoles.`getDefaultRoles(RealmModel realm)`
    `Set<RoleModel>` | UserModelDelegate.`getRealmRoleMappings()`
    `Set<RoleModel>` | UserModelDelegate.`getRoleMappings()`

    Methods in org.keycloak.models.utils with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | UserModelDelegate.`deleteRoleMapping(RoleModel role)`
    `void` | UserModelDelegate.`grantRole(RoleModel role)`
    `boolean` | UserModelDelegate.`hasRole(RoleModel role)`
    `static boolean` | KeycloakModelUtils.`hasRole(Set<RoleModel> roles, RoleModel targetRole)`
    `static boolean` | KeycloakModelUtils.`searchFor(RoleModel role, RoleModel composite, Set<RoleModel> visited)` Deep search if given role is descendant of composite 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 boolean` | KeycloakModelUtils.`hasRole(Set<RoleModel> roles, RoleModel targetRole)`
    `static boolean` | KeycloakModelUtils.`searchFor(RoleModel role, RoleModel composite, Set<RoleModel> visited)` Deep search if given role is descendant of composite role

  - ### 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(String scopeParam, boolean applyScopeParam, ClientModel client, UserModel user)`

    Methods in org.keycloak.protocol.oidc with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | TokenManager.`addComposites(AccessToken token, RoleModel role)`
    `static void` | TokenManager.`applyScope(RoleModel role, RoleModel scope, Set<RoleModel> visited, Set<RoleModel> requested)`

    Method parameters in org.keycloak.protocol.oidc with type arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `static void` | TokenManager.`addGroupRoles(GroupModel group, Set<RoleModel> roleMappings)`
    `static void` | TokenManager.`applyScope(RoleModel role, RoleModel scope, Set<RoleModel> visited, Set<RoleModel> requested)`
    `static void` | TokenManager.`applyScope(RoleModel role, RoleModel scope, Set<RoleModel> visited, Set<RoleModel> requested)`
    `AccessToken` | TokenManager.`createClientAccessToken(KeycloakSession session, Set<RoleModel> requestedRoles, RealmModel realm, ClientModel client, UserModel user, UserSessionModel userSession, ClientSessionModel clientSession)`

  - ### 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.managers

    Methods in org.keycloak.services.managers that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | ClientSessionCode.`getRequestedRoles()`

  - ### 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(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 Set<RoleRepresentation>` | RoleResource.`getClientRoleComposites(ClientModel app, RoleModel role)`
    `protected Set<RoleRepresentation>` | RoleResource.`getRealmRoleComposites(RoleModel role)`
    `protected RoleRepresentation` | RoleResource.`getRole(RoleModel roleModel)`
    `protected Set<RoleRepresentation>` | RoleResource.`getRoleComposites(RoleModel role)`
    `protected void` | RoleResource.`updateRole(RoleRepresentation rep, RoleModel role)`

    Method parameters in org.keycloak.services.resources.admin with type arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `static List<RoleRepresentation>` | ScopeMappedResource.`getAvailable(ScopeContainerModel client, Set<RoleModel> roles)`
    `static List<RoleRepresentation>` | ClientRoleMappingsResource.`getAvailableRoles(RoleMapperModel mapper, Set<RoleModel> available)`
    `static List<RoleRepresentation>` | ScopeMappedResource.`getComposite(ScopeContainerModel client, Set<RoleModel> roles)`

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

    Methods in org.keycloak.storage with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | UserStorageManager.`grantToAllUsers(RealmModel realm, RoleModel role)`
    `void` | UserStorageProvider.`preRemove(RealmModel realm, RoleModel role)`
    `void` | UserStorageManager.`preRemove(RealmModel realm, 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)`
    `Set<RoleModel>` | AbstractUserAdapter.`getClientRoleMappings(ClientModel app)`
    `protected Set<RoleModel>` | AbstractUserAdapterFederatedStorage.`getFederatedRoleMappings()`
    `Set<RoleModel>` | AbstractUserAdapterFederatedStorage.`getRealmRoleMappings()`
    `Set<RoleModel>` | AbstractUserAdapter.`getRealmRoleMappings()`
    `Set<RoleModel>` | AbstractUserAdapterFederatedStorage.`getRoleMappings()`
    `Set<RoleModel>` | AbstractUserAdapter.`getRoleMappings()`
    `protected Set<RoleModel>` | AbstractUserAdapterFederatedStorage.`getRoleMappingsInternal()`
    `protected Set<RoleModel>` | AbstractUserAdapter.`getRoleMappingsInternal()`

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

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

    Methods in org.keycloak.storage.changeset that return types with arguments of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `Set<RoleModel>` | UserDataAdapter.`getClientRoleMappings(ClientModel app)`
    `Set<RoleModel>` | UserDataAdapter.`getRealmRoleMappings()`
    `Set<RoleModel>` | UserDataAdapter.`getRoleMappings()`

    Methods in org.keycloak.storage.changeset with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | UserDataAdapter.`deleteRoleMapping(RoleModel role)`
    `void` | UserDataAdapter.`grantRole(RoleModel role)`
    `boolean` | UserDataAdapter.`hasRole(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, UserModel user)`

    Methods in org.keycloak.storage.federated with parameters of type RoleModel
    Modifier and Type | Method and Description
    --- | ---
    `void` | UserRoleMappingsFederatedStorage.`deleteRoleMapping(RealmModel realm, UserModel user, RoleModel role)`
    `void` | UserRoleMappingsFederatedStorage.`grantRole(RealmModel realm, UserModel user, 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
    --- | ---
    `Set<RoleModel>` | JpaUserFederatedStorageProvider.`getRoleMappings(RealmModel realm, UserModel user)`

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

  - ### 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
    --- | ---
    `void` | UserRegistrationProvider.`grantToAllUsers(RealmModel realm, RoleModel role)`

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