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 Link icon

    • ConsoleDomainActionType Link icon

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

    • getXmlContentsToRun Link icon

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

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

      public abstract ConsoleUpdateHistory.Type getConsoleUpdateHistoryType()
      Returns the type of history / audit logging object to save.
    • getXmlTemplate Link icon

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

      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.