incubator-imperius-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Wood <daw...@us.ibm.com>
Subject PolicyEvaluatorImpl.evaluatePolicy() return value
Date Thu, 07 Aug 2008 12:01:44 GMT
I would like to be able to use policies for both "authorization" and 
"obligation".  To facilitate this, it would be useful to have a single 
evaluation method, used for both situations, that always returned the 
result  of the condition statement evaluation.  One solution could be to 
change  PolicyEvaluator interface from:

    public Object evaluatePolicy(SPLPolicy cp, Map instances) throws 
SPLException;

to

    public EvaluationResults evaluatePolicy(SPLPolicy cp, Map instances) 
throws SPLException;

The new EvaluationResults object could contain the status code that is 
currently being returned,  as well as the result of the condition.  This 
object could hold any other information of interest too of course. 
Thoughts?

David Wood 
Network Server System Software Group
IBM TJ Watson Research Center
dawood@us.ibm.com
914-784-5123 (office), 914-396-6515 (mobile)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message