Package com.agiletec.aps.system.common.entity.model.attribute

Examples of com.agiletec.aps.system.common.entity.model.attribute.MonoTextAttribute


  }
 
  private void insertTestUserProfile(String username) throws Exception {
    IUserProfile profile = _userProfileManager.getDefaultProfileType();
    profile.setId(username);
    MonoTextAttribute fullnameAttr = (MonoTextAttribute) profile.getAttribute("fullname");
    fullnameAttr.setText("nametest surnametest");
    MonoTextAttribute emailAttr = (MonoTextAttribute) profile.getAttribute("email");
    emailAttr.setText(JpUserRegTestHelper.EMAIL);
    DateAttribute dateAttr = (DateAttribute) profile.getAttribute("birthdate");
    dateAttr.setDate(this.getBirthdate(1985, 11, 21));
    MonoTextAttribute languageAttr = (MonoTextAttribute) profile.getAttribute("language");
    languageAttr.setText("en");
    _userRegManager.regAccount(profile);
  }
View Full Code Here


  }
 
  private void insertTestProfile(String username) throws Exception {
    IUserProfile profile = _userProfileManager.getDefaultProfileType();
    profile.setId(username);
    MonoTextAttribute fullnameAttr = (MonoTextAttribute) profile.getAttribute("fullname");
    fullnameAttr.setText("name surname");
    MonoTextAttribute emailAttr = (MonoTextAttribute) profile.getAttribute("email");
    emailAttr.setText(JpUserRegTestHelper.EMAIL);
    DateAttribute dateAttr = (DateAttribute) profile.getAttribute("birthdate");
    dateAttr.setDate(this.getBirthdate(1985, 11, 21));
    MonoTextAttribute languageAttr = (MonoTextAttribute) profile.getAttribute("language");
    languageAttr.setText("en");
    this._regAccountManager.regAccount(profile);
  }
View Full Code Here

      if(JpaddressbookSystemConstants.ATTRIBUTE_TYPE_LONGTEXT.equals(attributeType)){
        TextAttribute textAttribute = (TextAttribute) attribute;
        attributeValue = textAttribute.getText();
      }
      if(JpaddressbookSystemConstants.ATTRIBUTE_TYPE_MONOTEXT.equals(attributeType)){
        MonoTextAttribute mono = (MonoTextAttribute) attribute;
        attributeValue = mono.getText();
      }
      if(JpaddressbookSystemConstants.ATTRIBUTE_TYPE_NUMBER.equals(attributeType)){
        NumberAttribute numberattribute = (NumberAttribute) attribute;
        attributeValue = numberattribute.getNumber();
      }
View Full Code Here

 
  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 com.agiletec.aps.system.common.entity.model.attribute.MonoTextAttribute

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.