mirror of
https://github.com/google/nomulus.git
synced 2025-07-12 14:08:18 +02:00
Rename a few soy files for consistency (#1223)
* Rename a few soy files for consistency This prefers the ResourceAction.soy naming convention for .soy files that contain EPP XMLs so that they match the name of the corresponding EPP flow. E.g. DomainDelete.soy now matches DomainDeleteFlow.java
This commit is contained in:
parent
9a22968ec5
commit
2e1e8d5b5f
6 changed files with 6 additions and 6 deletions
|
@ -17,7 +17,7 @@ package google.registry.tools;
|
|||
import com.beust.jcommander.Parameter;
|
||||
import com.beust.jcommander.Parameters;
|
||||
import com.google.template.soy.data.SoyMapData;
|
||||
import google.registry.tools.soy.DeleteDomainSoyInfo;
|
||||
import google.registry.tools.soy.DomainDeleteSoyInfo;
|
||||
|
||||
/** A command to delete a domain via EPP. */
|
||||
@Parameters(separators = " =", commandDescription = "Delete domain")
|
||||
|
@ -60,7 +60,7 @@ final class DeleteDomainCommand extends MutatingEppToolCommand {
|
|||
// Immediate deletion is accomplished using the superuser extension.
|
||||
superuser = true;
|
||||
}
|
||||
setSoyTemplate(DeleteDomainSoyInfo.getInstance(), DeleteDomainSoyInfo.DELETEDOMAIN);
|
||||
setSoyTemplate(DomainDeleteSoyInfo.getInstance(), DomainDeleteSoyInfo.DELETEDOMAIN);
|
||||
addSoyRecord(clientId, new SoyMapData(
|
||||
"domainName", domainName,
|
||||
"immediately", immediately,
|
||||
|
|
|
@ -17,7 +17,7 @@ package google.registry.tools;
|
|||
import com.beust.jcommander.Parameter;
|
||||
import com.beust.jcommander.Parameters;
|
||||
import com.google.template.soy.data.SoyMapData;
|
||||
import google.registry.tools.soy.DeleteHostSoyInfo;
|
||||
import google.registry.tools.soy.HostDeleteSoyInfo;
|
||||
|
||||
/** A command to delete a host via EPP. */
|
||||
@Parameters(separators = " =", commandDescription = "Delete host")
|
||||
|
@ -49,7 +49,7 @@ final class DeleteHostCommand extends MutatingEppToolCommand {
|
|||
|
||||
@Override
|
||||
protected void initMutatingEppToolCommand() {
|
||||
setSoyTemplate(DeleteHostSoyInfo.getInstance(), DeleteHostSoyInfo.DELETEHOST);
|
||||
setSoyTemplate(HostDeleteSoyInfo.getInstance(), HostDeleteSoyInfo.DELETEHOST);
|
||||
addSoyRecord(clientId, new SoyMapData(
|
||||
"hostName", hostName,
|
||||
"reason", reason,
|
||||
|
|
|
@ -25,7 +25,7 @@ import com.beust.jcommander.Parameters;
|
|||
import com.google.common.base.Joiner;
|
||||
import com.google.template.soy.data.SoyMapData;
|
||||
import google.registry.model.domain.DomainBase;
|
||||
import google.registry.tools.soy.RenewDomainSoyInfo;
|
||||
import google.registry.tools.soy.DomainRenewSoyInfo;
|
||||
import google.registry.util.Clock;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
@ -68,7 +68,7 @@ final class RenewDomainCommand extends MutatingEppToolCommand {
|
|||
Optional<DomainBase> domainOptional =
|
||||
loadByForeignKey(DomainBase.class, domainName, now);
|
||||
checkArgumentPresent(domainOptional, "Domain '%s' does not exist or is deleted", domainName);
|
||||
setSoyTemplate(RenewDomainSoyInfo.getInstance(), RenewDomainSoyInfo.RENEWDOMAIN);
|
||||
setSoyTemplate(DomainRenewSoyInfo.getInstance(), DomainRenewSoyInfo.RENEWDOMAIN);
|
||||
DomainBase domain = domainOptional.get();
|
||||
addSoyRecord(
|
||||
isNullOrEmpty(clientId) ? domain.getCurrentSponsorClientId() : clientId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue