com.sun.faban.harness.security
Enum Permission

java.lang.Object
  extended by java.lang.Enum<Permission>
      extended by com.sun.faban.harness.security.Permission
All Implemented Interfaces:
Serializable, Comparable<Permission>

public enum Permission
extends Enum<Permission>

Permission enumeration used for the Faban access controller.


Enum Constant Summary
MANAGE
          The manage permission is allowed all manage actions on the benchmark.
RIGMANAGE
          The rigmanage acl is listed in the harness configuration file harness.xml at the elements security/managePrincipal and is only read at startup.
SUBMIT
          The submit permission is allowed to submit runs and delete submitted runs.
VIEW
          The view permission is allowed to view run results.
WRITE
          The write permission is allowed to add comments to runs.
 
Method Summary
 String toString()
          Converts string to lowercase.
static Permission valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Permission[] 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

RIGMANAGE

public static final Permission RIGMANAGE
The rigmanage acl is listed in the harness configuration file harness.xml at the elements security/managePrincipal and is only read at startup. By default, a user having manage permission on a benchmark will have the rigmanage permission on rig-wide resources, i.e. the run queue. If the list in harness.xml is not empty, only the listed principals will have rigmanage permission on rig-wide resources.


MANAGE

public static final Permission MANAGE
The manage permission is allowed all manage actions on the benchmark. By default, users having submit permissions will have manage permissions unless overridden by manage.acl


SUBMIT

public static final Permission SUBMIT
The submit permission is allowed to submit runs and delete submitted runs. By default, all logged in users have submit permission on all deployed benchmarks unless overridden by submit.acl


VIEW

public static final Permission VIEW
The view permission is allowed to view run results. By default, everybody is allowed to view results, logged in or not. If META-INF/view.acl exists and has entries, the user needs to be logged in and listed in view.acl to view the particular result.


WRITE

public static final Permission WRITE
The write permission is allowed to add comments to runs. Usually this acl should not exist. All people allowed to view are allowed to comment, unless one really misbehaves. The user needs to be logged in and have view permissions on the benchmark to write. If META-INF/write.acl exists and has entries, only users listed in write.acl are allowed to add comments.

Method Detail

values

public static Permission[] 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 (Permission c : Permission.values())
    System.out.println(c);

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

valueOf

public static Permission 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

toString

public String toString()
Converts string to lowercase.

Overrides:
toString in class Enum<Permission>
Returns:
String