org.mmbase.security
Class Operation

java.lang.Object
  |
  +--org.mmbase.security.Operation

public final class Operation
extends java.lang.Object

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


Field Summary
static Operation CHANGECONTEXT
          Identifier for change context operation, which is used when changing the context of a node
static int CHANGECONTEXT_INT
          int value for the remove Operation
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 LINK
          Identifier for link operation, which is used when creating a relation between 2 nodes.
static int LINK_INT
          int value for the link 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
 java.lang.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

WRITE_INT

public static final int WRITE_INT
int value for the write Operation

CREATE_INT

public static final int CREATE_INT
int value for the create Operation

LINK_INT

public static final int LINK_INT
int value for the link Operation

DELETE_INT

public static final int DELETE_INT
int value for the remove Operation

CHANGECONTEXT_INT

public static final int CHANGECONTEXT_INT
int value for the remove Operation

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)

LINK

public static final Operation LINK
Identifier for link operation, which is used when creating a relation between 2 nodes.

DELETE

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

CHANGECONTEXT

public static final Operation CHANGECONTEXT
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 java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a string containing the description of the operation


MMBase 2001