public class DatabaseRolesMappingProvider extends AbstractRolesMappingProvider
MappingProvider that reads roles from a database.
rolesQuery option should be a prepared statement equivalent to
"select RoleName from Roles where User=?"| Modifier and Type | Field and Description |
|---|---|
protected String |
dsJndiName |
protected String |
rolesQuery |
protected boolean |
suspendResume |
protected TransactionManager |
tm |
protected String |
TX_MGR_JNDI_NAME |
result| Constructor and Description |
|---|
DatabaseRolesMappingProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected TransactionManager |
getTransactionManager() |
void |
init(Map<String,Object> options)
Initialize the provider with the configured module options
|
void |
performMapping(Map<String,Object> contextMap,
RoleGroup mappedObject)
Map the passed object
|
getCallerPrincipal, setMappingResult, supportsprotected String dsJndiName
protected String rolesQuery
protected boolean suspendResume
protected String TX_MGR_JNDI_NAME
protected TransactionManager tm
public void init(Map<String,Object> options)
MappingProviderpublic void performMapping(Map<String,Object> contextMap, RoleGroup mappedObject)
MappingProvidercontextMap - A read-only contextual map that can provide information to the providermappedObject - an Object on which the mapping will be appliedprotected TransactionManager getTransactionManager() throws NamingException
NamingExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.