public abstract class BaseWildflyGroupPropertiesManager extends BaseWildflyPropertiesManager implements GroupManager, ContextualManager
Groups manager service provider implementation for Wildfly, when using default realm based on properties files.
AbstractEntityManager.SearchRequest, AbstractEntityManager.SearchResponse<T>| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_GROUPS_FILE |
protected String |
groupsFilePath |
protected WildflyPropertiesFileLoader |
groupsPropertiesFileLoader |
protected IdentifierRuntimeSearchEngine<org.jboss.errai.security.shared.api.Group> |
groupsSearchEngine |
DEFAULT_REALM, realm| Constructor and Description |
|---|
BaseWildflyGroupPropertiesManager() |
BaseWildflyGroupPropertiesManager(org.uberfire.commons.config.ConfigProperties gitPrefs) |
BaseWildflyGroupPropertiesManager(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)
WildFly / EAP realms based on properties do not allow groups with empty users.
|
protected org.jboss.errai.security.shared.api.Group |
createGroup(String name) |
protected org.jboss.errai.security.shared.api.Role |
createRole(String name) |
void |
delete(String... identifiers) |
void |
destroy() |
protected boolean |
existGroups(Collection<String> groups) |
org.jboss.errai.security.shared.api.Group |
get(String identifier) |
protected Set<String> |
getAllGroups() |
CapabilityStatus |
getCapabilityStatus(Capability capability) |
protected abstract WildflyPropertiesFileLoader |
getFileLoader(String filePath) |
Set[] |
getGroupsAndRolesForUser(String username) |
String |
getGroupsFilePath() |
GroupManagerSettings |
getSettings() |
void |
initialize(UserSystemManager userSystemManager) |
protected void |
loadConfig(org.uberfire.commons.config.ConfigProperties config) |
protected static Set<String> |
parseGroupIdentifiers(String groupsStr) |
void |
removeEntry(String username) |
AbstractEntityManager.SearchResponse<org.jboss.errai.security.shared.api.Group> |
search(AbstractEntityManager.SearchRequest request) |
void |
setGroupsForUser(String username,
Collection<String> groups) |
org.jboss.errai.security.shared.api.Group |
update(org.jboss.errai.security.shared.api.Group entity) |
generateHashPassword, isConfigPropertySet, isEmptypublic static final String DEFAULT_GROUPS_FILE
protected final IdentifierRuntimeSearchEngine<org.jboss.errai.security.shared.api.Group> groupsSearchEngine
protected String groupsFilePath
protected WildflyPropertiesFileLoader groupsPropertiesFileLoader
public BaseWildflyGroupPropertiesManager()
public BaseWildflyGroupPropertiesManager(Map<String,String> gitPrefs)
public BaseWildflyGroupPropertiesManager(org.uberfire.commons.config.ConfigProperties gitPrefs)
protected abstract WildflyPropertiesFileLoader getFileLoader(String filePath)
protected void loadConfig(org.uberfire.commons.config.ConfigProperties config)
loadConfig in class BaseWildflyPropertiesManagerpublic 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 void setGroupsForUser(String username, Collection<String> groups)
public String getGroupsFilePath()
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>entity - The entity to create.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 void assignUsers(String name, Collection<String> users) throws SecurityManagementException
assignUsers in interface GroupManagerSecurityManagementExceptionpublic GroupManagerSettings getSettings()
getSettings in interface AbstractEntityManager<org.jboss.errai.security.shared.api.Group,GroupManagerSettings>public CapabilityStatus getCapabilityStatus(Capability capability)
protected org.jboss.errai.security.shared.api.Group createGroup(String name)
protected org.jboss.errai.security.shared.api.Role createRole(String name)
public void removeEntry(String username) throws IOException
IOExceptionprotected boolean existGroups(Collection<String> groups)
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.