Class 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.
    • 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

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        a string representation of this role.
      • 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:
        getName in interface org.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.
      • isIncludeAll

        public boolean isIncludeAll()
      • setIncludeAll

        public void setIncludeAll​(boolean includeAll)