cz.active24.client.fred.data.update.keyset.KeysetUpdateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fred-client Show documentation
Show all versions of fred-client Show documentation
A Java EPP client for FRED (Free Registry for ENUM and Domains)
package cz.active24.client.fred.data.update.keyset;
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 keyset update command is used to alter details of a keyset.
*
*
* - {@link KeysetUpdateRequest#id} - an nsset handle
* - {@link KeysetUpdateRequest#add} - a list of items that will be added to this keyset, see {@link KeysetAddData}d
* - {@link KeysetUpdateRequest#rem} - a list of items that will be removed from this keyset, see {@link KeysetRemData}
* - {@link KeysetUpdateRequest#chg} - the new values of keyset attributes that will be replaced by this update. Omitted attributes will remain unchanged, see {@link KeysetChangeData}
*
*
* @see FRED documentation
*/
public class KeysetUpdateRequest extends EppRequest implements Serializable, UpdateRequest {
private String id;
private KeysetAddData add;
private KeysetRemData rem;
private KeysetChangeData chg;
public KeysetUpdateRequest(String keysetId) {
setServerObjectType(ServerObjectType.KEYSET);
this.id = keysetId;
}
public String getId() {
return id;
}
protected void setId(String id) {
this.id = id;
}
public KeysetAddData getAdd() {
return add;
}
public void setAdd(KeysetAddData add) {
this.add = add;
}
public KeysetRemData getRem() {
return rem;
}
public void setRem(KeysetRemData rem) {
this.rem = rem;
}
public KeysetChangeData getChg() {
return chg;
}
public void setChg(KeysetChangeData chg) {
this.chg = chg;
}
@Override
public String toString() {
final StringBuffer sb = new StringBuffer("KeysetUpdateRequest{");
sb.append("id='").append(id).append('\'');
sb.append(", add=").append(add);
sb.append(", rem=").append(rem);
sb.append(", chg=").append(chg);
sb.append(", clientTransactionId='").append(getClientTransactionId()).append('\'');
sb.append(", serverObjectType=").append(getServerObjectType());
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy