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

Examples of org.apache.syncope.core.persistence.beans.role.RDerSchema


        switch (type) {
            case USER:
                result = (T) new UDerSchema();
                break;
            case ROLE:
                result = (T) new RDerSchema();
                break;
            case MEMBERSHIP:
                result = (T) new MDerSchema();
                break;
        }
View Full Code Here


        switch (type) {
            case USER:
                result = (T) new UDerSchema();
                break;
            case ROLE:
                result = (T) new RDerSchema();
                break;
            case MEMBERSHIP:
                result = (T) new MDerSchema();
                break;
        }
View Full Code Here

        switch (type) {
            case USER:
                result = (T) new UDerSchema();
                break;
            case ROLE:
                result = (T) new RDerSchema();
                break;
            case MEMBERSHIP:
                result = (T) new MDerSchema();
                break;
        }
View Full Code Here

    }

    @Test
    public void saveRDerAttribute()
            throws ClassNotFoundException {
        RDerSchema deriveddata = derSchemaDAO.find("rderiveddata", RDerSchema.class);
        assertNotNull(deriveddata);

        SyncopeRole owner = roleDAO.find(1L);
        assertNotNull("did not get expected user", owner);
View Full Code Here

        assertTrue(value.endsWith("[]"));
    }

    @Test
    public void issueSYNCOPE134Role() {
        RDerSchema sderived = new RDerSchema();
        sderived.setName("sderived");
        sderived.setExpression("name");

        sderived = derSchemaDAO.save(sderived);
        derSchemaDAO.flush();

        RDerSchema actual = derSchemaDAO.find("sderived", RDerSchema.class);
        assertNotNull("expected save to work", actual);
        assertEquals(sderived, actual);

        SyncopeRole owner = roleDAO.find(7L);
        assertNotNull("did not get expected user", owner);
View Full Code Here

        switch (type) {
            case USER:
                result = (T) new UDerSchema();
                break;
            case ROLE:
                result = (T) new RDerSchema();
                break;
            case MEMBERSHIP:
                result = (T) new MDerSchema();
                break;
        }
View Full Code Here

        assertEquals(sx.getValue() + "-" + dx.getValue(), derivedAttribute.getValue(owner.getAttributes()));
    }

    @Test
    public void saveRDerAttribute() throws ClassNotFoundException {
        RDerSchema deriveddata = derSchemaDAO.find("rderiveddata", RDerSchema.class);
        assertNotNull(deriveddata);

        SyncopeRole owner = roleDAO.find(1L);
        assertNotNull("did not get expected user", owner);
View Full Code Here

        AbstractDerSchema actual = derSchemaDAO.find("cn", UDerSchema.class);
        assertNull("delete did not work", actual);

        // ------------- //

        RDerSchema rderiveddata = derSchemaDAO.find("rderiveddata", RDerSchema.class);
        assertNotNull(rderiveddata);

        derSchemaDAO.delete(rderiveddata.getName(), AttributableUtil.getInstance(AttributableType.ROLE));

        actual = derSchemaDAO.find("rderiveddata", RDerSchema.class);
        assertNull("delete did not work", actual);
    }
View Full Code Here

        assertTrue(value.endsWith("[0]"));
    }

    @Test
    public void issueSYNCOPE134Role() {
        RDerSchema sderived = new RDerSchema();
        sderived.setName("sderived");
        sderived.setExpression("name");

        sderived = derSchemaDAO.save(sderived);
        derSchemaDAO.flush();

        RDerSchema actual = derSchemaDAO.find("sderived", RDerSchema.class);
        assertNotNull("expected save to work", actual);
        assertEquals(sderived, actual);

        SyncopeRole owner = roleDAO.find(7L);
        assertNotNull("did not get expected role", owner);
View Full Code Here

        switch (type) {
            case USER:
                result = (T) new UDerSchema();
                break;
            case ROLE:
                result = (T) new RDerSchema();
                break;
            case MEMBERSHIP:
                result = (T) new MDerSchema();
                break;
            case CONFIGURATION:
View Full Code Here

TOP

Related Classes of org.apache.syncope.core.persistence.beans.role.RDerSchema

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.