Package google.registry.tools
Class UpdateTldCommand
- java.lang.Object
-
- google.registry.tools.ConfirmingCommand
-
- google.registry.tools.MutatingCommand
-
- google.registry.tools.UpdateTldCommand
-
- All Implemented Interfaces:
Command
public class UpdateTldCommand extends MutatingCommand
Command to update a TLD.
-
-
Field Summary
-
Fields inherited from class google.registry.tools.ConfirmingCommand
errorPrintStream, printStream
-
-
Constructor Summary
Constructors Constructor Description UpdateTldCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
execute()
Performs the command and returns a result description.protected void
init()
Initializes the command.protected void
initTldCommand()
-
Methods inherited from class google.registry.tools.MutatingCommand
flushTransaction, getChangedEntities, postBatchExecute, prompt, stageEntityChange
-
Methods inherited from class google.registry.tools.ConfirmingCommand
checkExecutionState, dontRunCommand, postExecute, run
-
-
-
-
Method Detail
-
initTldCommand
protected void initTldCommand()
-
init
protected final void init() throws java.io.UnsupportedEncodingException
Description copied from class:MutatingCommand
Initializes the command.Subclasses override this method to populate
MutatingCommand.changedEntitiesMap
with updated entities. The old entity is the key and the new entity is the value; the key is null for newly created entities and the value is null for deleted entities.- Specified by:
init
in classMutatingCommand
- Throws:
java.io.UnsupportedEncodingException
-
execute
public java.lang.String execute() throws java.lang.Exception
Description copied from class:MutatingCommand
Performs the command and returns a result description.Subclasses can override this method if the command does something besides update entities, such as running a full flow.
- Overrides:
execute
in classMutatingCommand
- Throws:
java.lang.Exception
-
-