Add otherClientId to HistoryEntry

This CL adds an otherClientId field to be populated on domain transfers with client ID of the other end of the transaction (losing registrar for requests and cancels, gaining registrar for approves and rejects). This will be used for reporting in compliance with specification 3 of the ICANN registry agreement.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=143775945
This commit is contained in:
Ben Kelsey 2017-01-06 08:17:24 -08:00 committed by Ben McIlwain
parent 25a8bbe890
commit 44972b916a
11 changed files with 49 additions and 3 deletions

View file

@ -103,6 +103,15 @@ public class HistoryEntry extends ImmutableObject implements Buildable {
@Index
String clientId;
/**
* For transfers, the id of the other registrar.
*
* <p>For requests and cancels, the other registrar is the losing party (because the registrar
* sending the EPP transfer command is the gaining party). For approves and rejects, the other
* registrar is the gaining party.
*/
String otherClientId;
/** Transaction id that made this change. */
Trid trid;
@ -139,6 +148,10 @@ public class HistoryEntry extends ImmutableObject implements Buildable {
return clientId;
}
public String getOtherClientId() {
return otherClientId;
}
public Trid getTrid() {
return trid;
}
@ -203,6 +216,11 @@ public class HistoryEntry extends ImmutableObject implements Buildable {
return this;
}
public Builder setOtherClientId(String otherClientId) {
getInstance().otherClientId = otherClientId;
return this;
}
public Builder setTrid(Trid trid) {
getInstance().trid = trid;
return this;