Package org.glite.authz.pap.papmanagement

Examples of org.glite.authz.pap.papmanagement.PapContainer


        return new HasLocalPolicySetOperation(ps, policySetId);
    }

    @Override
    protected Boolean doExecute() {
        PapContainer localPAP = new PapContainer(ps);
        return localPAP.hasPolicySet(policySetId);
    }
View Full Code Here


    }

    @Override
    protected PolicySetType[] doExecute() {

        PapContainer localPAP = new PapContainer(ps);

        List<PolicySetType> policySetList = localPAP.getAllPolicySets();

        PolicySetType[] policySetArray = new PolicySetType[policySetList.size()];

        for (int i = 0; i < policySetList.size(); i++) {
            policySetArray[i] = policySetList.get(i);
View Full Code Here

        if (pap.isRemote()) {
            throw new XACMLPolicyManagementServiceException("Forbidden operation for a remote PAP");
        }

        PapContainer papContainer = new PapContainer(pap);

        try {
            papContainer.deletePolicySet(policySetId);
        } catch (NotFoundException e) {
            return false;
        }

        return true;
View Full Code Here

    }

    @Override
    protected PolicyType[] doExecute() {

        PapContainer localPAP = new PapContainer(ps);

        List<PolicyType> policyList = localPAP.getAllPolicies();

        PolicyType[] policyArray = new PolicyType[policyList.size()];

        for (int i = 0; i < policyList.size(); i++) {
            policyArray[i] = policyList.get(i);
View Full Code Here

    }

    @Override
    protected PolicySetType doExecute() {

        PapContainer papContainer = new PapContainer(ps);

        if (!papContainer.hasPolicySet(policySetId))
            throw new NotFoundException("PolicySet '" + policySetId + "' not found.");

        PolicySetType policySet = papContainer.getPolicySet(policySetId);

        return policySet;
    }
View Full Code Here

       
        if (alias == null) {
            alias = Pap.DEFAULT_PAP_ALIAS;
        }
       
        PapContainer papContainer = PapManager.getInstance().getPapContainer(alias);
       
        papContainer.deleteAllPolicySets();
        papContainer.deleteAllPolicies();
       
        papContainer.createRootPolicySet();
       
        return null;
    }
View Full Code Here

    }

    @Override
    protected PolicySetType[] doExecute() {

        PapContainer localPAP = new PapContainer(ps);

        List<PolicySetType> policySetList = localPAP.getAllPolicySets();

        PolicySetType[] policySetArray = new PolicySetType[policySetList.size()];

        for (int i = 0; i < policySetList.size(); i++) {
            policySetArray[i] = policySetList.get(i);
View Full Code Here

        if (pap.isRemote()) {
            throw new HighLevelPolicyManagementServiceException("Forbidden operation for a remote PAP");
        }

        PapContainer papContainer = new PapContainer(pap);

        if (purgeUnreferencedPolicies) {
            papContainer.purgeUnreferencesPolicies();
        }

        if (purgeEmptyPolicies) {
            papContainer.purgePoliciesWithNoRules();
        }

        if (purgeUnreferencedPolicySets) {
            papContainer.purgeUnreferencedPolicySets();
        }

        if (purgeEmptyPolicySets) {
            papContainer.purgePolicySetWithNoPolicies();
        }
        return null;
    }
View Full Code Here

    }

    @Override
    protected PolicyType[] doExecute() {

        PapContainer localPAP = new PapContainer(ps);

        List<PolicyType> policyList = localPAP.getAllPolicies();

        PolicyType[] policyArray = new PolicyType[policyList.size()];

        for (int i = 0; i < policyList.size(); i++) {
            policyArray[i] = policyList.get(i);
View Full Code Here

    }

    @Override
    protected PolicySetType doExecute() {

        PapContainer psContainer = new PapContainer(ps);

        PolicySetType policySet = psContainer.getRootPolicySet();

        return policySet;
    }
View Full Code Here

TOP

Related Classes of org.glite.authz.pap.papmanagement.PapContainer

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.