Record domain transaction for DomainRestoreFlow

This is the first of many cls adding explicit logging in all our domain mutation flows to facilitate transaction reporting.

Restores are relatively simple- it happens immediately, so the reporting time is just the time of the HistoryEntry, and we add a single "RESTORED_DOMAINS" count of 1.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=165639084
This commit is contained in:
larryruili 2017-08-17 15:35:38 -07:00 committed by Ben McIlwain
parent bf383081ce
commit 2fe82921a7
3 changed files with 35 additions and 0 deletions

View file

@ -130,6 +130,10 @@ public class DomainTransactionRecord extends ImmutableObject implements Buildabl
return tld;
}
public Set<TransactionFieldAmount> getTransactionFieldAmounts() {
return transactionFieldAmounts;
}
@Override
public Builder asBuilder() {
return new Builder(clone(this));