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(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, loadConfig
protected WildflyGroupPropertiesManager groupsPropertiesManager
public WildflyGroupPropertiesCLIManager()
public WildflyGroupPropertiesCLIManager(Map<String,String> gitPrefs)
public WildflyGroupPropertiesCLIManager(ConfigProperties gitPrefs)
protected String getGroupsPropertiesFilePath() throws Exception
Exception
public void initialize(UserSystemManager userSystemManager) throws Exception
initialize
in interface ContextualManager
Exception
public void destroy() throws Exception
destroy
in interface ContextualManager
Exception
public 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>
SecurityManagementException
public org.jboss.errai.security.shared.api.Group get(String identifier) throws SecurityManagementException
get
in interface AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>
SecurityManagementException
public 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>
SecurityManagementException
public 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>
SecurityManagementException
public void delete(String... identifiers) throws SecurityManagementException
delete
in interface AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>
SecurityManagementException
public 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 GroupManager
SecurityManagementException
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.