Package org.apache.syncope.core.persistence.beans

Examples of org.apache.syncope.core.persistence.beans.AccountPolicy


                if (!(policyTO instanceof AccountPolicyTO)) {
                    throw new ClassCastException("Expected " + AccountPolicyTO.class.getName()
                            + ", found " + policyTO.getClass().getName());
                }
                if (policy == null) {
                    policy = (T) new AccountPolicy(isGlobal);
                }
                policy.setSpecification(((AccountPolicyTO) policyTO).getSpecification());

                ((AccountPolicy) policy).getResources().clear();
                for (String resourceName : ((AccountPolicyTO) policyTO).getResources()) {
View Full Code Here


                }
            }
        }

        // 3. look for global account policy (if defined)
        AccountPolicy global = policyDAO.getGlobalAccountPolicy();
        if (global != null && !global.getResources().isEmpty()) {
            if (result == null) {
                result = global.getResources();
            } else {
                result.retainAll(global.getResources());
            }
        }

        if (result == null) {
            result = Collections.emptySet();
View Full Code Here

TOP

Related Classes of org.apache.syncope.core.persistence.beans.AccountPolicy

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.