|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.security.Operation
public final class Operation
This class is a kind of enumeration (introduced before java 1.5 enumerations) of the operations possible within the security authorization.
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 |
|---|
public static final int READ_INT
public static final int WRITE_INT
public static final int CREATE_INT
public static final int CHANGE_RELATION_INT
public static final int DELETE_INT
public static final int CHANGE_CONTEXT_INT
public static final int CHANGECONTEXT_INT
public static final Operation READ
Node means that you
public static final Operation WRITE
Node.setValue(String, Object) is an example of a write-operation.
public static final Operation CREATE
public static final Operation CHANGE_RELATION
public static final Operation DELETE
public static final Operation CHANGE_CONTEXT
| Method Detail |
|---|
public int getInt()
public String toString()
toString in class Objectpublic static Operation getOperation(String operationString)
operationString - the toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||