Package org.apache.syncope.common.to

Examples of org.apache.syncope.common.to.SyncPolicyTO


        assertEquals(Arrays.asList(6L, 7L, 10L, 8L), policyTO.getUsedByRoles());
    }

    @Test
    public void getSyncPolicy() {
        SyncPolicyTO policyTO = policyService.read(1L);

        assertNotNull(policyTO);
        assertTrue(policyTO.getUsedByRoles().isEmpty());
    }
View Full Code Here


        assertFalse(policyTO.getUsedByResources().contains(RESOURCE_NAME_NOPROPAGATION));
    }

    @Test
    public void getGlobalSyncPolicy() {
        SyncPolicyTO policyTO = policyService.readGlobal(PolicyType.SYNC);

        assertNotNull(policyTO);
        assertEquals(PolicyType.GLOBAL_SYNC, policyTO.getType());
        assertFalse(policyTO.getUsedByResources().contains(RESOURCE_NAME_CSV));
        assertFalse(policyTO.getUsedByResources().contains(RESOURCE_NAME_WS2));
        assertTrue(policyTO.getUsedByRoles().isEmpty());
    }
View Full Code Here

    @Test
    public void issueSYNCOPE258() {
        // -----------------------------
        // Add a custom correlation rule
        // -----------------------------
        SyncPolicyTO policyTO = policyService.read(9L);
        policyTO.getSpecification().setUserJavaRule(TestSyncRule.class.getName());

        policyService.update(policyTO.getId(), policyTO);
        // -----------------------------

        SyncTaskTO task = new SyncTaskTO();
        task.setName("Test Sync Rule");
        task.setResource(RESOURCE_NAME_WS2);
View Full Code Here

            case PASSWORD:
                policyTO = new PasswordPolicyTO();
                break;

            case GLOBAL_SYNC:
                policyTO = new SyncPolicyTO(true);
                break;

            case SYNC:
            default:
                policyTO = new SyncPolicyTO();
        }

        return policyTO;
    }
View Full Code Here

                break;

            case GLOBAL_SYNC:
            case SYNC:
            default:
                policyTO = (T) new SyncPolicyTO(isGlobal);
                ((SyncPolicyTO) policyTO).setSpecification(policy.getSpecification(SyncPolicySpec.class));
        }

        policyTO.setId(policy.getId());
        policyTO.setDescription(policy.getDescription());
View Full Code Here

TOP

Related Classes of org.apache.syncope.common.to.SyncPolicyTO

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.