mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Remove unused and misused methods from EppResourceUtils and DomainBase.
The methods in DomainBase were the only callers for the methods in EppResourceUtils, so I first inlined them. Then I realized that there were no callers for loadReferencedContacts() anywhere. For loadNameservers(), all but one invocation actually wanted to load the foreign keys, and was repeating that work, so I replaced it with loadNameserverFullyQualifiedHostNames(). The last invocation, in the Rdap code, was incorrectly assuming this was an async load when in fact it blocks, so I replaced it with a real async load. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=122433897
This commit is contained in:
parent
9a2afc7a9b
commit
d9875ea302
8 changed files with 31 additions and 60 deletions
|
@ -48,7 +48,6 @@ import google.registry.model.domain.launch.LaunchNotice;
|
|||
import google.registry.model.domain.secdns.DelegationSignerData;
|
||||
import google.registry.model.eppinput.EppInput;
|
||||
import google.registry.model.eppinput.EppInput.ResourceCommandWrapper;
|
||||
import google.registry.model.host.HostResource;
|
||||
import google.registry.model.reporting.HistoryEntry;
|
||||
import google.registry.model.smd.SignedMark;
|
||||
import google.registry.tools.soy.DomainAllocateSoyInfo;
|
||||
|
@ -146,13 +145,7 @@ final class AllocateDomainCommand extends MutatingEppToolCommand {
|
|||
addSoyRecord(application.getCurrentSponsorClientId(), new SoyMapData(
|
||||
"name", application.getFullyQualifiedDomainName(),
|
||||
"period", period.getValue(),
|
||||
"nameservers", FluentIterable.from(application.loadNameservers())
|
||||
.transform(new Function<HostResource, String>() {
|
||||
@Override
|
||||
public String apply(HostResource host) {
|
||||
return host.getForeignKey();
|
||||
}})
|
||||
.toList(),
|
||||
"nameservers", application.loadNameserverFullyQualifiedHostNames(),
|
||||
"registrant", application.loadRegistrant().getForeignKey(),
|
||||
"contacts", contactsMapBuilder.build(),
|
||||
"authInfo", application.getAuthInfo().getPw().getValue(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue