g-Eclipse
Release 1.0.0

eu.geclipse.core.accesscontrol
Interface IACLPolicy


public interface IACLPolicy

A policy to be used in the ACL entries.

The supported policies are determined by the implementation. The simplest case would have the allow policy only. Other examples would have allow and deny policies, for instance. The implementation determines how different policies are prioritized and evaluated.

The recommended implementation is an enum containing all the policies allowed by the middleware.

Also known as 'effect' in the XACML standard.


Field Summary
static short TYPE_ALLOW
          Flag for a policy which essentially allows the actor access on the resource
static short TYPE_DENY
          Flag for a policy which essentially denies the actor access on the resource
static short TYPE_OTHER
          Flag for a policy whose effect is not so directly 'allow' or 'deny'
 
Method Summary
 java.lang.String getDescription()
          Returns a description of this policy, for instance to be used in tool-tips.
 java.lang.String getName()
          Returns the name of this policy, for instance "Allow".
 short getType()
          Returns the policy type, to be used for sorting and grouping similar rules.
 

Field Detail

TYPE_ALLOW

static final short TYPE_ALLOW
Flag for a policy which essentially allows the actor access on the resource

See Also:
Constant Field Values

TYPE_DENY

static final short TYPE_DENY
Flag for a policy which essentially denies the actor access on the resource

See Also:
Constant Field Values

TYPE_OTHER

static final short TYPE_OTHER
Flag for a policy whose effect is not so directly 'allow' or 'deny'

See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Returns the name of this policy, for instance "Allow".

Returns:
a user friendly string. Must be non empty.

getDescription

java.lang.String getDescription()
Returns a description of this policy, for instance to be used in tool-tips.

Returns:
a user friendly string explaining the policy.

getType

short getType()
Returns the policy type, to be used for sorting and grouping similar rules.

Returns:
a flag, one of IACLPolicy.TYPE_ALLOW, IACLPolicy.TYPE_DENY, IACLPolicy.TYPE_OTHER.

g-Eclipse
Release 1.0.0