Class ClientRoleMappingsResource
java.lang.Object
org.keycloak.services.resources.admin.ClientRoleMappingsResource
- Version:
 - $Revision: 1 $
 - Author:
 - Bill Burke
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AdminEventBuilderprotected AdminPermissionEvaluatorprotected ClientModelprotected static final org.jboss.logging.Loggerprotected RealmModelprotected KeycloakSessionprotected RoleMapperModel - 
Constructor Summary
ConstructorsConstructorDescriptionClientRoleMappingsResource(jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, RoleMapperModel user, ClientModel client, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck manageCheck, AdminPermissionEvaluator.RequirePermissionCheck viewCheck)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd client-level roles to the user role mappingvoidDelete client-level roles from user role mappingGet available client-level roles that can be mapped to the userGet client-level role mappings for the user, and the appgetCompositeClientRoleMappings(boolean briefRepresentation) Get effective client-level role mappings This recurses any composite roles 
- 
Field Details
- 
logger
protected static final org.jboss.logging.Logger logger - 
session
 - 
realm
 - 
auth
 - 
user
 - 
client
 - 
adminEvent
 - 
managePermission
 - 
viewPermission
 
 - 
 - 
Constructor Details
- 
ClientRoleMappingsResource
public ClientRoleMappingsResource(jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, RoleMapperModel user, ClientModel client, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck manageCheck, AdminPermissionEvaluator.RequirePermissionCheck viewCheck)  
 - 
 - 
Method Details
- 
getClientRoleMappings
Get client-level role mappings for the user, and the app- Returns:
 
 - 
getCompositeClientRoleMappings
@Path("composite") @GET @Produces("application/json") public Stream<RoleRepresentation> getCompositeClientRoleMappings(@QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation) Get effective client-level role mappings This recurses any composite roles- Parameters:
 briefRepresentation- if false, return roles with their attributes- Returns:
 
 - 
getAvailableClientRoleMappings
@Path("available") @GET @Produces("application/json") public Stream<RoleRepresentation> getAvailableClientRoleMappings()Get available client-level roles that can be mapped to the user- Returns:
 
 - 
addClientRoleMapping
@POST @Consumes("application/json") public void addClientRoleMapping(List<RoleRepresentation> roles) Add client-level roles to the user role mapping- Parameters:
 roles-
 - 
deleteClientRoleMapping
@DELETE @Consumes("application/json") public void deleteClientRoleMapping(List<RoleRepresentation> roles) Delete client-level roles from user role mapping- Parameters:
 roles-
 
 -