Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/finder
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30273/com/sun/xacml/finder
Modified Files:
PolicyFinder.java PolicyFinderModule.java
Log Message:
Added support for the XACML 2.0 functions, cleaned up current env handling
and date/time construction, and made most of the factory-related changes
to support the promised 2.0 features
Index: PolicyFinder.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/finder/PolicyFinder.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** PolicyFinder.java 7 Jan 2005 23:47:43 -0000 1.5
--- PolicyFinder.java 13 Jan 2006 22:32:52 -0000 1.6
***************
*** 38,41 ****
--- 38,42 ----
import com.sun.xacml.EvaluationCtx;
+ import com.sun.xacml.PolicyMetaData;
import com.sun.xacml.PolicyReference;
import com.sun.xacml.VersionConstraints;
***************
*** 214,217 ****
--- 215,220 ----
* @param constraints any optional constraints on the version of the
* referenced policy
+ * @param parentMetaData the meta-data from the parent policy, which
+ * provides XACML version, factories, etc.
*
* @return the result of trying to find an applicable policy
***************
*** 220,224 ****
*/
public PolicyFinderResult findPolicy(URI idReference, int type,
! VersionConstraints constraints)
throws IllegalArgumentException
{
--- 223,228 ----
*/
public PolicyFinderResult findPolicy(URI idReference, int type,
! VersionConstraints constraints,
! PolicyMetaData parentMetaData)
throws IllegalArgumentException
{
***************
*** 234,238 ****
PolicyFinderModule module = (PolicyFinderModule)(it.next());
PolicyFinderResult newResult =
! module.findPolicy(idReference, type, constraints);
// if there was an error, we stop right away
--- 238,243 ----
PolicyFinderModule module = (PolicyFinderModule)(it.next());
PolicyFinderResult newResult =
! module.findPolicy(idReference, type, constraints,
! parentMetaData);
// if there was an error, we stop right away
Index: PolicyFinderModule.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/finder/PolicyFinderModule.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PolicyFinderModule.java 7 Jan 2005 23:47:43 -0000 1.4
--- PolicyFinderModule.java 13 Jan 2006 22:32:52 -0000 1.5
***************
*** 38,41 ****
--- 38,42 ----
import com.sun.xacml.EvaluationCtx;
+ import com.sun.xacml.PolicyMetaData;
import com.sun.xacml.VersionConstraints;
***************
*** 155,163 ****
* never impose constraints when used from a pre-2.0
* XACML policy)
*
* @return the result of looking for a matching policy
*/
public PolicyFinderResult findPolicy(URI idReference, int type,
! VersionConstraints constraints) {
return new PolicyFinderResult();
}
--- 156,167 ----
* never impose constraints when used from a pre-2.0
* XACML policy)
+ * @param parentMetaData the meta-data from the parent policy, which
+ * provides XACML version, factories, etc.
*
* @return the result of looking for a matching policy
*/
public PolicyFinderResult findPolicy(URI idReference, int type,
! VersionConstraints constraints,
! PolicyMetaData parentMetaData) {
return new PolicyFinderResult();
}
|