Package com.agiletec.plugins.jpaddressbook.aps.system.services.addressbook.model

Examples of com.agiletec.plugins.jpaddressbook.aps.system.services.addressbook.model.ContactRecord


 
  @Override
  public IContact getContact(String contactKey) throws ApsSystemException {
    Contact contact = null;
    try {
      ContactRecord contactVo = (ContactRecord) this.getAddressBookDAO().loadEntityRecord(contactKey);
      if (contactVo != null) {
        IUserProfile profile = (IUserProfile) this.createEntityFromXml(contactVo.getTypeCode(), contactVo.getXml());
        contact = new Contact(profile);
        contact.setId(contactVo.getId());
        contact.setOwner(contactVo.getOwner());
        contact.setPublicContact(contactVo.isPublicContact());
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getContact");
      throw new ApsSystemException("Errore recupero getContact", t);
    }
View Full Code Here


    return GET_CONTACT_VO;
  }
 
  @Override
  public ApsEntityRecord createEntityRecord(ResultSet res) throws Throwable {
    ContactRecord contact = new ContactRecord();
    contact.setId(res.getString("contactkey"));
    contact.setTypeCode(res.getString("profiletype"));
    contact.setXml(res.getString("contactxml"));
    contact.setOwner(res.getString("contactowner"));
    contact.setPublicContact(res.getInt("publiccontact") == 1);
    return contact;
  }
View Full Code Here

    return query.toString();
  }
 
  @Override
  protected ApsEntityRecord createRecord(ResultSet result) throws Throwable {
    ContactRecord contact = new ContactRecord();
    contact.setId(result.getString("contactkey"));
    contact.setXml(result.getString("xml"));
    contact.setTypeCode(result.getString("profiletype"));
    contact.setOwner(result.getString("contactowner"));
    contact.setPublicContact(result.getInt("publiccontact") == 1);
    return contact;
  }
View Full Code Here

        "name surname", "indirizzoemail@inesistente.itt", birthdate, "it");
    Contact contact = this._helper.createContact("1", "editorCoach", true, profile);
    try {
      // Aggiunta contatto
      this._addressBookDAO.addContact(contact);
      ContactRecord record = (ContactRecord) this._addressBookDAO.loadEntityRecord(contact.getId());
      this.compareContacts(contact, record);
     
      // Modifica contatto
      Date newBirthdate = this._helper.setBirthdate(1964, 07, 01);
      IUserProfile modifiedProfile = this._helper.createUserProfile("supervisorCoach",
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpaddressbook.aps.system.services.addressbook.model.ContactRecord

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.