org.drools.guvnor.server.security
Enum RoleType

java.lang.Object
  extended by java.lang.Enum<RoleType>
      extended by org.drools.guvnor.server.security.RoleType
All Implemented Interfaces:
Serializable, Comparable<RoleType>

public enum RoleType
extends Enum<RoleType>


Enum Constant Summary
ADMIN
          Admin can do everything
ANALYST
          Analyst only see the "rules" view, and we specify what category paths they can see.
ANALYST_READ
          Read only for categories (analyst view)
PACKAGE_ADMIN
          package.admin can do everything within this package
PACKAGE_DEVELOPER
          package.developer can do anything in that package but not snapshots.
PACKAGE_READONLY
          Read only for package.
 
Method Summary
 String getName()
           
 String toString()
           
static RoleType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RoleType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADMIN

public static final RoleType ADMIN
Admin can do everything


ANALYST

public static final RoleType ANALYST
Analyst only see the "rules" view, and we specify what category paths they can see. They can't create anything, only edit rules, and run tests etc, but only things that are exposed to them via categories


ANALYST_READ

public static final RoleType ANALYST_READ
Read only for categories (analyst view)


PACKAGE_ADMIN

public static final RoleType PACKAGE_ADMIN
package.admin can do everything within this package


PACKAGE_DEVELOPER

public static final RoleType PACKAGE_DEVELOPER
package.developer can do anything in that package but not snapshots. This includes creating a new package (in which case they inherit permissions for it).


PACKAGE_READONLY

public static final RoleType PACKAGE_READONLY
Read only for package.

Method Detail

values

public static RoleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RoleType c : RoleType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RoleType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Enum<RoleType>


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.