Package org.glite.authz.pap.common

Examples of org.glite.authz.pap.common.Pap


        if (alias == null) {
            alias = Pap.DEFAULT_PAP_ALIAS;
        }
       
        Pap pap = PapManager.getInstance().getPap(alias);

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

        PapContainer papContainer = new PapContainer(pap);
View Full Code Here


        if (alias == null) {
            alias = Pap.DEFAULT_PAP_ALIAS;
        }

        Pap pap = PapManager.getInstance().getPap(alias);

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

        PapContainer papContainer = new PapContainer(pap);
View Full Code Here

        if (alias == null) {
            alias = Pap.DEFAULT_PAP_ALIAS;
        }
       
        Pap pap = PapManager.getInstance().getPap(alias);

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

        PapContainer papContainer = new PapContainer(pap);
View Full Code Here

        String path = papConfiguration.getString(pathKey(papAlias));
        String protocol = papConfiguration.getString(protocolKey(papAlias));
        boolean visibilityPublic = papConfiguration.getBoolean(visibilityPublicKey(papAlias));
        boolean enabled = papConfiguration.getBoolean(enabledKey(papAlias), false);

        Pap pap = new Pap(papAlias, isLocal, dn, hostname, port, path, protocol, visibilityPublic);
        pap.setEnabled(enabled);
       
        return pap;
    }
View Full Code Here

            if (alias == null) {
                alias = Pap.DEFAULT_PAP_ALIAS;
            }

            Pap ps = PapManager.getInstance().getPap(alias);

            if (ps.isLocal()) {
                return GetLocalRootPolicySetOperation.instance(ps).execute();
            } else {
                return GetRemoteRootPolicySetOperation.instance(ps).execute();
            }
View Full Code Here

            if (alias == null) {
                alias = Pap.DEFAULT_PAP_ALIAS;
            }

            Pap ps = PapManager.getInstance().getPap(alias);

            PolicyType policy;

            if (ps.isLocal()) {
                policy = GetLocalPolicyOperation.instance(ps, policyId).execute();
            } else {
                policy = GetRemotePolicyOperation.instance(ps, policyId).execute();
            }
View Full Code Here

            if (alias == null) {
                alias = Pap.DEFAULT_PAP_ALIAS;
            }

            Pap ps = PapManager.getInstance().getPap(alias);

            PolicySetType policySet;

            if (ps.isLocal()) {
                policySet = GetLocalPolicySetOperation.instance(ps, policySetId).execute();
            } else {
                policySet = GetRemotePolicySetOperation.instance(ps, policySetId).execute();
            }
            return policySet;
View Full Code Here

            if (alias == null) {
                alias = Pap.DEFAULT_PAP_ALIAS;
            }

            Pap ps = PapManager.getInstance().getPap(alias);

            synchronized (ServicesUtils.highLevelOperationLock) {
                if (ps.isLocal()) {
                    return HasLocalPolicyOperation.instance(ps, policyId).execute();
                } else {
                    return HasRemotePolicyOperation.instance(ps, policyId).execute();
                }
            }
View Full Code Here

            if (alias == null) {
                alias = Pap.DEFAULT_PAP_ALIAS;
            }

            Pap ps = PapManager.getInstance().getPap(alias);

            synchronized (ServicesUtils.highLevelOperationLock) {
                if (ps.isLocal()) {
                    return HasLocalPolicySetOperation.instance(ps, policySetId).execute();
                } else {
                    return HasRemotePolicySetOperation.instance(ps, policySetId).execute();
                }
            }
View Full Code Here

            if (papAlias == null) {
                papAlias = Pap.DEFAULT_PAP_ALIAS;
            }

            Pap ps = PapManager.getInstance().getPap(papAlias);

            synchronized (ServicesUtils.highLevelOperationLock) {
                if (ps.isLocal()) {
                    return ListLocalPoliciesOperation.instance(ps).execute();
                } else {
                    return ListRemotePoliciesOperation.instance(ps).execute();
                }
            }
View Full Code Here

TOP

Related Classes of org.glite.authz.pap.common.Pap

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.