public class RoleMapperResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.keycloak.common.ClientConnection |
clientConnection |
protected javax.ws.rs.core.HttpHeaders |
headers |
protected static org.jboss.logging.Logger |
logger |
protected BruteForceProtector |
protector |
protected RealmModel |
realm |
protected KeycloakSession |
session |
protected javax.ws.rs.core.UriInfo |
uriInfo |
| Constructor and Description |
|---|
RoleMapperResource(RealmModel realm,
RealmAuth auth,
RoleMapperModel roleMapper,
AdminEventBuilder adminEvent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRealmRoleMappings(List<RoleRepresentation> roles)
Add realm-level role mappings to the user
|
void |
deleteRealmRoleMappings(List<RoleRepresentation> roles)
Delete realm-level role mappings
|
List<RoleRepresentation> |
getAvailableRealmRoleMappings()
Get realm-level roles that can be mapped
|
List<RoleRepresentation> |
getCompositeRealmRoleMappings()
Get effective realm-level role mappings
This will recurse all composite roles to get the result.
|
List<RoleRepresentation> |
getRealmRoleMappings()
Get realm-level role mappings
|
MappingsRepresentation |
getRoleMappings()
Get role mappings
|
ClientRoleMappingsResource |
getUserClientRoleMappingsResource(String client) |
protected static final org.jboss.logging.Logger logger
protected RealmModel realm
@Context protected org.keycloak.common.ClientConnection clientConnection
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected KeycloakSession session
@Context protected javax.ws.rs.core.HttpHeaders headers
@Context protected BruteForceProtector protector
public RoleMapperResource(RealmModel realm, RealmAuth auth, RoleMapperModel roleMapper, AdminEventBuilder adminEvent)
public MappingsRepresentation getRoleMappings()
public List<RoleRepresentation> getRealmRoleMappings()
public List<RoleRepresentation> getCompositeRealmRoleMappings()
public List<RoleRepresentation> getAvailableRealmRoleMappings()
public void addRealmRoleMappings(List<RoleRepresentation> roles)
roles - Roles to addpublic void deleteRealmRoleMappings(List<RoleRepresentation> roles)
roles - public ClientRoleMappingsResource getUserClientRoleMappingsResource(String client)
Copyright © 2016 JBoss by Red Hat. All rights reserved.