org.nodal.security
Interface Permission


public interface Permission

The basic interface to queries on security and privacy of a Node.

The static values represent the right to access the various restricted interfaces of a Node.

The READ permission represents access to the Content of a Node. Without this, a User may only access a Node's NID and Type.

The EDIT permission represents access to an Editor for a Node. Without this permission, a User may not modify the contents of a Node. When the owner of a Node removes his/her own EDIT permission, then the Node is read-only. An EDIT permission cannot be granted to anyone without READ permission.

The HISTORY permission allows a User access to the NodeHistory for a Node. This allows one to examine the audit trail or provenance of a Node.

The DELEGATE permission allows a User to delegate a subset of his own permissions to another User or revoke permissions previously delegated. If this permission is revoked, then all such delegated permissions are automatically revoked.

The MANAGE permission allows a User access to the NodeManager interface. This enables a rather complete manipulation of a Node's permissions.

On creation, the owner of a Node is granted all of these permissions.

Version:
May 23, 2002
Author:
Lee Iverson

Field Summary
static int DELEGATE
           
static int EDIT
           
static int HISTORY
           
static int MANAGE
           
static int READ
           
 
Method Summary
 boolean allowed(int ops)
           
 

Field Detail

READ

public static final int READ
See Also:
Constant Field Values

EDIT

public static final int EDIT
See Also:
Constant Field Values

HISTORY

public static final int HISTORY
See Also:
Constant Field Values

DELEGATE

public static final int DELEGATE
See Also:
Constant Field Values

MANAGE

public static final int MANAGE
See Also:
Constant Field Values
Method Detail

allowed

public boolean allowed(int ops)