Examples of RAttrTemplate


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

            final AbstractAttr attr, final AbstractNormalSchema schema) {

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

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

                LOG.info("Adding role templates to role {}", role);

                //Create normal attributes templates
                for (AbstractAttr attr : role.getAttrs()) {
                    final RAttrTemplate rAttrTemplate = new RAttrTemplate();
                    rAttrTemplate.setOwner(role);
                    LOG.info("Creating template for role normal attribute {}", attr);
                    final String schemaName = jdbcTemplate.queryForObject(
                            "SELECT schema_name FROM RAttr WHERE id = ?;", String.class, attr.getId());

                    rAttrTemplate.setSchema(schemaDAO.find(schemaName, RSchema.class));
                    newRattrTemplates.add(rAttrTemplate);
                }

                //Create derived attributes templates
                for (AbstractDerAttr derAttr : role.getDerAttrs()) {
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.