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

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


            final AbstractDerAttr derAttr, final AbstractDerSchema derSchema) {

        if (derAttr instanceof UDerAttr) {
            ((UDerAttr) derAttr).setSchema((UDerSchema) derSchema);
        } else if (derAttr instanceof RDerAttr) {
            RDerAttrTemplate template = ((SyncopeRole) attributable).
                    getAttrTemplate(RDerAttrTemplate.class, derSchema.getName());
            if (template != null) {
                ((RDerAttr) derAttr).setTemplate(template);
            }
        } else if (derAttr instanceof MDerAttr) {
View Full Code Here


        assertEquals(sderived, actual);

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

        RDerAttrTemplate template = new RDerAttrTemplate();
        template.setSchema(sderived);
        owner.getAttrTemplates(RDerAttrTemplate.class).add(template);

        RDerAttr derAttr = new RDerAttr();
        derAttr.setOwner(owner);
        derAttr.setTemplate(owner.getAttrTemplate(RDerAttrTemplate.class, sderived.getName()));
View Full Code Here

                    newRattrTemplates.add(rAttrTemplate);
                }

                //Create derived attributes templates
                for (AbstractDerAttr derAttr : role.getDerAttrs()) {
                    final RDerAttrTemplate rDerattrTemplate = new RDerAttrTemplate();
                    rDerattrTemplate.setOwner(role);
                    LOG.info("Creating template for role derived attribute {}", derAttr);
                    final String derSchemaName = jdbcTemplate.queryForObject(
                            "SELECT DERIVEDSCHEMA_NAME FROM RDerAttr WHERE id = ?;", String.class, derAttr.getId());

                    rDerattrTemplate.setSchema(derSchemaDAO.find(derSchemaName, RDerSchema.class));
                    newRDerattrTemplates.add(rDerattrTemplate);
                }

                //Create virtual attributes templates
                for (AbstractVirAttr virAttr : role.getVirAttrs()) {
View Full Code Here

TOP

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

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.