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

Examples of org.apache.syncope.core.persistence.beans.membership.MAttrTemplate


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

        MSchema actualSchema = schemaDAO.save(schema);
        assertNotNull(actualSchema);

        MAttrTemplate template = new MAttrTemplate();
        template.setSchema(actualSchema);
        membership.getSyncopeRole().getAttrTemplates(MAttrTemplate.class).add(template);

        MAttr attr = new MAttr();
        attr.setTemplate(template);
        attr.setOwner(membership);
View Full Code Here


                    getAttrTemplate(RAttrTemplate.class, schema.getName());
            if (template != null) {
                ((RAttr) attr).setTemplate(template);
            }
        } else if (attr instanceof MAttr) {
            MAttrTemplate template = ((Membership) attributable).getSyncopeRole().
                    getAttrTemplate(MAttrTemplate.class, schema.getName());
            if (template != null) {
                ((MAttr) attr).setTemplate(template);
            }
        }
View Full Code Here

                LOG.info("Adding template to membership {}", membership);

                //Create normal attributes templates
                for (AbstractAttr attr : membership.getAttrs()) {
                    final MAttrTemplate mAttrTemplate = new MAttrTemplate();
                    mAttrTemplate.setOwner(membership.getSyncopeRole());
                    final String schemaName = jdbcTemplate.queryForObject(
                            "SELECT schema_name FROM MAttr WHERE id = ?;", String.class, attr.getId());

                    mAttrTemplate.setSchema(schemaDAO.find(schemaName, MSchema.class));
                    newMattrTemplates.add(mAttrTemplate);
                }

                //Create derived attributes templates
                for (AbstractDerAttr mDerAttr : membership.getDerAttrs()) {
View Full Code Here

TOP

Related Classes of org.apache.syncope.core.persistence.beans.membership.MAttrTemplate

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.