Hi,
I had an offline chat with Dave Booz from the SCA policy spec group. Please
see his responses below: D - Dave, R - Raymond.
R: Say an SCA service requires an intent I1, and there are more than one
policySets in the definitions.xml that provide I1. Is it an error or which
policySet
should be used?
D: it is not an error, the policy spec doesn't care which one is chosen.
this is when you will probably need a human to intervene.
R: so if we explicitly declare the @policySet on the service element, would
it take precedance?
D: it's more than precedence...in this case, the policy FW considers I1 to
be satisfied and so there is no need to even search for other policySets
that might
satisfy I1
Thanks,
Raymond
--------------------------------------------------
From: "Luciano Resende" <[email protected]>
Sent: Monday, July 20, 2009 9:49 AM
To: "tuscany-dev" <[email protected]>
Subject: Resolving which policySet to use, when multiple policySets are
available for the same intent
I have a scenario where there are couple of Authorization Policy
defined in the definitions.xml of an application (e.g allowManager,
allowUser, etc), and then, in the composite file, these are assigned
to a Java Operations :
<implementation.java class="services.FruitsCatalogImpl">
<operation name="get" policySets="allowManager"/>
</implementation.java>
The problem I'm facing is that these policySets all get grouped into
the "ApplicablePolicySets", and I couldn't find a easy way to identify
witch policySet should be used based on the one directly specified in
the composite file for a given operation.
Thoughts ?
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/