public class ScopeMappedResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AdminEventBuilder |
adminEvent |
protected RealmModel |
realm |
protected ScopeContainerModel |
scopeContainer |
protected KeycloakSession |
session |
| Constructor and Description |
|---|
ScopeMappedResource(RealmModel realm,
RealmAuth auth,
ScopeContainerModel scopeContainer,
KeycloakSession session,
AdminEventBuilder adminEvent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRealmScopeMappings(List<RoleRepresentation> roles)
Add a set of realm-level roles to the client's scope
|
void |
deleteRealmScopeMappings(List<RoleRepresentation> roles)
Remove a set of realm-level roles from the client's scope
|
static List<RoleRepresentation> |
getAvailable(ScopeContainerModel client,
Set<RoleModel> roles) |
List<RoleRepresentation> |
getAvailableRealmScopeMappings()
Get realm-level roles that are available to attach to this client's scope
|
ScopeMappedClientResource |
getClientByIdScopeMappings(String client) |
static List<RoleRepresentation> |
getComposite(ScopeContainerModel client,
Set<RoleModel> roles) |
List<RoleRepresentation> |
getCompositeRealmScopeMappings()
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.
|
List<RoleRepresentation> |
getRealmScopeMappings()
Get realm-level roles associated with the client's scope
|
MappingsRepresentation |
getScopeMappings()
Get all scope mappings for the client
|
protected RealmModel realm
protected ScopeContainerModel scopeContainer
protected KeycloakSession session
protected AdminEventBuilder adminEvent
public ScopeMappedResource(RealmModel realm, RealmAuth auth, ScopeContainerModel scopeContainer, KeycloakSession session, AdminEventBuilder adminEvent)
public MappingsRepresentation getScopeMappings()
public List<RoleRepresentation> getRealmScopeMappings()
public List<RoleRepresentation> getAvailableRealmScopeMappings()
public static List<RoleRepresentation> getAvailable(ScopeContainerModel client, Set<RoleModel> roles)
public List<RoleRepresentation> getCompositeRealmScopeMappings()
public static List<RoleRepresentation> getComposite(ScopeContainerModel client, Set<RoleModel> roles)
public void addRealmScopeMappings(List<RoleRepresentation> roles)
roles - public void deleteRealmScopeMappings(List<RoleRepresentation> roles)
roles - public ScopeMappedClientResource getClientByIdScopeMappings(String client)
Copyright © 2016 JBoss by Red Hat. All rights reserved.