Examples of RVirAttrTemplate


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

            final AbstractVirAttr virAttr, final AbstractVirSchema virSchema) {

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

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

                    newRDerattrTemplates.add(rDerattrTemplate);
                }

                //Create virtual attributes templates
                for (AbstractVirAttr virAttr : role.getVirAttrs()) {
                    final RVirAttrTemplate rVirattrTemplate = new RVirAttrTemplate();
                    rVirattrTemplate.setOwner(role);
                    LOG.info("Creating template for role virtual attribute {}", virAttr);
                    final String virSchemaName = jdbcTemplate.queryForObject(
                            "SELECT VIRTUALSCHEMA_NAME FROM RVirAttr WHERE id = ?;", String.class, virAttr.getId());
                    rVirattrTemplate.setSchema(virSchemaDAO.find(virSchemaName, RVirSchema.class));
                    newRVirattrTemplates.add(rVirattrTemplate);
                }
                role.setAttrs(newRattrs);
                role.setDerAttrs(newRDerattrs);
                role.setVirAttrs(newRVirattrs);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.