public class WildflyUserPropertiesCLIManager extends BaseWildflyCLIManager implements UserManager, ContextualManager
Users manager service provider implementation for JBoss Wildfly.
It wraps the Wildfly users 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.
UserManager.UserAttribute
AbstractEntityManager.SearchRequest, AbstractEntityManager.SearchResponse<T>
adminPassword, adminUser, DEFAULT_ADMIN_PASSWORD, DEFAULT_ADMIN_USER, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_REALM, host, port, realm
Constructor and Description |
---|
WildflyUserPropertiesCLIManager() |
WildflyUserPropertiesCLIManager(org.uberfire.commons.config.ConfigProperties gitPrefs) |
WildflyUserPropertiesCLIManager(Map<String,String> gitPrefs) |
Modifier and Type | Method and Description |
---|---|
void |
assignGroups(String username,
Collection<String> groups) |
void |
assignRoles(String username,
Collection<String> roles) |
void |
changePassword(String username,
String newPassword) |
org.jboss.errai.security.shared.api.identity.User |
create(org.jboss.errai.security.shared.api.identity.User entity) |
void |
delete(String... identifiers) |
void |
destroy() |
org.jboss.errai.security.shared.api.identity.User |
get(String identifier) |
UserManagerSettings |
getSettings() |
void |
initialize(UserSystemManager userSystemManager) |
AbstractEntityManager.SearchResponse<org.jboss.errai.security.shared.api.identity.User> |
search(AbstractEntityManager.SearchRequest request) |
org.jboss.errai.security.shared.api.identity.User |
update(org.jboss.errai.security.shared.api.identity.User entity) |
getClient, getPropertiesFilePath, isConfigPropertySet, isEmpty, loadConfig
public WildflyUserPropertiesCLIManager()
public WildflyUserPropertiesCLIManager(org.uberfire.commons.config.ConfigProperties gitPrefs)
public void initialize(UserSystemManager userSystemManager) throws Exception
initialize
in interface ContextualManager
Exception
public void destroy() throws Exception
destroy
in interface ContextualManager
Exception
public void assignGroups(String username, Collection<String> groups) throws SecurityManagementException
assignGroups
in interface UserManager
SecurityManagementException
public void assignRoles(String username, Collection<String> roles) throws SecurityManagementException
assignRoles
in interface UserManager
SecurityManagementException
public void changePassword(String username, String newPassword) throws SecurityManagementException
changePassword
in interface UserManager
SecurityManagementException
public AbstractEntityManager.SearchResponse<org.jboss.errai.security.shared.api.identity.User> search(AbstractEntityManager.SearchRequest request) throws SecurityManagementException
search
in interface AbstractEntityManager<org.jboss.errai.security.shared.api.identity.User,UserManagerSettings>
SecurityManagementException
public org.jboss.errai.security.shared.api.identity.User get(String identifier) throws SecurityManagementException
get
in interface AbstractEntityManager<org.jboss.errai.security.shared.api.identity.User,UserManagerSettings>
SecurityManagementException
public org.jboss.errai.security.shared.api.identity.User create(org.jboss.errai.security.shared.api.identity.User entity) throws SecurityManagementException
create
in interface AbstractEntityManager<org.jboss.errai.security.shared.api.identity.User,UserManagerSettings>
SecurityManagementException
public org.jboss.errai.security.shared.api.identity.User update(org.jboss.errai.security.shared.api.identity.User entity) throws SecurityManagementException
update
in interface AbstractEntityManager<org.jboss.errai.security.shared.api.identity.User,UserManagerSettings>
SecurityManagementException
public void delete(String... identifiers) throws SecurityManagementException
delete
in interface AbstractEntityManager<org.jboss.errai.security.shared.api.identity.User,UserManagerSettings>
SecurityManagementException
public UserManagerSettings getSettings()
getSettings
in interface AbstractEntityManager<org.jboss.errai.security.shared.api.identity.User,UserManagerSettings>
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.