public class WildflyGroupPropertiesCLIManager extends BaseWildflyCLIManager implements GroupManager, ContextualManager
Groups manager service provider implementation for JBoss Wildfly.
It wraps the Wildfly groups manager based on properties file, but instead of the need to specify the path for the properties files, its absolute path discovery is automatically handled by using to the administration API for the server.
AbstractEntityManager.SearchRequest, AbstractEntityManager.SearchResponse<T>| Modifier and Type | Field and Description |
|---|---|
protected WildflyGroupPropertiesManager |
groupsPropertiesManager |
adminPassword, adminUser, DEFAULT_ADMIN_PASSWORD, DEFAULT_ADMIN_USER, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_REALM, host, port, realm| Constructor and Description |
|---|
WildflyGroupPropertiesCLIManager() |
WildflyGroupPropertiesCLIManager(org.uberfire.commons.config.ConfigProperties gitPrefs) |
WildflyGroupPropertiesCLIManager(Map<String,String> gitPrefs) |
| 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) |
protected String |
getGroupsPropertiesFilePath() |
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) |
getClient, getPropertiesFilePath, isConfigPropertySet, isEmpty, loadConfigprotected WildflyGroupPropertiesManager groupsPropertiesManager
public WildflyGroupPropertiesCLIManager()
public WildflyGroupPropertiesCLIManager(Map<String,String> gitPrefs)
public WildflyGroupPropertiesCLIManager(org.uberfire.commons.config.ConfigProperties gitPrefs)
protected String getGroupsPropertiesFilePath() throws Exception
Exceptionpublic void initialize(UserSystemManager userSystemManager) throws Exception
initialize in interface ContextualManagerExceptionpublic void destroy()
throws Exception
destroy 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 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 GroupManagerSecurityManagementExceptionCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.