@ApplicationScoped public class RolesManagerImpl extends Object implements RolesManager
Modifier and Type | Field and Description |
---|---|
protected Application |
application |
protected Role |
roleAnonymous |
protected Map<String,Role> |
roleMap |
protected String[] |
rolesConfig |
Constructor and Description |
---|
RolesManagerImpl() |
Modifier and Type | Method and Description |
---|---|
Set<Role> |
getAllRoles() |
Role |
getRoleById(String id) |
void |
init() |
protected void |
registerRolesFromConfig() |
protected void |
registerRolesFromWebXml(File webXml) |
@Inject protected Application application
@Inject protected String[] rolesConfig
protected transient Role roleAnonymous
@PostConstruct public void init() throws Exception
Exception
protected void registerRolesFromWebXml(File webXml) throws Exception
Exception
public Role getRoleById(String id)
getRoleById
in interface RolesManager
public Set<Role> getAllRoles()
getAllRoles
in interface RolesManager
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.