Package google.registry.tools
Class ResaveEntitiesCommand
- java.lang.Object
-
- google.registry.tools.ConfirmingCommand
-
- google.registry.tools.MutatingCommand
-
- google.registry.tools.ResaveEntitiesCommand
-
- All Implemented Interfaces:
Command
,CommandWithRemoteApi
public final class ResaveEntitiesCommand extends MutatingCommand
A command to load and resave an entity by websafe key.This triggers @OnSave changes. If the entity was directly edited in the Datastore viewer, this can be used to make sure that the commit logs reflect the new state.
-
-
Constructor Summary
Constructors Constructor Description ResaveEntitiesCommand()
-
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, stageEntityChange
-
Methods inherited from class google.registry.tools.ConfirmingCommand
checkExecutionState, dontRunCommand, postExecute, run
-
-
-
-
Method Detail
-
init
protected void init()
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
-
-