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;
}