Search in sources :

Example 1 with AbstractTextAttribute

use of com.agiletec.aps.system.common.entity.model.attribute.AbstractTextAttribute in project entando-core by entando.

the class JAXBUserProfile method valorizeTextAttribute.

private void valorizeTextAttribute(String attributeName, String value, IUserProfile profile) {
    if (null == attributeName || value == null) {
        return;
    }
    AttributeInterface attribute = (AttributeInterface) profile.getAttribute(attributeName);
    if (null == attribute || !(attribute instanceof AbstractTextAttribute)) {
        return;
    }
    AbstractTextAttribute textAttribute = (AbstractTextAttribute) attribute;
    textAttribute.setText(value, null);
}
Also used : AbstractTextAttribute(com.agiletec.aps.system.common.entity.model.attribute.AbstractTextAttribute) AttributeInterface(com.agiletec.aps.system.common.entity.model.attribute.AttributeInterface)

Aggregations

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