Package org.entando.entando.aps.system.services.userprofile.model

Examples of org.entando.entando.aps.system.services.userprofile.model.UserProfile


    contact.setPublicContact(publicContact);
    return contact;
  }
 
  public IUserProfile createUserProfile(String id, String fullname, String email, Date birthdate, String lang) {
    UserProfile profile = (UserProfile) this._profileManager.getDefaultProfileType();
    profile.setId(id);
   
    MonoTextAttribute fullnameAttr = (MonoTextAttribute) profile.getAttribute("fullname");
    fullnameAttr.setSearcheable(true);
    fullnameAttr.setText(fullname);
   
    MonoTextAttribute emailAttr = (MonoTextAttribute) profile.getAttribute("email");
    emailAttr.setText(email);
   
    DateAttribute birthdateAttr = (DateAttribute) profile.getAttribute("birthdate");
    birthdateAttr.setDate(birthdate);
   
    MonoTextAttribute langAttr = (MonoTextAttribute) profile.getAttribute("language");
    langAttr.setText(lang);
   
    return profile;
  }
View Full Code Here

TOP

Related Classes of org.entando.entando.aps.system.services.userprofile.model.UserProfile

Copyright © 2018 www.massapicom. 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.