org.nodal.security
Interface Capability

All Known Implementing Classes:
CapabilityImpl

public interface Capability

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_ permissions 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.

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_EDIT
           
static int DELEGATE_HISTORY
           
static int DELEGATE_READ
           
static int EDIT
           
static int HISTORY
           
static int READ
           
 
Method Summary
 boolean allowDelegate(int op)
           
 boolean allowed(int ops)
           
 boolean allowEdit()
           
 boolean allowHistory()
           
 boolean allowRead()
           
 

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_READ

public static final int DELEGATE_READ
See Also:
Constant Field Values

DELEGATE_EDIT

public static final int DELEGATE_EDIT
See Also:
Constant Field Values

DELEGATE_HISTORY

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

allowed

public boolean allowed(int ops)

allowRead

public boolean allowRead()

allowEdit

public boolean allowEdit()

allowHistory

public boolean allowHistory()

allowDelegate

public boolean allowDelegate(int op)