org.glite.security.voms.service
Class Operation

java.lang.Object
  extended byorg.glite.security.voms.service.Operation

public final class Operation
extends java.lang.Object

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

Author:
Karoly Lorentey
See Also:
DBACL

Field Summary
static Operation ADD
          The value for membership addition.
static Operation ALL
          The value representing all operations.
static Operation CREATE
          The value for entity (user or container) creation.
static Operation DELETE
          The value for entity deletion.
static Operation DELETE_ANY_REQUEST
          Delete any request.
static Operation GET_ACL
          The value for ACL queries.
static Operation GET_DEFAULT_ACL
          The value for default ACL queries.
static Operation LIST
          The value for membership lists.
static Operation LIST_ANY_REQUEST
          List any request.
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.
 
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.
 boolean provides(Operation o)
          Return true if right to perform this operation automatically provides right to execute the Operation given.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.


LIST_ANY_REQUEST

public static final Operation LIST_ANY_REQUEST
List any request.


DELETE_ANY_REQUEST

public static final Operation DELETE_ANY_REQUEST
Delete any request.

Method Detail

getId

public int getId()

getName

public java.lang.String getName()

toString

public java.lang.String toString()

provides

public boolean provides(Operation o)
Return true if right to perform this operation automatically provides right to execute the Operation given.


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.