Uses of Interface
org.keycloak.models.RoleModel
Package
Description
-
Uses of RoleModel in org.keycloak.exportimport.util
Modifier and TypeMethodDescriptionstatic RoleRepresentation
ExportUtils.exportRole
(RoleModel role) Full export of role including composite rolesModifier and TypeMethodDescriptionstatic List<RoleRepresentation>
ExportUtils.exportRoles
(Stream<RoleModel> roles) -
Uses of RoleModel in org.keycloak.federation.kerberos
Modifier and TypeMethodDescriptionvoid
KerberosFederationProvider.preRemove
(RealmModel realm, RoleModel role) -
Uses of RoleModel in org.keycloak.federation.sssd
Modifier and TypeMethodDescriptionvoid
SSSDFederationProvider.preRemove
(RealmModel realm, RoleModel role) -
Uses of RoleModel in org.keycloak.models
Modifier and TypeMethodDescriptiondefault RoleModel
RoleProvider.addClientRole
(ClientModel client, String name) Adds a client role with givenname
to the given client.RoleProvider.addClientRole
(ClientModel client, String id, String name) Adds a client role with given internal ID andname
to the given client.default RoleModel
RoleProvider.addRealmRole
(RealmModel realm, String name) Adds a realm role with givenname
to the given realm.RoleProvider.addRealmRole
(RealmModel realm, String id, String name) Adds a realm role with given internal ID andname
to the given realm.RealmModel.getDefaultRole()
Returns default realm role.RoleContainerModel.RoleRemovedEvent.getRole()
RealmModel.getRoleById
(String id) Modifier and TypeMethodDescriptionRoleMapperModel.getClientRoleMappingsStream
(ClientModel app) Returns stream of client roles that are directly set to this object for the given client.RoleProvider.getClientRolesStream
(ClientModel client) Returns all the client roles of the given client.RoleProvider.getClientRolesStream
(ClientModel client, Integer first, Integer max) Returns the client roles of the given client.RoleModel.getCompositesStream()
Returns all composite roles as a stream.RoleModel.getCompositesStream
(String search, Integer first, Integer max) Returns a paginated stream of composite roles ofthis
role that contain given string in its name.RoleMapperModel.getRealmRoleMappingsStream()
Returns stream of realm roles that are directly set to this object.RoleProvider.getRealmRolesStream
(RealmModel realm) Returns all the realm roles of the given realm as a stream.RoleProvider.getRealmRolesStream
(RealmModel realm, Integer first, Integer max) Returns the realm roles of the given realm as a stream.ClientScopeDecorator.getRealmScopeMappingsStream()
ScopeContainerModel.getRealmScopeMappingsStream()
From the scope mappings returned byScopeContainerModel.getScopeMappingsStream()
returns only those that belong to the realm that owns this scope container.RoleMapperModel.getRoleMappingsStream()
Returns stream of all role (both realm all client) that are directly set to this object.ClientSessionContext.getRolesStream()
Returns all roles including composite ones as a stream.RoleContainerModel.getRolesStream()
Returns available roles as a stream.RoleContainerModel.getRolesStream
(Integer firstResult, Integer maxResults) Returns available roles as a stream.RoleProvider.getRolesStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) Returns a paginated stream of roles with given ids and given search value in role names.ClientScopeDecorator.getScopeMappingsStream()
ScopeContainerModel.getScopeMappingsStream()
Returns scope mappings for this scope container as a stream.RoleContainerModel.searchForRolesStream
(String search, Integer first, Integer max) Searches roles by the given name.Modifier and TypeMethodDescriptionvoid
RoleModel.addCompositeRole
(RoleModel role) void
ClientScopeDecorator.addScopeMapping
(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
ClientScopeDecorator.deleteScopeMapping
(RoleModel role) void
ScopeContainerModel.deleteScopeMapping
(RoleModel role) GroupProvider.getGroupsByRoleStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) Returns groups with the given role in the given realm.void
Grants the given role to this object.default boolean
RoleMapperModel.hasDirectRole
(RoleModel role) Returnstrue
, if this object is directly assigned the given role.default boolean
ClientModel.hasDirectScope
(RoleModel role) boolean
ClientScopeDecorator.hasDirectScope
(RoleModel role) default boolean
ScopeContainerModel.hasDirectScope
(RoleModel role) Returnstrue
, if this object has the given role directly in its scope.boolean
Returnstrue
if this object is directly or indirectly assigned the given role,false
otherwise.boolean
boolean
boolean
Returnstrue
, if this object has the given role directly or indirectly in its scope,false
otherwise.void
UserProvider.preRemove
(RealmModel realm, RoleModel role) Called when a role is removed.void
RoleModel.removeCompositeRole
(RoleModel role) boolean
RoleContainerModel.removeRole
(RoleModel role) boolean
RoleProvider.removeRole
(RoleModel role) Removes given realm role from the given realm.void
RealmModel.setDefaultRole
(RoleModel role) Sets default role for this realm -
Uses of RoleModel in org.keycloak.models.cache.infinispan
Modifier and TypeMethodDescriptionRealmCacheSession.addClientRole
(ClientModel client, String name) RealmCacheSession.addClientRole
(ClientModel client, String id, String name) RealmCacheSession.addRealmRole
(RealmModel realm, String name) RealmCacheSession.addRealmRole
(RealmModel realm, String id, String name) RealmCacheSession.getClientRole
(ClientModel client, String name) RealmAdapter.getDefaultRole()
RealmCacheSession.getRealmRole
(RealmModel realm, String name) RealmAdapter.getRoleById
(String id) RealmCacheSession.getRoleById
(RealmModel realm, String id) Modifier and TypeMethodDescriptionGroupAdapter.getClientRoleMappingsStream
(ClientModel app) UserAdapter.getClientRoleMappingsStream
(ClientModel app) RealmCacheSession.getClientRolesStream
(ClientModel client) RealmCacheSession.getClientRolesStream
(ClientModel client, Integer first, Integer max) RoleAdapter.getCompositesStream()
RoleAdapter.getCompositesStream
(String search, Integer first, Integer max) GroupAdapter.getRealmRoleMappingsStream()
UserAdapter.getRealmRoleMappingsStream()
RealmCacheSession.getRealmRolesStream
(RealmModel realm) RealmCacheSession.getRealmRolesStream
(RealmModel realm, Integer first, Integer max) ClientAdapter.getRealmScopeMappingsStream()
ClientScopeAdapter.getRealmScopeMappingsStream()
GroupAdapter.getRoleMappingsStream()
UserAdapter.getRoleMappingsStream()
ClientAdapter.getRolesStream()
ClientAdapter.getRolesStream
(Integer first, Integer max) RealmAdapter.getRolesStream()
RealmAdapter.getRolesStream
(Integer first, Integer max) RealmCacheSession.getRolesStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) ClientAdapter.getScopeMappingsStream()
ClientScopeAdapter.getScopeMappingsStream()
RealmCacheSession.searchForClientRolesStream
(ClientModel client, String search, Integer first, Integer max) RealmCacheSession.searchForClientRolesStream
(RealmModel realm, String search, Stream<String> excludedIds, Integer first, Integer max) RealmCacheSession.searchForClientRolesStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) ClientAdapter.searchForRolesStream
(String search, Integer first, Integer max) RealmAdapter.searchForRolesStream
(String search, Integer first, Integer max) RealmCacheSession.searchForRolesStream
(RealmModel realm, String search, Integer first, Integer max) Modifier and TypeMethodDescriptionvoid
RoleAdapter.addCompositeRole
(RoleModel role) void
ClientAdapter.addScopeMapping
(RoleModel role) void
ClientScopeAdapter.addScopeMapping
(RoleModel role) void
RealmAdapter.addToDefaultRoles
(RoleModel role) void
GroupAdapter.deleteRoleMapping
(RoleModel role) void
UserAdapter.deleteRoleMapping
(RoleModel role) void
ClientAdapter.deleteScopeMapping
(RoleModel role) void
ClientScopeAdapter.deleteScopeMapping
(RoleModel role) RealmCacheSession.getGroupsByRoleStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) UserCacheSession.getRoleMembersStream
(RealmModel realm, RoleModel role) UserCacheSession.getRoleMembersStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) void
void
void
UserCacheSession.grantToAllUsers
(RealmModel realm, RoleModel role) boolean
GroupAdapter.hasDirectRole
(RoleModel role) boolean
UserAdapter.hasDirectRole
(RoleModel role) boolean
ClientAdapter.hasDirectScope
(RoleModel role) boolean
ClientScopeAdapter.hasDirectScope
(RoleModel role) boolean
boolean
boolean
boolean
boolean
void
UserCacheSession.preRemove
(RealmModel realm, RoleModel role) void
RoleAdapter.removeCompositeRole
(RoleModel role) boolean
ClientAdapter.removeRole
(RoleModel role) boolean
RealmAdapter.removeRole
(RoleModel role) boolean
RealmCacheSession.removeRole
(RoleModel role) void
RealmAdapter.setDefaultRole
(RoleModel role) -
Uses of RoleModel in org.keycloak.models.cache.infinispan.entities
ModifierConstructorDescriptionCachedClientRole
(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
Modifier and TypeMethodDescriptionModifier and TypeMethodDescriptionClientModelLazyDelegate.getRealmScopeMappingsStream()
ClientModelLazyDelegate.getRolesStream()
ClientModelLazyDelegate.getRolesStream
(Integer firstResult, Integer maxResults) ClientModelLazyDelegate.getScopeMappingsStream()
ClientModelLazyDelegate.searchForRolesStream
(String search, Integer first, Integer max) Modifier and TypeMethodDescriptionvoid
ClientModelLazyDelegate.addScopeMapping
(RoleModel role) void
ClientModelLazyDelegate.deleteScopeMapping
(RoleModel role) boolean
ClientModelLazyDelegate.hasDirectScope
(RoleModel role) boolean
boolean
ClientModelLazyDelegate.removeRole
(RoleModel role) -
Uses of RoleModel in org.keycloak.models.jpa
Modifier and TypeMethodDescriptionJpaRealmProvider.addClientRole
(ClientModel client, String name) JpaRealmProvider.addClientRole
(ClientModel client, String id, String name) JpaRealmProvider.addRealmRole
(RealmModel realm, String name) JpaRealmProvider.addRealmRole
(RealmModel realm, String id, String name) JpaRealmProvider.getClientRole
(ClientModel client, String name) RealmAdapter.getDefaultRole()
JpaRealmProvider.getRealmRole
(RealmModel realm, String name) JpaRealmProvider.getRoleById
(RealmModel realm, String id) RealmAdapter.getRoleById
(String id) Modifier and TypeMethodDescriptionGroupAdapter.getClientRoleMappingsStream
(ClientModel app) UserAdapter.getClientRoleMappingsStream
(ClientModel app) JpaRealmProvider.getClientRolesStream
(ClientModel client, Integer first, Integer max) RoleAdapter.getCompositesStream()
RoleAdapter.getCompositesStream
(String search, Integer first, Integer max) GroupAdapter.getRealmRoleMappingsStream()
UserAdapter.getRealmRoleMappingsStream()
JpaRealmProvider.getRealmRolesStream
(RealmModel realm) JpaRealmProvider.getRealmRolesStream
(RealmModel realm, Integer first, Integer max) ClientAdapter.getRealmScopeMappingsStream()
ClientScopeAdapter.getRealmScopeMappingsStream()
GroupAdapter.getRoleMappingsStream()
UserAdapter.getRoleMappingsStream()
ClientAdapter.getRolesStream()
ClientAdapter.getRolesStream
(Integer first, Integer max) JpaRealmProvider.getRolesStream
(jakarta.persistence.TypedQuery<RoleEntity> query, RealmModel realm, Integer first, Integer max) JpaRealmProvider.getRolesStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) RealmAdapter.getRolesStream()
RealmAdapter.getRolesStream
(Integer first, Integer max) ClientAdapter.getScopeMappingsStream()
ClientScopeAdapter.getScopeMappingsStream()
JpaRealmProvider.searchForClientRolesStream
(ClientModel client, String search, Integer first, Integer max) JpaRealmProvider.searchForClientRolesStream
(RealmModel realm, String search, Stream<String> excludedIds, Integer first, Integer max) JpaRealmProvider.searchForClientRolesStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) JpaRealmProvider.searchForRoles
(jakarta.persistence.TypedQuery<RoleEntity> query, RealmModel realm, String search, Integer first, Integer max) ClientAdapter.searchForRolesStream
(String search, Integer first, Integer max) JpaRealmProvider.searchForRolesStream
(RealmModel realm, String search, Integer first, Integer max) RealmAdapter.searchForRolesStream
(String search, Integer first, Integer max) Modifier and TypeMethodDescriptionvoid
RoleAdapter.addCompositeRole
(RoleModel role) void
ClientAdapter.addScopeMapping
(RoleModel role) void
ClientScopeAdapter.addScopeMapping
(RoleModel role) void
GroupAdapter.deleteRoleMapping
(RoleModel role) void
UserAdapter.deleteRoleMapping
(RoleModel role) void
ClientAdapter.deleteScopeMapping
(RoleModel role) void
ClientScopeAdapter.deleteScopeMapping
(RoleModel role) protected jakarta.persistence.TypedQuery<GroupRoleMappingEntity>
GroupAdapter.getGroupRoleMappingEntityTypedQuery
(RoleModel role) JpaRealmProvider.getGroupsByRoleStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) JpaUserProvider.getRoleMembersStream
(RealmModel realm, RoleModel role) JpaUserProvider.getRoleMembersStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) protected jakarta.persistence.TypedQuery<UserRoleMappingEntity>
UserAdapter.getUserRoleMappingEntityTypedQuery
(RoleModel role) void
void
void
UserAdapter.grantRoleImpl
(RoleModel role) void
JpaUserProvider.grantToAllUsers
(RealmModel realm, RoleModel role) boolean
boolean
boolean
boolean
boolean
void
JpaRealmProvider.preRemove
(RealmModel realm, RoleModel role) void
JpaUserProvider.preRemove
(RealmModel realm, RoleModel role) void
RoleAdapter.removeCompositeRole
(RoleModel role) boolean
ClientAdapter.removeRole
(RoleModel roleModel) boolean
JpaRealmProvider.removeRole
(RoleModel role) boolean
RealmAdapter.removeRole
(RoleModel role) JpaRealmProvider.roleRemovedEvent
(RoleModel role) void
RealmAdapter.setDefaultRole
(RoleModel role) -
Uses of RoleModel in org.keycloak.models.light
Modifier and TypeMethodDescriptionvoid
LightweightUserAdapter.deleteRoleMapping
(RoleModel role) void
-
Uses of RoleModel in org.keycloak.models.utils
Modifier and TypeMethodDescriptionstatic RoleModel
RepresentationToModel.createRole
(RealmModel newRealm, RoleRepresentation roleRep) RealmModelDelegate.getDefaultRole()
RealmModelDelegate.getRoleById
(String id) static RoleModel
KeycloakModelUtils.getRoleFromString
(RealmModel realm, String roleName) static RoleModel
KeycloakModelUtils.setupOfflineRole
(RealmModel realm) Modifier and TypeMethodDescriptionRoleUtils.expandCompositeRoles
(Set<RoleModel> roles) RoleUtils.expandCompositeRolesStream
(Stream<RoleModel> roles) UserModelDelegate.getClientRoleMappingsStream
(ClientModel app) KeycloakModelUtils.getClientScopeMappingsStream
(ClientModel client, ScopeContainerModel container) RoleUtils.getDeepUserRoleMappings
(UserModel user) UserModelDelegate.getRealmRoleMappingsStream()
UserModelDelegate.getRoleMappingsStream()
RealmModelDelegate.getRolesStream()
RealmModelDelegate.getRolesStream
(Integer firstResult, Integer maxResults) RealmModelDelegate.searchForRolesStream
(String search, Integer first, Integer max) Modifier and TypeMethodDescriptionvoid
RealmModelDelegate.addToDefaultRoles
(RoleModel role) static void
DefaultClientScopes.createOfflineAccessClientScope
(RealmModel newRealm, RoleModel offlineRole) void
ReadOnlyUserModelDelegate.deleteRoleMapping
(RoleModel role) void
UserModelDelegate.deleteRoleMapping
(RoleModel role) void
void
static boolean
static boolean
boolean
static boolean
RoleUtils.hasRoleFromGroup
(Stream<GroupModel> groups, RoleModel targetRole, boolean checkParentGroup) Checks whether thetargetRole
is contained in any of thegroups
or their parents (if requested)static boolean
RoleUtils.hasRoleFromGroup
(GroupModel group, RoleModel targetRole, boolean checkParentGroup) Checks whether thetargetRole
is contained in the given group or its 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) boolean
RealmModelDelegate.removeRole
(RoleModel role) static boolean
Deep search if given role is descendant of composite rolevoid
RealmModelDelegate.setDefaultRole
(RoleModel role) static RoleRepresentation
ModelToRepresentation.toBriefRepresentation
(RoleModel role) static RoleRepresentation
ModelToRepresentation.toRepresentation
(RoleModel role) Modifier and TypeMethodDescriptionRoleUtils.expandCompositeRoles
(Set<RoleModel> roles) RoleUtils.expandCompositeRolesStream
(Stream<RoleModel> roles) static boolean
static boolean
-
Uses of RoleModel in org.keycloak.partialimport
Modifier and TypeMethodDescriptionprotected void
RealmRolesPartialImport.RoleHelper.deleteRole
(RoleModel role) -
Uses of RoleModel in org.keycloak.protocol.oidc
Modifier and TypeMethodDescriptionTokenManager.getAccess
(UserModel user, ClientModel client, Stream<ClientScopeModel> clientScopes) -
Uses of RoleModel in org.keycloak.protocol.saml.mappers
Modifier and TypeMethodDescriptionRoleNameMapper.mapName
(ProtocolMapperModel model, RoleModel roleModel) SAMLRoleNameMapper.mapName
(ProtocolMapperModel model, RoleModel role) -
Uses of RoleModel in org.keycloak.services.resources.admin
Modifier and TypeMethodDescriptionprotected void
RoleResource.addComposites
(AdminPermissionEvaluator auth, AdminEventBuilder adminEvent, jakarta.ws.rs.core.UriInfo uriInfo, List<RoleRepresentation> roles, RoleModel role) protected void
RoleResource.deleteComposites
(AdminEventBuilder adminEvent, jakarta.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
RoleByIdResource.toMgmtRef
(RoleModel role, AdminPermissionManagement permissions) protected void
RoleResource.updateRole
(RoleRepresentation rep, RoleModel role, RealmModel realm, KeycloakSession session) -
Uses of RoleModel in org.keycloak.services.resources.admin.permissions
Modifier and TypeMethodDescriptionboolean
boolean
RolePermissionEvaluator.canMapClientScope
(RoleModel role) boolean
RolePermissionEvaluator.canMapComposite
(RoleModel role) boolean
RolePermissionEvaluator.canMapRole
(RoleModel role) boolean
RolePermissionManagement.getPermissions
(RoleModel role) boolean
RolePermissionManagement.isPermissionsEnabled
(RoleModel role) RolePermissionManagement.mapClientScopePermission
(RoleModel role) RolePermissionManagement.mapCompositePermission
(RoleModel role) 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) RolePermissionManagement.resourceServer
(RoleModel role) RolePermissionManagement.rolePolicy
(ResourceServer server, RoleModel role) void
RolePermissionManagement.setPermissionsEnabled
(RoleModel role, boolean enable) -
Uses of RoleModel in org.keycloak.services.util
-
Uses of RoleModel in org.keycloak.storage
Modifier and TypeMethodDescriptionRoleStorageManager.addClientRole
(ClientModel client, String name) RoleStorageManager.addClientRole
(ClientModel client, String id, String name) RoleStorageManager.addRealmRole
(RealmModel realm, String name) RoleStorageManager.addRealmRole
(RealmModel realm, String id, String name) RoleStorageManager.getClientRole
(ClientModel client, String name) RoleStorageManager.getRealmRole
(RealmModel realm, String name) RoleStorageManager.getRoleById
(RealmModel realm, String id) Modifier and TypeMethodDescriptionRoleStorageManager.getClientRolesStream
(ClientModel client) RoleStorageManager.getClientRolesStream
(ClientModel client, Integer first, Integer max) RoleStorageManager.getRealmRolesStream
(RealmModel realm, Integer first, Integer max) RoleStorageManager.getRolesStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) RoleStorageManager.searchForClientRolesStream
(ClientModel client, String search, Integer first, Integer max) Obtaining roles from an external role storage is time-bounded.RoleStorageManager.searchForClientRolesStream
(RealmModel realm, String search, Stream<String> excludedIds, Integer first, Integer max) RoleStorageManager.searchForClientRolesStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) RoleStorageManager.searchForRolesStream
(RealmModel realm, String search, Integer first, Integer max) Obtaining roles from an external role storage is time-bounded.Modifier and TypeMethodDescriptionGroupStorageManager.getGroupsByRoleStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) UserStorageManager.getRoleMembersStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer maxResults) void
UserStorageManager.grantToAllUsers
(RealmModel realm, RoleModel role) UserQueryProvider
methods implementation end hereUserBulkUpdateProvider
methods implementation start herevoid
UserStorageManager.preRemove
(RealmModel realm, RoleModel role) default void
UserStorageProvider.preRemove
(RealmModel realm, RoleModel role) Callback when a role is removed.boolean
RoleStorageManager.removeRole
(RoleModel role) -
Uses of RoleModel in org.keycloak.storage.adapter
Modifier and TypeMethodDescriptionAbstractUserAdapter.getClientRoleMappings
(ClientModel app) Deprecated.AbstractUserAdapter.Streams.getClientRoleMappings
(ClientModel app) AbstractInMemoryUserAdapter.getClientRoleMappingsStream
(ClientModel app) AbstractUserAdapter.getClientRoleMappingsStream
(ClientModel app) AbstractUserAdapter.Streams.getClientRoleMappingsStream
(ClientModel app) AbstractUserAdapterFederatedStorage.getClientRoleMappingsStream
(ClientModel app) Gets role mappings from federated storage and automatically appends default roles.AbstractUserAdapterFederatedStorage.getFederatedRoleMappings()
Deprecated.AbstractUserAdapterFederatedStorage.getFederatedRoleMappingsStream()
AbstractUserAdapter.getRealmRoleMappings()
Deprecated.UseAbstractUserAdapter.getRealmRoleMappingsStream()
insteadAbstractUserAdapter.Streams.getRealmRoleMappings()
AbstractInMemoryUserAdapter.getRealmRoleMappingsStream()
AbstractUserAdapter.getRealmRoleMappingsStream()
AbstractUserAdapter.Streams.getRealmRoleMappingsStream()
AbstractUserAdapterFederatedStorage.getRealmRoleMappingsStream()
Gets role mappings from federated storage and automatically appends default roles.AbstractUserAdapter.getRoleMappings()
Deprecated.UseAbstractUserAdapter.getRoleMappingsStream()
insteadAbstractUserAdapter.Streams.getRoleMappings()
AbstractUserAdapter.getRoleMappingsInternal()
AbstractUserAdapterFederatedStorage.getRoleMappingsInternal()
AbstractInMemoryUserAdapter.getRoleMappingsStream()
AbstractUserAdapter.getRoleMappingsStream()
AbstractUserAdapter.Streams.getRoleMappingsStream()
AbstractUserAdapterFederatedStorage.getRoleMappingsStream()
Gets role mappings from federated storage and automatically appends default roles.Modifier and TypeMethodDescriptionvoid
AbstractInMemoryUserAdapter.deleteRoleMapping
(RoleModel role) void
AbstractUserAdapter.deleteRoleMapping
(RoleModel role) void
AbstractUserAdapterFederatedStorage.deleteRoleMapping
(RoleModel role) void
UpdateOnlyChangeUserModelDelegate.deleteRoleMapping
(RoleModel role) void
void
void
void
boolean
boolean
boolean
boolean
-
Uses of RoleModel in org.keycloak.storage.client
Modifier and TypeMethodDescriptionUnsupportedOperationsClientStorageAdapter.getRolesStream()
UnsupportedOperationsClientStorageAdapter.getRolesStream
(Integer first, Integer max) UnsupportedOperationsClientStorageAdapter.searchForRolesStream
(String search, Integer first, Integer max) Modifier and TypeMethodDescriptionvoid
AbstractReadOnlyClientScopeAdapter.addScopeMapping
(RoleModel role) void
AbstractReadOnlyClientStorageAdapter.addScopeMapping
(RoleModel role) void
AbstractReadOnlyClientScopeAdapter.deleteScopeMapping
(RoleModel role) void
AbstractReadOnlyClientStorageAdapter.deleteScopeMapping
(RoleModel role) default void
ClientStorageProvider.preRemove
(RealmModel realm, RoleModel role) Callback when a role is removed.final boolean
UnsupportedOperationsClientStorageAdapter.removeRole
(RoleModel role) -
Uses of RoleModel in org.keycloak.storage.federated
Modifier and TypeMethodDescriptionUserRoleMappingsFederatedStorage.getRoleMappingsStream
(RealmModel realm, String userId) Obtains the roles associated with the federated user identified byuserId
.Modifier and TypeMethodDescriptionvoid
UserRoleMappingsFederatedStorage.deleteRoleMapping
(RealmModel realm, String userId, RoleModel role) UserRoleMappingsFederatedStorage.getRoleMembersStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer max) Obtains the federated users that are members of the givenrole
in the specifiedrealm
.void
UserRoleMappingsFederatedStorage.grantRole
(RealmModel realm, String userId, RoleModel role) void
UserFederatedStorageProvider.preRemove
(RealmModel realm, RoleModel role) -
Uses of RoleModel in org.keycloak.storage.jpa
Modifier and TypeMethodDescriptionJpaUserFederatedStorageProvider.getRoleMappingsStream
(RealmModel realm, String userId) Modifier and TypeMethodDescriptionvoid
JpaUserFederatedStorageProvider.deleteRoleMapping
(RealmModel realm, String userId, RoleModel role) JpaUserFederatedStorageProvider.getRoleMembersStream
(RealmModel realm, RoleModel role, Integer firstResult, Integer max) void
JpaUserFederatedStorageProvider.grantRole
(RealmModel realm, String userId, RoleModel role) void
JpaUserFederatedStorageProvider.preRemove
(RealmModel realm, RoleModel role) -
Uses of RoleModel in org.keycloak.storage.ldap
Modifier and TypeMethodDescriptionLDAPStorageProvider.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
Modifier and TypeMethodDescriptionAbstractLDAPStorageMapper.getRoleMembers
(RealmModel realm, RoleModel role, int firstResult, int maxResults) LDAPStorageMapper.getRoleMembers
(RealmModel realm, RoleModel role, int firstResult, int maxResults) Return empty list if doesn't support storing of roles -
Uses of RoleModel in org.keycloak.storage.ldap.mappers.membership.group
-
Uses of RoleModel in org.keycloak.storage.ldap.mappers.membership.role
Modifier and TypeMethodDescriptionRoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.getClientRoleMappingsStream
(ClientModel client) RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.getLDAPRoleMappingsConverted()
RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.getRealmRoleMappingsStream()
RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.getRoleMappingsStream()
Modifier and TypeMethodDescriptionvoid
RoleLDAPStorageMapper.LDAPRoleMappingsUserDelegate.deleteRoleMapping
(RoleModel role) RoleLDAPStorageMapper.getRoleMembers
(RealmModel realm, RoleModel role, int firstResult, int maxResults) void
boolean
-
Uses of RoleModel in org.keycloak.storage.role
Modifier and TypeMethodDescriptionRoleLookupProvider.getClientRole
(ClientModel client, String name) Exact search for a client role by given name.RoleLookupProvider.getRealmRole
(RealmModel realm, String name) Exact search for a role by given name.RoleLookupProvider.getRoleById
(RealmModel realm, String id) Exact search for a role by its internal ID..Modifier and TypeMethodDescriptionRoleLookupProvider.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.RoleLookupProvider.searchForClientRolesStream
(RealmModel realm, String search, Stream<String> excludedIds, Integer first, Integer max) Case-insensitive search for client roles that contain the given string in their name or their client's public identifier (clientId - (client_id
in OIDC orentityID
in SAML)).RoleLookupProvider.searchForClientRolesStream
(RealmModel realm, Stream<String> ids, String search, Integer first, Integer max) Case-insensitive search for client roles that contain the given string in its name or their client's public identifier (clientId - (client_id
in OIDC orentityID
in SAML)).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
Modifier and TypeMethodDescriptionUserQueryMethodsProvider.getRoleMembersStream
(RealmModel realm, RoleModel role) Obtains users that have the specified role.UserQueryMethodsProvider.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.
AbstractUserAdapter.getClientRoleMappingsStream(ClientModel)
instead