g-Eclipse
Release 1.0.0

eu.geclipse.core.accesscontrol
Interface IACLEntry


public interface IACLEntry

An access control entry in an ACL. This entry describes one resource access rule, either allow or deny a single capability on that resource for a single actor. A capability is either a low level operation (read, write, ...) or a higher level role (owner, manager, ...).

Also known as 'rule' in the XACML standard.


Method Summary
 IACLActor getActor()
          Returns the actor of this entry.
 IACLCapability getCapability()
          Returns the capability which this ACL entry refers to.
 IACLPolicy getPolicy()
          Queries the policy of this entry.
 IACLCapability[] getSupportedCapabilities()
          Queries the supported permissions or roles which can be granted or not to the actor of this ACL entry.
 IACLPolicy[] getSupportedPolicies()
          Queries the policies which are supported by this ACL entry.
 void setActor(IACLActor actor)
          Sets the actor of this entry.
 void setCapability(IACLCapability capability)
          Sets the capability to be (dis)allowed to the actor.
 void setPolicy(IACLPolicy policy)
          Sets the policy of this entry.
 

Method Detail

getSupportedPolicies

IACLPolicy[] getSupportedPolicies()
Queries the policies which are supported by this ACL entry. The supported policies are determined by the implementation.

Returns:
an array of policies which this entry supports.

getPolicy

IACLPolicy getPolicy()
Queries the policy of this entry.

Returns:
the policy.

setPolicy

void setPolicy(IACLPolicy policy)
               throws ProblemException
Sets the policy of this entry.

Parameters:
policy - the value to set.
Throws:
ProblemException - if the provided policy is null or not allowed.

getSupportedCapabilities

IACLCapability[] getSupportedCapabilities()
Queries the supported permissions or roles which can be granted or not to the actor of this ACL entry. The supported capabilities are determined by the implementation.

Returns:
an array of capabilities which this entry supports.

getCapability

IACLCapability getCapability()
Returns the capability which this ACL entry refers to.

Also known as 'target-action' in the XACML standard.

Returns:
the capability.

setCapability

void setCapability(IACLCapability capability)
                   throws ProblemException
Sets the capability to be (dis)allowed to the actor.

Parameters:
capability - the capability to set.
Throws:
ProblemException - if the capability is null or invalid.

getActor

IACLActor getActor()
Returns the actor of this entry.

Returns:
the actor.

setActor

void setActor(IACLActor actor)
              throws ProblemException
Sets the actor of this entry.

Parameters:
actor - the actor to set.
Throws:
ProblemException - if the actor is null or invalid.

g-Eclipse
Release 1.0.0