Package org.apache.jetspeed.security

Examples of org.apache.jetspeed.security.PolicyWrapper


        {
            if (log.isDebugEnabled())
            {
                log.debug("Adding default policy to security policies: " + defaultPolicy.getClass().getName());
            }
            PolicyWrapper defaultPolicyWrap = new PolicyWrapper(defaultPolicy, useDefaultPolicy, true);
            SecurityPolicies.getInstance().addPolicy(defaultPolicyWrap);
        }

        if (!securityPolicies.contains(policy))
        {
            if (log.isDebugEnabled())
            {
                log.debug("Adding custom policy to security policies: " + policy.getClass().getName());
            }
            PolicyWrapper policyWrap = new PolicyWrapper(policy, true, false);
            SecurityPolicies.getInstance().addPolicy(policyWrap);
        }

        // Use the primary policy.
        if (log.isDebugEnabled())
View Full Code Here


        List wrappedPolicies = SecurityPolicies.getInstance().getWrappedPolicies();
        if (whetherToUseDefaultPolicy)
        {
            for (int i = 0; i < wrappedPolicies.size(); i++)
            {
                PolicyWrapper currWrappedPolicy = (PolicyWrapper) wrappedPolicies.get(i);
                if (currWrappedPolicy.isDefaultPolicy())
                {
                    currWrappedPolicy.setUseAsPolicy(true);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.security.PolicyWrapper

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.