Package google.registry.tools
Class LockOrUnlockDomainCommand
- java.lang.Object
-
- google.registry.tools.ConfirmingCommand
-
- google.registry.tools.LockOrUnlockDomainCommand
-
- All Implemented Interfaces:
Command
,CommandWithRemoteApi
- Direct Known Subclasses:
LockDomainCommand
,UnlockDomainCommand
public abstract class LockOrUnlockDomainCommand extends ConfirmingCommand implements CommandWithRemoteApi
Shared base class for commands to registry lock or unlock a domain via EPP.
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.collect.ImmutableSet<StatusValue>
REGISTRY_LOCK_STATUSES
-
Constructor Summary
Constructors Constructor Description LockOrUnlockDomainCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
createAndApplyRequest(java.lang.String domain)
protected java.lang.String
execute()
Perform the command and return a result description.protected com.google.common.collect.ImmutableSet<java.lang.String>
getDomains()
protected void
init()
Initializes the command.-
Methods inherited from class google.registry.tools.ConfirmingCommand
checkExecutionState, dontRunCommand, postExecute, prompt, run
-
-
-
-
Field Detail
-
REGISTRY_LOCK_STATUSES
public static final com.google.common.collect.ImmutableSet<StatusValue> REGISTRY_LOCK_STATUSES
-
-
Method Detail
-
getDomains
protected com.google.common.collect.ImmutableSet<java.lang.String> getDomains()
-
init
protected void init()
Description copied from class:ConfirmingCommand
Initializes the command.- Overrides:
init
in classConfirmingCommand
-
execute
protected java.lang.String execute()
Description copied from class:ConfirmingCommand
Perform the command and return a result description.- Specified by:
execute
in classConfirmingCommand
-
createAndApplyRequest
protected abstract void createAndApplyRequest(java.lang.String domain)
-
-