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

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


                    getAttrTemplate(RVirAttrTemplate.class, virSchema.getName());
            if (template != null) {
                ((RVirAttr) virAttr).setTemplate(template);
            }
        } else if (virAttr instanceof MVirAttr) {
            MVirAttrTemplate template =
                    ((Membership) attributable).getSyncopeRole().
                    getAttrTemplate(MVirAttrTemplate.class, virSchema.getName());
            if (template != null) {
                ((MVirAttr) virAttr).setTemplate(template);
            }
View Full Code Here


                    newMDerattrTemplates.add(mDerattrTemplate);
                }

                //Create virtual attributes templates
                for (AbstractVirAttr mVirAttr : membership.getVirAttrs()) {
                    final MVirAttrTemplate mVirattrTemplate = new MVirAttrTemplate();
                    mVirattrTemplate.setOwner(membership.getSyncopeRole());
                    final String virSchemaName = jdbcTemplate.queryForObject(
                            "SELECT VIRTUALSCHEMA_NAME FROM MVirAttr WHERE id = ?;", String.class, mVirAttr.getId());

                    mVirattrTemplate.setSchema(virSchemaDAO.find(virSchemaName, MVirSchema.class));
                    newMVirattrTemplates.add(mVirattrTemplate);
                }
                membership.setAttrs(newMattrs);
                membership.setDerAttrs(newMDerattrs);
                membership.setVirAttrs(newMVirattrs);
View Full Code Here

TOP

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

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.