org.mmbase.security
Class Operation

java.lang.Object
  extended by org.mmbase.security.Operation

public final class Operation
extends Object

This class is a kind of enumeration (introduced before java 1.5 enumerations) of the operations possible within the security authorization.

Version:
$Id: Operation.java 36037 2009-06-14 08:14:49Z michiel $
Author:
Eduard Witteveen
See Also:
Authorization

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 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
          A 'read' operation is acquiring an MMBase Node.
static int READ_INT
          int value for the read Operation
static Operation WRITE
          Node.setValue(String, Object) is an example of a write-operation.
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
A 'read' operation is acquiring an MMBase Node. We have no field-level granularity for the authorization. Having a Node means that you


WRITE

public static final Operation WRITE
Node.setValue(String, Object) is an example of a write-operation.


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
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()
Overrides:
toString in class Object
Returns:
a string containing the description of the operation

getOperation

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

Parameters:
operationString - the toString()
Returns:
Operation


MMBase 2.0-SNAPSHOT - null