public class WildflyGroupPropertiesManager extends BaseWildflyPropertiesManager implements GroupManager, ContextualManager
Groups manager service provider implementation for JBoss Wildfly, when using default realm based on properties files.
| Modifier and Type | Class and Description |
|---|---|
static class |
WildflyGroupPropertiesManager.WildflyGroupsPropertiesFileLoader
An extension of the default Wildfly's groups properties file loader,
but this one supports deleting groups.
|
AbstractEntityManager.SearchRequest, AbstractEntityManager.SearchResponse<T>| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_GROUPS_FILE |
protected String |
groupsFilePath |
protected WildflyGroupPropertiesManager.WildflyGroupsPropertiesFileLoader |
groupsPropertiesFileLoader |
protected IdentifierRuntimeSearchEngine<org.jboss.errai.security.shared.api.Group> |
groupsSearchEngine |
DEFAULT_REALM, realm| Constructor and Description |
|---|
WildflyGroupPropertiesManager() |
WildflyGroupPropertiesManager(ConfigProperties gitPrefs) |
WildflyGroupPropertiesManager(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() |
protected CapabilityStatus |
getCapabilityStatus(Capability capability) |
protected WildflyGroupPropertiesManager.WildflyGroupsPropertiesFileLoader |
getFileLoader(String filePath) |
Set[] |
getGroupsAndRolesForUser(String username) |
String |
getGroupsFilePath() |
GroupManagerSettings |
getSettings() |
void |
initialize(UserSystemManager userSystemManager) |
protected void |
loadConfig(ConfigProperties config) |
protected static Set<String> |
parseGroupIdentifiers(String groupsStr) |
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 WildflyGroupPropertiesManager.WildflyGroupsPropertiesFileLoader groupsPropertiesFileLoader
public WildflyGroupPropertiesManager()
public WildflyGroupPropertiesManager(ConfigProperties gitPrefs)
protected void loadConfig(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>protected 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)
protected boolean existGroups(Collection<String> groups)
protected WildflyGroupPropertiesManager.WildflyGroupsPropertiesFileLoader getFileLoader(String filePath)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.