Package google.registry.tools
Class CreatePackagePromotionCommand
- java.lang.Object
-
- google.registry.tools.ConfirmingCommand
-
- google.registry.tools.MutatingCommand
-
- google.registry.tools.CreatePackagePromotionCommand
-
- All Implemented Interfaces:
Command
public final class CreatePackagePromotionCommand extends MutatingCommand
Command to create a PackagePromotion
-
-
Constructor Summary
Constructors Constructor Description CreatePackagePromotionCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
init()
Initializes the command.-
Methods inherited from class google.registry.tools.MutatingCommand
execute, flushTransaction, getChangedEntities, postBatchExecute, prompt, stageEntityChange
-
Methods inherited from class google.registry.tools.ConfirmingCommand
checkExecutionState, dontRunCommand, postExecute, run
-
-
-
-
Method Detail
-
init
protected final void init() throws java.lang.Exception
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.lang.Exception
-
-