com.metamatrix.platform.security.api
Interface AuthorizationActions

All Superinterfaces:
java.lang.Comparable
All Known Implementing Classes:
StandardAuthorizationActions

public interface AuthorizationActions
extends java.lang.Comparable

The EntitlementAction interface encapsulates the methods that are required to identify the set of actions associated with an entitlement. This interface may be implemented by classes (such as BasicEntitlementAction) that contain a closed set of entitlement actions instances. Thus, specialized implementations of EntitlementAction can be provided, extending the capabilities of the Authorization framework.

See Also:
BasicEntitlementAction

Method Summary
 boolean containsLabel(java.lang.String label)
          Return whether this instance contains the specified label
 boolean containsLabels(java.util.Collection labels)
          Return whether this instance contains all of the specified labels
 boolean containsLabels(java.lang.String[] labels)
          Return whether this instance contains all of the specified labels
 java.lang.String getLabel()
          Return the label of this action.
 int getLabelCount()
          Return the number of actions.
 java.lang.String[] getLabels()
          Return the set of labels of this action.
 int getValue()
          Return the value of this action.
 boolean implies(AuthorizationActions entitlement)
          Checks if the specified entitlement's actions are "implied by" this object's actions.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

implies

boolean implies(AuthorizationActions entitlement)
Checks if the specified entitlement's actions are "implied by" this object's actions.

Essentially, the specified entitlement action is implied by this entitlement action if all of the actions of entitlement are also actions of this object's set.

Parameters:
entitlement - the entitlement to check against.

getValue

int getValue()
Return the value of this action.

Returns:
the value of this action.

getLabel

java.lang.String getLabel()
Return the label of this action.

Returns:
the label of this action.

getLabelCount

int getLabelCount()
Return the number of actions.

Returns:
the number of actions.

getLabels

java.lang.String[] getLabels()
Return the set of labels of this action.

Returns:
the set of labels of this action.

containsLabel

boolean containsLabel(java.lang.String label)
Return whether this instance contains the specified label

Returns:
true if this instance contains the specified label, or false otherwise

containsLabels

boolean containsLabels(java.lang.String[] labels)
Return whether this instance contains all of the specified labels

Returns:
true if this instance contains all of the specified labels, or false otherwise

containsLabels

boolean containsLabels(java.util.Collection labels)
Return whether this instance contains all of the specified labels

Returns:
true if this instance contains all of the specified labels, or false otherwise


Copyright © 2009. All Rights Reserved.