|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.attr.StandardAttributeDesignator
StandardAttributeDesignator implements the standard
AttributeDesignator, which selects a bag AttributeValues for a
named attribute within an AccessControlContext.
| Constructor Summary | |
StandardAttributeDesignator(URI attrCategory,
URI attrType,
URI attrId,
boolean mustBePresent)
Create a new StandardAttributeDesignator instance. |
|
| Method Summary | |
EvaluationResult |
evaluate(EvaluationContext evalContext)
Evaluates the object using the given context, and either returns an error or a resulting value. |
boolean |
evaluatesToBag()
Indicates whether evaluation will return a bag or a single value. |
URI |
getAttributeCategory()
Get the AttributeCategory. |
URI |
getAttributeId()
Returns the identifier of the attribute selected by this designator. |
URI |
getType()
Get the type of this object. |
boolean |
mustBePresent()
Returns whether or not a value is required to be resolved by this designator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandardAttributeDesignator(URI attrCategory,
URI attrType,
URI attrId,
boolean mustBePresent)
throws IllegalArgumentException
attrCategory - the category (e.g. subject, resource, action,
environment, etc.) of attribute associated with this designator.attrType - a URI representing the attribute value type. On
successful evaluation a bag of attribute values of this type
will be returned.attrId - a URI identifying the designated attribute.mustBePresent - indicates whether evaluation of this designator
returns an empty bag or "indeterminate" if the specified attribute
is absent from the AccessControlContext. If mustBePresent is true
and the named attribute absent, then indeterminate is returnd.
If mustBePresent is false and the named attribute is absent, then
an empty bag is returned.| Method Detail |
public URI getAttributeId()
getAttributeId in interface AttributeDesignatorpublic URI getAttributeCategory()
getAttributeCategory in interface AttributeDesignatorpublic boolean mustBePresent()
mustBePresent in interface AttributeDesignatorpublic EvaluationResult evaluate(EvaluationContext evalContext)
evaluate in interface EvaluatableevalContext - the representation of the request
public URI getType()
Attribute or the return type of an
AttributeDesignator, etc.
getType in interface Evaluatablepublic boolean evaluatesToBag()
evaluatesToBag in interface Evaluatable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||