com.cafesoft.cams.attr
Interface EvaluationContext

All Known Implementing Classes:
StandardEvaluationContext

public interface EvaluationContext

EvaluationContext 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.

Since:
4/14/2004

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.
 

Method Detail

getResourceId

public AttributeValue getResourceId()
Returns the resource named in the request as resource-id.

Returns:
the resource

getAttribute

public EvaluationResult getAttribute(URI attrCategory,
                                     URI type,
                                     URI id)
Returns attribute value(s) from the access control request.

Parameters:
attrCategory - the attribute category of the attribute value(s) to find
type - the type of the attribute value(s) to find
id - the id of the attribute value(s) to find
Returns:
a result containing a bag either empty because no values were found or containing at least one value, or status associated with an "indeterminate" result.


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.