Search in sources :

Example 1 with ExtraAttributeLoader

use of com.agiletec.aps.system.common.entity.loader.ExtraAttributeLoader in project entando-core by entando.

the class EntityTypeDOM method initDom.

protected Document initDom(String xml, String entityManagerName) throws ApsSystemException {
    if (null != entityManagerName) {
        ExtraAttributeLoader loader = new ExtraAttributeLoader();
        Map<String, AttributeInterface> extraAttributes = loader.extractAttributes(this.getBeanFactory(), entityManagerName);
        if (null != extraAttributes) {
            this.getAttributeTypes().putAll(extraAttributes);
        }
    }
    this.setEntityManagerName(entityManagerName);
    return this.decodeDOM(xml);
}
Also used : ExtraAttributeLoader(com.agiletec.aps.system.common.entity.loader.ExtraAttributeLoader) AttributeInterface(com.agiletec.aps.system.common.entity.model.attribute.AttributeInterface)

Aggregations

ExtraAttributeLoader (com.agiletec.aps.system.common.entity.loader.ExtraAttributeLoader)1 AttributeInterface (com.agiletec.aps.system.common.entity.model.attribute.AttributeInterface)1