incubator-imperius-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Wood <>
Subject Return results of PolicyEvaluator.evaluatePolicy()
Date Thu, 07 Aug 2008 12:18:47 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;


    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. 

(My apoligies if you receive this twice. I originally sent it to the users 
mailing list).

David Wood 
Network Server System Software Group
IBM TJ Watson Research Center
914-784-5123 (office), 914-396-6515 (mobile)

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