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

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


        switch (type) {
            case USER:
                result = (T) new USchema();
                break;
            case ROLE:
                result = (T) new RSchema();
                break;
            case MEMBERSHIP:
                result = (T) new MSchema();
                break;
        }
View Full Code Here


        schemaDAO.save(attributeSchema);
    }

    @Test
    public void checkForEnumType() {
        RSchema schema = new RSchema();
        schema.setType(AttributeSchemaType.Enum);
        schema.setName("color");

        Exception ex = null;
        try {
            schemaDAO.save(schema);
        } catch (Exception e) {
            ex = e;
        }
        assertNotNull(ex);

        schema.setEnumerationValues("red" + AbstractSchema.enumValuesSeparator + "yellow");
        schema.setEnumerationKeys("1" + AbstractSchema.enumValuesSeparator + "2");

        schemaDAO.save(schema);

        RSchema actual = schemaDAO.find(schema.getName(), RSchema.class);
        assertNotNull(actual);
        assertNotNull(actual.getEnumerationKeys());
        assertFalse(actual.getEnumerationKeys().isEmpty());
    }
View Full Code Here

        schemaDAO.save(attributeSchema);
    }

    @Test
    public void checkForEnumType() {
        RSchema schema = new RSchema();
        schema.setType(AttributeSchemaType.Enum);
        schema.setName("color");

        Exception ex = null;
        try {
            schemaDAO.save(schema);
        } catch (Exception e) {
            ex = e;
        }
        assertNotNull(ex);

        schema.setEnumerationValues("red" + AbstractSchema.enumValuesSeparator + "yellow");
        schema.setEnumerationKeys("1" + AbstractSchema.enumValuesSeparator + "2");

        schemaDAO.save(schema);

        RSchema actual = schemaDAO.find(schema.getName(), RSchema.class);
        assertNotNull(actual);
        assertNotNull(actual.getEnumerationKeys());
        assertFalse(actual.getEnumerationKeys().isEmpty());
    }
View Full Code Here

        switch (type) {
            case USER:
                result = (T) new USchema();
                break;
            case ROLE:
                result = (T) new RSchema();
                break;
            case MEMBERSHIP:
                result = (T) new MSchema();
                break;
        }
View Full Code Here

        switch (type) {
            case USER:
                result = (T) new USchema();
                break;
            case ROLE:
                result = (T) new RSchema();
                break;
            case MEMBERSHIP:
                result = (T) new MSchema();
                break;
        }
View Full Code Here

        schemaDAO.save(attributeSchema);
    }

    @Test
    public void checkForEnumType() {
        RSchema schema = new RSchema();
        schema.setType(AttributeSchemaType.Enum);
        schema.setName("color");

        Exception ex = null;
        try {
            schemaDAO.save(schema);
        } catch (Exception e) {
            ex = e;
        }
        assertNotNull(ex);

        schema.setEnumerationValues("red" + AbstractSchema.enumValuesSeparator + "yellow");
        schema.setEnumerationKeys("1" + AbstractSchema.enumValuesSeparator + "2");

        schemaDAO.save(schema);

        RSchema actual = schemaDAO.find(schema.getName(), RSchema.class);
        assertNotNull(actual);
        assertNotNull(actual.getEnumerationKeys());
        assertFalse(actual.getEnumerationKeys().isEmpty());
    }
View Full Code Here

        schemaDAO.save(attributeSchema);
    }

    @Test
    public void checkForEnumType() {
        RSchema schema = new RSchema();
        schema.setType(SchemaType.Enum);
        schema.setName("color");

        Exception ex = null;
        try {
            schemaDAO.save(schema);
        } catch (Exception e) {
            ex = e;
        }
        assertNotNull(ex);

        schema.setEnumerationValues("red" + AbstractSchema.enumValuesSeparator + "yellow");
        schema.setEnumerationKeys("1" + AbstractSchema.enumValuesSeparator + "2");

        schemaDAO.save(schema);

        RSchema actual = schemaDAO.find(schema.getName(), RSchema.class);
        assertNotNull(actual);
        assertNotNull(actual.getEnumerationKeys());
        assertFalse(actual.getEnumerationKeys().isEmpty());
    }
View Full Code Here

        switch (type) {
            case USER:
                result = (T) new USchema();
                break;
            case ROLE:
                result = (T) new RSchema();
                break;
            case MEMBERSHIP:
                result = (T) new MSchema();
                break;
        }
View Full Code Here

        schemaDAO.save(attributeSchema);
    }

    @Test
    public void checkForEnumType() {
        RSchema schema = new RSchema();
        schema.setType(SchemaType.Enum);
        schema.setName("color");

        Exception ex = null;
        try {
            schemaDAO.save(schema);
        } catch (Exception e) {
            ex = e;
        }
        assertNotNull(ex);

        schema.setEnumerationValues("red" + AbstractSchema.enumValuesSeparator + "yellow");
        schema.setEnumerationKeys("1" + AbstractSchema.enumValuesSeparator + "2");

        schemaDAO.save(schema);

        RSchema actual = schemaDAO.find(schema.getName(), RSchema.class);
        assertNotNull(actual);
        assertNotNull(actual.getEnumerationKeys());
        assertFalse(actual.getEnumerationKeys().isEmpty());
    }
View Full Code Here

        schemaDAO.save(schema);
    }

    @Test
    public void checkForEnumType() {
        RSchema schema = new RSchema();
        schema.setType(AttributeSchemaType.Enum);
        schema.setName("color");

        Exception ex = null;
        try {
            schemaDAO.save(schema);
        } catch (Exception e) {
            ex = e;
        }
        assertNotNull(ex);

        schema.setEnumerationValues("red" + SyncopeConstants.ENUM_VALUES_SEPARATOR + "yellow");
        schema.setEnumerationKeys("1" + SyncopeConstants.ENUM_VALUES_SEPARATOR + "2");

        schemaDAO.save(schema);

        RSchema actual = schemaDAO.find(schema.getName(), RSchema.class);
        assertNotNull(actual);
        assertNotNull(actual.getEnumerationKeys());
        assertFalse(actual.getEnumerationKeys().isEmpty());
    }
View Full Code Here

TOP

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

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.