Package org.glite.authz.pap.common.xacml.wizard

Examples of org.glite.authz.pap.common.xacml.wizard.TargetWizard


        // get the target policy, it must be the very first policy
        PolicyType candidatePolicy = papContainer.getPolicy(policyIdList.get(0));

        PolicyType policy = null;;
        TargetWizard policyTargetWizard = new TargetWizard(actionAttributeWizard);

        if (policyTargetWizard.isEquivalent(candidatePolicy.getTarget())) {

            policy = candidatePolicy;

            if (PolicyWizard.isPublic(policy.getPolicyId()) != isPublic) {
                return null;
View Full Code Here


    private PolicySetType getTargetPolicySet(PapContainer papContainer) {

        // get the target policy set, it must be the very first policy set (if it exists)
        PolicySetType targetPolicySet = null;
        TargetWizard policySetTargetWizard = new TargetWizard(resourceAttributeWizard);

        PolicySetType papRootPolicySet = papContainer.getRootPolicySet();

        List<String> policySetIdList = PolicySetHelper.getPolicySetIdReferencesValues(papRootPolicySet);

        TypeStringUtils.releaseUnneededMemory(papRootPolicySet);

        if (policySetIdList.size() == 0) {
            return null;
        }

        PolicySetType candidatePolicySet = papContainer.getPolicySet(policySetIdList.get(0));

        if (policySetTargetWizard.isEquivalent(candidatePolicySet.getTarget())) {
            targetPolicySet = candidatePolicySet;
        }

        return targetPolicySet;
    }
View Full Code Here

    private PolicyType getTargetPolicy(PapContainer papContainer, PolicySetType targetPolicySet) {

        List<String> policyIdList = PolicySetHelper.getPolicyIdReferencesValues(targetPolicySet);
        TypeStringUtils.releaseUnneededMemory(targetPolicySet);

        TargetWizard policyTargetWizard = new TargetWizard(actionAttributeWizard);

        for (String policyId : policyIdList) {

            PolicyType repositoryPolicy = papContainer.getPolicy(policyId);

            if (policyTargetWizard.isEquivalent(repositoryPolicy.getTarget())) {
                return repositoryPolicy;
            }
            TypeStringUtils.releaseUnneededMemory(repositoryPolicy);
        }
        return null;
View Full Code Here

    private List<PolicySetType> getTargetPolicySetList(PapContainer papContainer) {

        List<PolicySetType> targetPolicySetList = new LinkedList<PolicySetType>();

        TargetWizard policySetTargetWizard = new TargetWizard(resourceAttributeWizard);

        PolicySetType rootPAPPolicySet = papContainer.getRootPolicySet();

        List<String> policySetIdList = PolicySetHelper.getPolicySetIdReferencesValues(rootPAPPolicySet);

        TypeStringUtils.releaseUnneededMemory(rootPAPPolicySet);

        for (String policySetId : policySetIdList) {

            PolicySetType policySet = papContainer.getPolicySet(policySetId);

            if (policySetTargetWizard.isEquivalent(policySet.getTarget())) {
                targetPolicySetList.add(policySet);
            }

            TypeStringUtils.releaseUnneededMemory(policySet);
        }
View Full Code Here

TOP

Related Classes of org.glite.authz.pap.common.xacml.wizard.TargetWizard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.