Class LockOrUnlockDomainCommand

java.lang.Object
google.registry.tools.ConfirmingCommand
google.registry.tools.LockOrUnlockDomainCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
LockDomainCommand, UnlockDomainCommand

public abstract class LockOrUnlockDomainCommand extends ConfirmingCommand
Shared base class for commands to registry lock or unlock a domain via EPP.
  • Field Details

    • REGISTRY_LOCK_STATUSES

      public static final com.google.common.collect.ImmutableSet<StatusValue> REGISTRY_LOCK_STATUSES
  • Constructor Details

    • LockOrUnlockDomainCommand

      public LockOrUnlockDomainCommand()
  • Method Details

    • getDomains

      protected com.google.common.collect.ImmutableSet<String> getDomains()
    • init

      protected void init()
      Description copied from class: ConfirmingCommand
      Initializes the command.
      Overrides:
      init in class ConfirmingCommand
    • execute

      protected String execute()
      Description copied from class: ConfirmingCommand
      Perform the command and return a result description.
      Specified by:
      execute in class ConfirmingCommand
    • createAndApplyRequest

      protected abstract void createAndApplyRequest(String domain)