org.edg.security.voms.service
Class Operation

java.lang.Object
  |
  +--org.edg.security.voms.service.Operation

public final class Operation
extends java.lang.Object

An enumeration representing operations in the administration interface. Used in access control.

Version:
$Name: v0_7_0 $
Author:
Karoly Lorentey
See Also:
DBACL

Field Summary
static Operation ADD
          The value for membership addition.
static Operation ALL
          The value representing all operations.
private static java.util.Map byId
           
private static java.util.Map byName
           
static Operation CREATE
          The value for entity (user or container) creation.
static Operation DELETE
          The value for entity deletion.
static Operation GET_ACL
          The value for ACL queries.
static Operation GET_DEFAULT_ACL
          The value for default ACL queries.
private  int id
           
static Operation LIST
          The value for membership lists.
private  java.lang.String name
           
private static java.util.List names
           
static Operation REMOVE
          The value for membership removal.
static Operation SET_ACL
          The value for ACL modification.
static Operation SET_DEFAULT_ACL
          The value for modification of default ACLs.
 
Constructor Summary
private Operation(int id, java.lang.String name)
           
 
Method Summary
 int getId()
           
static Operation getInstance(int i)
          Return the operation corresponding to the given integer.
static Operation getInstance(java.lang.String name)
          Return the operation corresponding to the given integer.
 java.lang.String getName()
           
static java.lang.String[] getOperationNames()
          Return the operation names as an array of strings.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final java.lang.String name

id

private final int id

byName

private static final java.util.Map byName

byId

private static final java.util.Map byId

names

private static final java.util.List names

ALL

public static final Operation ALL
The value representing all operations. (A shortcut.)


CREATE

public static final Operation CREATE
The value for entity (user or container) creation.


DELETE

public static final Operation DELETE
The value for entity deletion.


ADD

public static final Operation ADD
The value for membership addition.


REMOVE

public static final Operation REMOVE
The value for membership removal.


SET_ACL

public static final Operation SET_ACL
The value for ACL modification.


GET_ACL

public static final Operation GET_ACL
The value for ACL queries.


SET_DEFAULT_ACL

public static final Operation SET_DEFAULT_ACL
The value for modification of default ACLs.


GET_DEFAULT_ACL

public static final Operation GET_DEFAULT_ACL
The value for default ACL queries.


LIST

public static final Operation LIST
The value for membership lists.

Constructor Detail

Operation

private Operation(int id,
                  java.lang.String name)
Method Detail

getId

public int getId()

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getInstance

public static Operation getInstance(int i)
                             throws ArgumentException
Return the operation corresponding to the given integer.

Throws:
ArgumentException - if there is no such operation.

getInstance

public static Operation getInstance(java.lang.String name)
                             throws ArgumentException
Return the operation corresponding to the given integer.

Throws:
ArgumentException - if there is no such operation.

getOperationNames

public static java.lang.String[] getOperationNames()
Return the operation names as an array of strings.