|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthorizationActions
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.
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 |
---|
boolean implies(AuthorizationActions entitlement)
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.
entitlement
- the entitlement to check against.int getValue()
java.lang.String getLabel()
int getLabelCount()
java.lang.String[] getLabels()
boolean containsLabel(java.lang.String label)
boolean containsLabels(java.lang.String[] labels)
boolean containsLabels(java.util.Collection labels)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |