Search in sources :

Example 1 with MonoTextAttributeHandler

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

the class UserProfileManagerTest method createFakeProfile.

private IApsEntity createFakeProfile(String defaultProfileTypeCode) {
    UserProfile userProfile = new UserProfile();
    MonoTextAttribute monoTextAttribute = new MonoTextAttribute();
    monoTextAttribute.setName("Name");
    monoTextAttribute.setHandler(new MonoTextAttributeHandler());
    userProfile.addAttribute(monoTextAttribute);
    userProfile.setTypeCode(defaultProfileTypeCode);
    return userProfile;
}
Also used : UserProfile(org.entando.entando.aps.system.services.userprofile.model.UserProfile) IUserProfile(org.entando.entando.aps.system.services.userprofile.model.IUserProfile) MonoTextAttributeHandler(com.agiletec.aps.system.common.entity.parse.attribute.MonoTextAttributeHandler) MonoTextAttribute(com.agiletec.aps.system.common.entity.model.attribute.MonoTextAttribute)

Aggregations

MonoTextAttribute (com.agiletec.aps.system.common.entity.model.attribute.MonoTextAttribute)1 MonoTextAttributeHandler (com.agiletec.aps.system.common.entity.parse.attribute.MonoTextAttributeHandler)1 IUserProfile (org.entando.entando.aps.system.services.userprofile.model.IUserProfile)1 UserProfile (org.entando.entando.aps.system.services.userprofile.model.UserProfile)1