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

Examples of org.glite.authz.pap.common.xacml.wizard.exceptions.PolicySetWizardException


        // add referenced policies
        List<String> idReferenceList = PolicySetHelper.getPolicyIdReferencesValues(policySet);

        if ((idReferenceList.size() > 0) && (policyWizardList == null)) {
            throw new PolicySetWizardException("policyList is null");
        }

        for (String policyIdReference : idReferenceList) {
            boolean found = false;
            for (PolicyWizard policyWizard : policyWizardList) {
                if (policyIdReference.equals(policyWizard.getPolicyId())) {
                    this.policyWizardList.add(policyWizard);
                    found = true;
                }
            }
            if (!found) {
                PolicySetHelper.deletePolicyReference(policySet, policyIdReference);
                log.warn("Not found policy reference: " + policyIdReference);
            }
        }

        // add referenced policy sets
        idReferenceList = PolicySetHelper.getPolicySetIdReferencesValues(policySet);

        if ((idReferenceList.size() > 0) && (childPolicySetList == null)) {
            throw new PolicySetWizardException("childPolicySetList is null");
        }

        for (String policySetIdReference : idReferenceList) {
            boolean found = false;
            for (PolicySetType childPolicySet : childPolicySetList) {
View Full Code Here

TOP

Related Classes of org.glite.authz.pap.common.xacml.wizard.exceptions.PolicySetWizardException

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.