Package org.jboss.hal.config
Class Role
- java.lang.Object
-
- org.jboss.hal.config.Role
-
- All Implemented Interfaces:
org.jboss.hal.spi.NamedObject
public class Role extends Object implements org.jboss.hal.spi.NamedObject
A standard or scoped role used when RBAC is turned on.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRole.Type
-
Field Summary
Fields Modifier and Type Field Description static RoleADMINISTRATORHas all permissions except cannot read or write resources related to the administrative audit logging system.static RoleAUDITORCan read anything.static RoleDEPLOYERLike a Maintainer, but with permission to modify persistent configuration constrained to resources that are considered to be "application resources".static RoleMAINTAINEROperator permissions, plus can modify the persistent configuration.static RoleMONITORA read-only role.static RoleOPERATORMonitor permissions, plus can modify runtime state, but cannot modify anything that ends up in the persistent configuration.static RoleSUPER_USERHas all permissions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)RolegetBaseRole()StringgetId()StringgetName()SortedSet<String>getScope()Role.TypegetType()inthashCode()booleanisIncludeAll()booleanisScoped()booleanisStandard()voidsetIncludeAll(boolean includeAll)StringtoString()
-
-
-
Field Detail
-
ADMINISTRATOR
public static final Role ADMINISTRATOR
Has all permissions except cannot read or write resources related to the administrative audit logging system.
-
AUDITOR
public static final Role AUDITOR
Can read anything. Can only modify the resources related to the administrative audit logging system.
-
DEPLOYER
public static final Role DEPLOYER
Like a Maintainer, but with permission to modify persistent configuration constrained to resources that are considered to be "application resources". A deployment is an application resource. The messaging server is not. Items like datasources and JMS destinations are not considered to be application resources by default, but this is configurable.
-
MAINTAINER
public static final Role MAINTAINER
Operator permissions, plus can modify the persistent configuration.
-
MONITOR
public static final Role MONITOR
A read-only role. Cannot modify any resource.
-
OPERATOR
public static final Role OPERATOR
Monitor permissions, plus can modify runtime state, but cannot modify anything that ends up in the persistent configuration. Could, for example, restart a server.
-
SUPER_USER
public static final Role SUPER_USER
Has all permissions. Equivalent to a JBoss AS 7 administrator.
-
-
Method Detail
-
toString
public String toString()
-
getId
public String getId()
- Returns:
- the unique ID of this role.
-
isStandard
public boolean isStandard()
- Returns:
- true if this is a standard role, false otherwise.
-
isScoped
public boolean isScoped()
- Returns:
- true if this is a scoped role, false otherwise.
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.jboss.hal.spi.NamedObject- Returns:
- the name of this role.
-
getBaseRole
public Role getBaseRole()
- Returns:
- the base role if this is a scoped role, null otherwise.
-
getType
public Role.Type getType()
-
isIncludeAll
public boolean isIncludeAll()
-
setIncludeAll
public void setIncludeAll(boolean includeAll)
-
-