Class ScopeMappedClientResource
- java.lang.Object
- 
- org.keycloak.services.resources.admin.ScopeMappedClientResource
 
- 
 public class ScopeMappedClientResource extends Object - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected AdminEventBuilderadminEventprotected AdminPermissionEvaluatorauthprotected AdminPermissionEvaluator.RequirePermissionCheckmanagePermissionprotected RealmModelrealmprotected ScopeContainerModelscopeContainerprotected ClientModelscopedClientprotected KeycloakSessionsessionprotected AdminPermissionEvaluator.RequirePermissionCheckviewPermission
 - 
Constructor SummaryConstructors Constructor Description ScopeMappedClientResource(RealmModel realm, AdminPermissionEvaluator auth, ScopeContainerModel scopeContainer, KeycloakSession session, ClientModel scopedClient, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck managePermission, AdminPermissionEvaluator.RequirePermissionCheck viewPermission)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClientScopeMapping(List<RoleRepresentation> roles)Add client-level roles to the client's scopevoiddeleteClientScopeMapping(List<RoleRepresentation> roles)Remove client-level roles from the client's scope.Stream<RoleRepresentation>getAvailableClientScopeMappings()The available client-level roles Returns the roles for the client that can be associated with the client's scopeStream<RoleRepresentation>getClientScopeMappings()Get the roles associated with a client's scope Returns roles for the client.Stream<RoleRepresentation>getCompositeClientScopeMappings(boolean briefRepresentation)Get effective client roles Returns the roles for the client that are associated with the client's scope.
 
- 
- 
- 
Field Detail- 
realmprotected RealmModel realm 
 - 
authprotected AdminPermissionEvaluator auth 
 - 
managePermissionprotected AdminPermissionEvaluator.RequirePermissionCheck managePermission 
 - 
viewPermissionprotected AdminPermissionEvaluator.RequirePermissionCheck viewPermission 
 - 
scopeContainerprotected ScopeContainerModel scopeContainer 
 - 
sessionprotected KeycloakSession session 
 - 
scopedClientprotected ClientModel scopedClient 
 - 
adminEventprotected AdminEventBuilder adminEvent 
 
- 
 - 
Constructor Detail- 
ScopeMappedClientResourcepublic ScopeMappedClientResource(RealmModel realm, AdminPermissionEvaluator auth, ScopeContainerModel scopeContainer, KeycloakSession session, ClientModel scopedClient, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck managePermission, AdminPermissionEvaluator.RequirePermissionCheck viewPermission) 
 
- 
 - 
Method Detail- 
getClientScopeMappings@GET @Produces("application/json") public Stream<RoleRepresentation> getClientScopeMappings()Get the roles associated with a client's scope Returns roles for the client.- Returns:
 
 - 
getAvailableClientScopeMappings@Path("available") @GET @Produces("application/json") public Stream<RoleRepresentation> getAvailableClientScopeMappings()The available client-level roles Returns the roles for the client that can be associated with the client's scope- Returns:
 
 - 
getCompositeClientScopeMappings@Path("composite") @GET @Produces("application/json") public Stream<RoleRepresentation> getCompositeClientScopeMappings(@QueryParam("briefRepresentation") @DefaultValue("true") boolean briefRepresentation)Get effective client roles Returns the roles for the client that are associated with the client's scope.- Parameters:
- briefRepresentation- if false, return roles with their attributes
- Returns:
 
 - 
addClientScopeMapping@POST @Consumes("application/json") public void addClientScopeMapping(List<RoleRepresentation> roles)Add client-level roles to the client's scope- Parameters:
- roles-
 
 - 
deleteClientScopeMapping@DELETE @Consumes("application/json") public void deleteClientScopeMapping(List<RoleRepresentation> roles)Remove client-level roles from the client's scope.- Parameters:
- roles-
 
 
- 
 
-