Class ConsoleDomainActionType

java.lang.Object
google.registry.ui.server.console.domains.ConsoleDomainActionType
Direct Known Subclasses:
ConsoleBulkDomainDeleteActionType, ConsoleBulkDomainSuspendActionType, ConsoleBulkDomainUnsuspendActionType

public abstract class ConsoleDomainActionType extends Object
A type of EPP action to perform on domain(s), run by the ConsoleBulkDomainAction.

Each ConsoleDomainActionType.BulkAction defines the class that extends that action, including the EPP XML that will be run and the permission required.

  • Constructor Details

    • ConsoleDomainActionType

      public ConsoleDomainActionType(com.google.gson.JsonElement jsonElement)
  • Method Details

    • getXmlContentsToRun

      public String getXmlContentsToRun(String domainName)
      Returns the full XML representing this action, including all substitutions.
    • getNecessaryPermission

      public abstract ConsolePermission getNecessaryPermission()
      Returns the permission necessary to successfully perform this action.
    • getXmlTemplate

      protected abstract String getXmlTemplate()
      Returns the XML template contents for this action.
    • fillSubstitutions

      protected String fillSubstitutions(String xmlTemplate, String domainName)
      Fills out the default set of substitutions in the provided XML template.

      Override this method if non-default substitutions are required.