mirror of
https://github.com/google/nomulus.git
synced 2025-06-26 22:34:55 +02:00
Rename buildHistory() methods to buildHistoryEntry()
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=165707934
This commit is contained in:
parent
dedabfb076
commit
fcb554947c
6 changed files with 16 additions and 14 deletions
|
@ -141,7 +141,7 @@ public final class DomainTransferRequestFlow implements TransactionalFlow {
|
|||
eppInput.getSingleExtension(FeeTransferCommandExtension.class);
|
||||
FeesAndCredits feesAndCredits = pricingLogic.getTransferPrice(registry, targetId, now);
|
||||
validateFeeChallenge(targetId, tld, now, feeTransfer, feesAndCredits);
|
||||
HistoryEntry historyEntry = buildHistory(period, existingDomain, now);
|
||||
HistoryEntry historyEntry = buildHistoryEntry(period, existingDomain, now);
|
||||
DateTime automaticTransferTime = now.plus(registry.getAutomaticTransferLength());
|
||||
|
||||
// If the domain will be in the auto-renew grace period at the moment of transfer, the transfer
|
||||
|
@ -251,13 +251,14 @@ public final class DomainTransferRequestFlow implements TransactionalFlow {
|
|||
}
|
||||
}
|
||||
|
||||
private HistoryEntry buildHistory(Period period, DomainResource existingResource, DateTime now) {
|
||||
private HistoryEntry buildHistoryEntry(
|
||||
Period period, DomainResource existingDomain, DateTime now) {
|
||||
return historyBuilder
|
||||
.setType(HistoryEntry.Type.DOMAIN_TRANSFER_REQUEST)
|
||||
.setOtherClientId(existingResource.getCurrentSponsorClientId())
|
||||
.setOtherClientId(existingDomain.getCurrentSponsorClientId())
|
||||
.setPeriod(period)
|
||||
.setModificationTime(now)
|
||||
.setParent(Key.create(existingResource))
|
||||
.setParent(Key.create(existingDomain))
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue