All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.active24.client.fred.data.update.contact.ContactUpdateRequest Maven / Gradle / Ivy

There is a newer version: 2.50
Show newest version
package cz.active24.client.fred.data.update.contact;

import cz.active24.client.fred.data.EppRequest;
import cz.active24.client.fred.data.update.UpdateRequest;
import cz.active24.client.fred.eppclient.objectstrategy.ServerObjectType;

import java.io.Serializable;

/**
 * A contact update command is used to alter details of a contact.
 *
 * 
    *
  • {@link ContactUpdateRequest#id} - the contact handle
  • *
  • {@link ContactUpdateRequest#chg} - comprises the new values of contact attributes that will be changed by this * update. Omitted attributes will remain unchanged. See {@link ContactChangeData}
  • *
  • {@link ContactUpdateRequest#extraAddressUpdateData} - change mailing address extension
  • *
* * @see FRED documentation */ public class ContactUpdateRequest extends EppRequest implements Serializable, UpdateRequest { private String id; private ContactChangeData chg; private ExtraAddressUpdateData extraAddressUpdateData; public ContactUpdateRequest(String contactId) { setServerObjectType(ServerObjectType.CONTACT); this.setId(contactId); } public String getId() { return id; } protected void setId(String id) { this.id = id; } public ContactChangeData getChg() { return chg; } public void setChg(ContactChangeData chg) { this.chg = chg; } public ExtraAddressUpdateData getExtraAddressUpdateData() { return extraAddressUpdateData; } public void setExtraAddressUpdateData(ExtraAddressUpdateData extraAddressUpdateData) { this.extraAddressUpdateData = extraAddressUpdateData; } @Override public String toString() { final StringBuffer sb = new StringBuffer("ContactUpdateRequest{"); sb.append("id='").append(id).append('\''); sb.append(", chg=").append(chg); sb.append(", extraAddressUpdateData=").append(extraAddressUpdateData); sb.append(", clientTransactionId='").append(getClientTransactionId()).append('\''); sb.append(", serverObjectType=").append(getServerObjectType()); sb.append('}'); return sb.toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy