public class KeyCloakGroupManager extends BaseKeyCloakManager implements GroupManager, ContextualManager
GroupsManager Service Provider Implementation for KeyCloak.
Note that roles (in keycloak server) are mapped as groups (in the workbench) for the keycloak users management provider impl.
AbstractEntityManager.SearchRequest, AbstractEntityManager.SearchResponse<T>ATTRIBUTE_USER_EMAIL, ATTRIBUTE_USER_EMAIL_VERIFIED, ATTRIBUTE_USER_ENABLED, ATTRIBUTE_USER_FIRST_NAME, ATTRIBUTE_USER_ID, ATTRIBUTE_USER_LAST_NAME, factory, USER_ATTRIBUTES, USER_EMAIL, USER_EMAIL_VERIFIED, USER_ENABLED, USER_FIST_NAME, USER_ID, USER_LAST_NAME| Constructor and Description |
|---|
KeyCloakGroupManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignUsers(String name,
Collection<String> users) |
org.jboss.errai.security.shared.api.Group |
create(org.jboss.errai.security.shared.api.Group entity) |
void |
delete(String... identifiers) |
void |
destroy() |
org.jboss.errai.security.shared.api.Group |
get(String identifier) |
List<org.jboss.errai.security.shared.api.Group> |
getAll() |
protected CapabilityStatus |
getCapabilityStatus(Capability capability) |
GroupManagerSettings |
getSettings() |
void |
initialize(UserSystemManager userSystemManager) |
AbstractEntityManager.SearchResponse<org.jboss.errai.security.shared.api.Group> |
search(AbstractEntityManager.SearchRequest request) |
org.jboss.errai.security.shared.api.Group |
update(org.jboss.errai.security.shared.api.Group entity) |
consumeRealm, createGroup, createGroup, createUser, createUser, fillUserAttributes, fillUserRepresentationAttributes, getKeyCloakInstance, getRoleRepresentation, getSearchRequest, getUserGroupsAndRoles, getUserResource, handleResponse, initpublic void initialize(UserSystemManager userSystemManager) throws Exception
initialize in interface ContextualManagerExceptionpublic AbstractEntityManager.SearchResponse<org.jboss.errai.security.shared.api.Group> search(AbstractEntityManager.SearchRequest request) throws SecurityManagementException
search in interface AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>SecurityManagementExceptionpublic org.jboss.errai.security.shared.api.Group get(String identifier) throws SecurityManagementException
get in interface AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>SecurityManagementExceptionpublic List<org.jboss.errai.security.shared.api.Group> getAll() throws SecurityManagementException
getAll in interface AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>SecurityManagementExceptionpublic org.jboss.errai.security.shared.api.Group create(org.jboss.errai.security.shared.api.Group entity)
throws SecurityManagementException
create in interface AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>SecurityManagementExceptionpublic org.jboss.errai.security.shared.api.Group update(org.jboss.errai.security.shared.api.Group entity)
throws SecurityManagementException
update in interface AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>SecurityManagementExceptionpublic void delete(String... identifiers) throws SecurityManagementException
delete in interface AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>SecurityManagementExceptionpublic GroupManagerSettings getSettings()
getSettings in interface AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>public void assignUsers(String name, Collection<String> users) throws SecurityManagementException
assignUsers in interface GroupManagerSecurityManagementExceptionprotected CapabilityStatus getCapabilityStatus(Capability capability)
public void destroy()
throws Exception
destroy in interface ContextualManagerExceptionCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.