Uses of Class
org.keycloak.representations.idm.RoleRepresentation
Package
Description
-
Uses of RoleRepresentation in org.keycloak.admin.client.resource
Modifier and TypeMethodDescriptionRoleByIdResource.getClientRoleComposites
(String id, String clientUuid) RoleResource.getClientRoleComposites
(String clientUuid) RoleByIdResource.getRealmRoleComposites
(String id) RoleResource.getRealmRoleComposites()
RoleByIdResource.getRoleComposites
(String id) RoleResource.getRoleComposites()
RolesResource.list()
RolesResource.list
(boolean briefRepresentation) Get roles by pagination params.Get roles by pagination params.Get roles by pagination params.Get roles by pagination params.RolesResource.list
(String search, Integer firstResult, Integer maxResults, boolean briefRepresentation) Get roles by pagination params.RoleScopeResource.listAll()
RoleScopeResource.listAvailable()
RoleScopeResource.listEffective()
RoleScopeResource.listEffective
(boolean briefRepresentation) RoleByIdResource.searchRoleComposites
(String id, String search, Integer first, Integer max) Modifier and TypeMethodDescriptionvoid
RolesResource.create
(RoleRepresentation roleRepresentation) void
RoleResource.update
(RoleRepresentation roleRepresentation) void
RoleByIdResource.updateRole
(String id, RoleRepresentation rep) Modifier and TypeMethodDescriptionvoid
RoleScopeResource.add
(List<RoleRepresentation> rolesToAdd) void
RoleByIdResource.addComposites
(String id, List<RoleRepresentation> roles) void
RoleResource.addComposites
(List<RoleRepresentation> rolesToAdd) void
RoleByIdResource.deleteComposites
(String id, List<RoleRepresentation> roles) void
RoleResource.deleteComposites
(List<RoleRepresentation> rolesToRemove) void
RoleScopeResource.remove
(List<RoleRepresentation> rolesToRemove) -
Uses of RoleRepresentation 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 RoleRepresentation in org.keycloak.models.utils
Modifier and TypeMethodDescriptionstatic RoleRepresentation
ModelToRepresentation.toBriefRepresentation
(RoleModel role) static RoleRepresentation
ModelToRepresentation.toRepresentation
(RoleModel role) Modifier and TypeMethodDescriptionstatic RoleModel
RepresentationToModel.createRole
(RealmModel newRealm, RoleRepresentation roleRep) -
Uses of RoleRepresentation in org.keycloak.partialimport
Modifier and TypeMethodDescriptionClientRolesPartialImport.getRepList
(PartialImportRepresentation partialImportRep) RealmRolesPartialImport.getRepList
(PartialImportRepresentation partialImportRep) ClientRolesPartialImport.getToOverwrite()
RealmRolesPartialImport.getToOverwrite()
ClientRolesPartialImport.getToSkip()
RealmRolesPartialImport.getToSkip()
Modifier and TypeMethodDescriptionClientRolesPartialImport.added
(String clientId, String modelId, RoleRepresentation roleRep) void
RealmRolesPartialImport.create
(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep) void
ClientRolesPartialImport.deleteRole
(RealmModel realm, String clientId, RoleRepresentation roleRep) boolean
ClientRolesPartialImport.exists
(RealmModel realm, KeycloakSession session, String clientId, RoleRepresentation roleRep) boolean
RealmRolesPartialImport.exists
(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep) ClientRolesPartialImport.existsMessage
(String clientId, RoleRepresentation roleRep) RealmRolesPartialImport.existsMessage
(RealmModel realm, RoleRepresentation roleRep) ClientRolesPartialImport.getCombinedName
(String clientId, RoleRepresentation roleRep) RealmRolesPartialImport.getModelId
(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep) ClientRolesPartialImport.getName
(RoleRepresentation roleRep) RealmRolesPartialImport.getName
(RoleRepresentation roleRep) ClientRolesPartialImport.overwritten
(String clientId, String modelId, RoleRepresentation roleRep) void
RealmRolesPartialImport.remove
(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep) ClientRolesPartialImport.skipped
(String clientId, String modelId, RoleRepresentation roleRep) -
Uses of RoleRepresentation in org.keycloak.representations.idm
Modifier and TypeFieldDescriptionprotected Map<String,
List<RoleRepresentation>> RolesRepresentation.application
Deprecated.protected Map<String,
List<RoleRepresentation>> RolesRepresentation.client
protected List<RoleRepresentation>
ClientMappingsRepresentation.mappings
protected List<RoleRepresentation>
RolesRepresentation.realm
protected List<RoleRepresentation>
MappingsRepresentation.realmMappings
Modifier and TypeMethodDescriptionRealmRepresentation.getDefaultRole()
RoleRepresentation.singleAttribute
(String name, String value) Modifier and TypeMethodDescriptionRolesRepresentation.getApplication()
Deprecated.RolesRepresentation.getClient()
ClientMappingsRepresentation.getMappings()
RolesRepresentation.getRealm()
MappingsRepresentation.getRealmMappings()
Modifier and TypeMethodDescriptionvoid
RealmRepresentation.setDefaultRole
(RoleRepresentation defaultRole) Modifier and TypeMethodDescriptionvoid
RolesRepresentation.setClient
(Map<String, List<RoleRepresentation>> client) void
ClientMappingsRepresentation.setMappings
(List<RoleRepresentation> mappings) void
RolesRepresentation.setRealm
(List<RoleRepresentation> realm) void
MappingsRepresentation.setRealmMappings
(List<RoleRepresentation> realmMappings) -
Uses of RoleRepresentation in org.keycloak.services.resources.admin
Modifier and TypeMethodDescriptionGet a specific role's representationGet a role by nameprotected RoleRepresentation
Modifier and TypeMethodDescriptionClientRoleMappingsResource.getAvailableClientRoleMappings()
Get available client-level roles that can be mapped to the userScopeMappedClientResource.getAvailableClientScopeMappings()
The available client-level roles Returns the roles for the client that can be associated with the client's scopeRoleMapperResource.getAvailableRealmRoleMappings()
Get realm-level roles that can be mappedScopeMappedResource.getAvailableRealmScopeMappings()
Get realm-level roles that are available to attach to this client's scopeRoleByIdResource.getClientRoleComposites
(String id, String clientUuid) Get client-level roles for the client that are in the role's compositeRoleContainerResource.getClientRoleComposites
(String roleName, String clientUuid) Get client-level roles for the client that are in the role's compositeprotected Stream<RoleRepresentation>
RoleResource.getClientRoleComposites
(ClientModel app, RoleModel role) ClientRoleMappingsResource.getClientRoleMappings()
Get client-level role mappings for the user, and the appScopeMappedClientResource.getClientScopeMappings()
Get the roles associated with a client's scope Returns roles for the client.ClientRoleMappingsResource.getCompositeClientRoleMappings
(boolean briefRepresentation) Get effective client-level role mappings This recurses any composite rolesScopeMappedClientResource.getCompositeClientScopeMappings
(boolean briefRepresentation) Get effective client roles Returns the roles for the client that are associated with the client's scope.RoleMapperResource.getCompositeRealmRoleMappings
(boolean briefRepresentation) Get effective realm-level role mappings This will recurse all composite roles to get the result.ScopeMappedResource.getCompositeRealmScopeMappings
(boolean briefRepresentation) Get effective realm-level roles associated with the client's scope What this does is recurse any composite roles associated with the client's scope and adds the roles to this lists.ClientScopeEvaluateScopeMappingsResource.getGrantedScopeMappings()
Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him.ClientScopeEvaluateScopeMappingsResource.getNotGrantedScopeMappings()
Get roles, which this client doesn't have scope for and can't have them in the accessToken issued for him.RoleByIdResource.getRealmRoleComposites
(String id) Get realm-level roles that are in the role's compositeRoleContainerResource.getRealmRoleComposites
(String roleName) Get realm-level roles of the role's compositeprotected Stream<RoleRepresentation>
RoleResource.getRealmRoleComposites
(RoleModel role) RoleMapperResource.getRealmRoleMappings()
Get realm-level role mappingsScopeMappedResource.getRealmScopeMappings()
Get realm-level roles associated with the client's scopeRoleByIdResource.getRoleComposites
(String id, String search, Integer first, Integer max) Get role's children Returns a set of role's children provided the role is a composite.RoleContainerResource.getRoleComposites
(String roleName) Get composites of the roleRoleContainerResource.getRoles
(String search, Integer firstResult, Integer maxResults, boolean briefRepresentation) Get all roles for the realm or clientModifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
RoleContainerResource.createRole
(RoleRepresentation rep) Create a new role for the realm or clientvoid
RoleByIdResource.updateRole
(String id, RoleRepresentation rep) Update the rolejakarta.ws.rs.core.Response
RoleContainerResource.updateRole
(String roleName, RoleRepresentation rep) Update a role by nameprotected void
RoleResource.updateRole
(RoleRepresentation rep, RoleModel role, RealmModel realm, KeycloakSession session) Modifier and TypeMethodDescriptionvoid
ClientRoleMappingsResource.addClientRoleMapping
(List<RoleRepresentation> roles) Add client-level roles to the user role mappingvoid
ScopeMappedClientResource.addClientScopeMapping
(List<RoleRepresentation> roles) Add client-level roles to the client's scopevoid
RoleByIdResource.addComposites
(String id, List<RoleRepresentation> roles) Make the role a composite role by associating some child rolesvoid
RoleContainerResource.addComposites
(String roleName, List<RoleRepresentation> roles) Add a composite to the roleprotected void
RoleResource.addComposites
(AdminPermissionEvaluator auth, AdminEventBuilder adminEvent, jakarta.ws.rs.core.UriInfo uriInfo, List<RoleRepresentation> roles, RoleModel role) void
RoleMapperResource.addRealmRoleMappings
(List<RoleRepresentation> roles) Add realm-level role mappings to the uservoid
ScopeMappedResource.addRealmScopeMappings
(List<RoleRepresentation> roles) Add a set of realm-level roles to the client's scopevoid
ClientRoleMappingsResource.deleteClientRoleMapping
(List<RoleRepresentation> roles) Delete client-level roles from user role mappingvoid
ScopeMappedClientResource.deleteClientScopeMapping
(List<RoleRepresentation> roles) Remove client-level roles from the client's scope.void
RoleByIdResource.deleteComposites
(String id, List<RoleRepresentation> roles) Remove a set of roles from the role's compositevoid
RoleContainerResource.deleteComposites
(String roleName, List<RoleRepresentation> roles) Remove roles from the role's compositeprotected void
RoleResource.deleteComposites
(AdminEventBuilder adminEvent, jakarta.ws.rs.core.UriInfo uriInfo, List<RoleRepresentation> roles, RoleModel role) void
RoleMapperResource.deleteRealmRoleMappings
(List<RoleRepresentation> roles) Delete realm-level role mappingsvoid
ScopeMappedResource.deleteRealmScopeMappings
(List<RoleRepresentation> roles) Remove a set of realm-level roles from the client's scope