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

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


        try {
            version = policySet.getVersion();
            new Integer(version);
        } catch (NumberFormatException e) {
            throw new UnsupportedPolicyException(String.format("Wrong version format (policySetId=\"%s\")",
                                                               policySet.getPolicySetId()), e);
        }

        if (policySet.getObligations() != null) {
            List<ObligationType> obligationList = policySet.getObligations().getObligations();
View Full Code Here


     *             one given by {@link AttributeWizardTypeConfiguration#getActionAttributeWizard()}.
     */
    public PolicyWizard(AttributeWizard attributeWizard) {

        if (attributeWizardType != attributeWizard.getAttributeWizardType()) {
            throw new UnsupportedPolicyException("Attribute not supported: " + attributeWizard.getId());
        }

        actionValue = attributeWizard.getValue();
        targetWizard = new TargetWizard(attributeWizard);

View Full Code Here

        try {
            version = policy.getVersion();
            new Integer(version);
        } catch (NumberFormatException e) {
            throw new UnsupportedPolicyException("Wrong version format", e);
        }

        if (policy.getObligations() != null) {
            List<ObligationType> obligationList = policy.getObligations().getObligations();
            for (ObligationType obligation : obligationList) {
View Full Code Here

     */
    public static boolean isPublic(String policyId) {
        String[] idTokens = policyId.split("_");

        if (idTokens.length == 0) {
            throw new UnsupportedPolicyException("Unrecognized policyId: " + policyId);
        }

        if (idTokens.length == 1) {
            return true;
        }
View Full Code Here

    private static String getIdUniqueNumber(String policyId) {

        String[] idTokens = policyId.split("_");

        if (idTokens.length == 0) {
            throw new UnsupportedPolicyException("Unrecognized policyId: " + policyId);
        }

        if (idTokens.length == 1) {
            return idTokens[0];
        }

        if (idTokens.length == 2) {
            if ((VISIBILITY_PRIVATE_PREFIX.equals(idTokens[0])) || (VISIBILITY_PUBLIC_PREFIX.equals(idTokens[0]))) {
                return idTokens[1];
            }
        }
        throw new UnsupportedPolicyException("Unrecognized policyId: " + policyId);
    }
View Full Code Here

TOP

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

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.