|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.cams.access.attr.StandardEvaluationContext
public class StandardEvaluationContext
StandardEvaluationContext is the standard implementation of
the EvaluationContext interface. It manages the context
during evaluation of Functions and other
Evaluatable entities. An instance of this class is typically
instantiated at the beginning of an some evaluation context (for example,
when an AccessControlRule is evaluated).
NOTE: This class does some optional caching for current date, time, and dateTime values (defined by a boolean flag to the constructors). These values always be available but they do not necessarily need to remain constant over the course of an evaluation if the values are being generated by the PDP (if the values are provided in the Request, then obviously they will remain constant). The default behavior is for these environment values to be cached, so that (for example) the current time remains constant over the course of an evaluation.
| Constructor Summary | |
|---|---|
StandardEvaluationContext(InternalAccessControlRequest acReq)
Create a new StandardEvaluationContext instance using the specified AccessControlRequest. |
|
| Method Summary | |
|---|---|
EvaluationResult |
getAttribute(URI attrCategory,
URI type,
URI id)
Returns attribute value(s) from the access control request. |
AttributeValue |
getResourceId()
Returns the resource named in the request as resource-id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardEvaluationContext(InternalAccessControlRequest acReq)
acReq - the AccessControlRequest.| Method Detail |
|---|
public AttributeValue getResourceId()
getResourceId in interface EvaluationContext
public EvaluationResult getAttribute(URI attrCategory,
URI type,
URI id)
getAttribute in interface EvaluationContextattrCategory - the attribute category of the attribute value(s)
to findtype - the type of the attribute value(s) to findid - the id of the attribute value(s) to find
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||