|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.access.attr.StandardAttributeTarget
StandardAttributeTarget implements a conjunctive sequence
of AttributeConditions instances used to match an
AccessControlRequest. Each AttributeConditions
instance must have a unique attribute category. AttributeTarget
is responsible for matching AttributeConditions instances and
returning a "MATCH" status if ALL AttributeConditions match.
AttributeConditions are matched in the order specified by
a List.
| Constructor Summary | |
StandardAttributeTarget(AccessControlRule acr,
String desc)
Create a new StandardAttributeTarget instance. |
|
| Method Summary | |
AccessControlRule |
getAccessControlRule()
Returns the associated AccessControlRule. |
List |
getAttributeConditionsList()
Get the List of AttributeConditions to be matched. |
String |
getDescription()
Returns a textual description. |
MatchResult |
match(EvaluationContext evalContext)
Determines whether this AttributeTarget matches
the input request (whether it is applicable). |
void |
setAttributeConditionsList(List attrCondsList)
Set the List of AttributeConditions to be matched. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandardAttributeTarget(AccessControlRule acr,
String desc)
throws IllegalArgumentException
StandardAttributeTarget instance.
acr - the AccessControlRule.desc - a textual description of the target.
IllegalArgumentException - if the access control rule is null.| Method Detail |
public String getDescription()
getDescription in interface AttributeTargetAttributeTarget or
null if no description is available.public AccessControlRule getAccessControlRule()
AccessControlRule.
getAccessControlRule in interface AttributeTargetAccessControlRule associated with this
AttributeTarget. NOTE: It is the caller's responsibility
to evaluate the AccessControlRule in the event that
an AccessControlRequest matches this
AttributeTarget.
public void setAttributeConditionsList(List attrCondsList)
throws IllegalArgumentException
AttributeConditions to be matched.
setAttributeConditionsList in interface AttributeTargetattrCondsList - the List of AttributeConditions.
IllegalArgumentException - if one of the objects within the
List does not implement AttributeConditions or if
multiple AttributeConditions have the same attribute
category.public List getAttributeConditionsList()
AttributeConditions to be matched.
getAttributeConditionsList in interface AttributeTargetAttributeConditions or an empty List
if no current AttributeConditions.public MatchResult match(EvaluationContext evalContext)
AttributeTarget matches
the input request (whether it is applicable). This will be true
only if ALL enclosed AttributeConditionss match.
match in interface AttributeTargetevalContext - the representation of the request
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||