org.mmbase.security
Class Operation

java.lang.Object
  extended byorg.mmbase.security.Operation

public final class Operation
extends Object

This class is somekinda enumeration of the operations possible within the security context

Version:
$Id: Operation.java,v 1.11 2004/03/08 17:46:32 michiel Exp $
Author:
Eduard Witteveen
Warning: No Java Documentation Available.

Field Summary
static Operation CHANGE_CONTEXT
          Identifier for change context operation, which is used when changing the context of a node
static int CHANGE_CONTEXT_INT
          int value for change context operation
static Operation CHANGE_RELATION
          Identifier for changing the source and/or destination field of a relation.
static int CHANGE_RELATION_INT
          int value for the change relation Operation
static Operation CHANGECONTEXT
          Deprecated. Use CHANGE_CONTEXT
static int CHANGECONTEXT_INT
          Deprecated. use CHANGE_CONTEXT_INT
static Operation CREATE
          Identifier for create operation, which is used for creating a new node.
static int CREATE_INT
          int value for the create Operation
static Operation DELETE
          Identifier for remove operation, which is used when removing a node
static int DELETE_INT
          int value for the remove Operation
static Operation READ
          Identifier for read operation, which is used for reading information
static int READ_INT
          int value for the read Operation
static Operation WRITE
          Identifier for write operation, which is used for writing information
static int WRITE_INT
          int value for the write Operation
 
Method Summary
 int getInt()
          This method gives back the internal int value of the Operation, which can be used in switch statements
static Operation getOperation(String operationString)
          retrieve a Operation by a given string
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

READ_INT

public static final int READ_INT
int value for the read Operation

See Also:
Constant Field Values

WRITE_INT

public static final int WRITE_INT
int value for the write Operation

See Also:
Constant Field Values

CREATE_INT

public static final int CREATE_INT
int value for the create Operation

See Also:
Constant Field Values

CHANGE_RELATION_INT

public static final int CHANGE_RELATION_INT
int value for the change relation Operation

See Also:
Constant Field Values

DELETE_INT

public static final int DELETE_INT
int value for the remove Operation

See Also:
Constant Field Values

CHANGE_CONTEXT_INT

public static final int CHANGE_CONTEXT_INT
int value for change context operation

Since:
MMBase-1.7
See Also:
Constant Field Values

CHANGECONTEXT_INT

public static final int CHANGECONTEXT_INT
Deprecated. use CHANGE_CONTEXT_INT

See Also:
Constant Field Values

READ

public static final Operation READ
Identifier for read operation, which is used for reading information


WRITE

public static final Operation WRITE
Identifier for write operation, which is used for writing information


CREATE

public static final Operation CREATE
Identifier for create operation, which is used for creating a new node. This only applies on NodeManagers (builders)


CHANGE_RELATION

public static final Operation CHANGE_RELATION
Identifier for changing the source and/or destination field of a relation.


DELETE

public static final Operation DELETE
Identifier for remove operation, which is used when removing a node


CHANGE_CONTEXT

public static final Operation CHANGE_CONTEXT
Identifier for change context operation, which is used when changing the context of a node

Since:
MMBase-1.7

CHANGECONTEXT

public static final Operation CHANGECONTEXT
Deprecated. Use CHANGE_CONTEXT

Identifier for change context operation, which is used when changing the context of a node

Method Detail

getInt

public int getInt()
This method gives back the internal int value of the Operation, which can be used in switch statements

Returns:
the internal int value

toString

public String toString()
Returns:
a string containing the description of the operation

getOperation

public static Operation getOperation(String operationString)
retrieve a Operation by a given string



MMBase build 1.8.1.20060716