public abstract class AbstractSetBatchStateCmd extends Object implements Command<Void>
Modifier and Type | Field and Description |
---|---|
protected String |
batchId |
static String |
SUSPENSION_STATE_PROPERTY |
Constructor and Description |
---|
AbstractSetBatchStateCmd(String batchId) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
checkAccess(CommandChecker checker,
BatchEntity batch) |
protected void |
checkAccess(CommandContext commandContext,
BatchEntity batch) |
protected AbstractSetJobDefinitionStateCmd |
createSetJobDefinitionStateCommand(String jobDefinitionId) |
protected abstract AbstractSetJobDefinitionStateCmd |
createSetJobDefinitionStateCommand(UpdateJobDefinitionSuspensionStateBuilderImpl builder) |
Void |
execute(CommandContext commandContext) |
protected abstract SuspensionState |
getNewSuspensionState() |
protected abstract String |
getUserOperationType() |
protected void |
logUserOperation(CommandContext commandContext) |
protected void |
setJobDefinitionState(CommandContext commandContext,
String jobDefinitionId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRetryable
public static final String SUSPENSION_STATE_PROPERTY
protected String batchId
public AbstractSetBatchStateCmd(String batchId)
public Void execute(CommandContext commandContext)
protected abstract SuspensionState getNewSuspensionState()
protected void checkAccess(CommandContext commandContext, BatchEntity batch)
protected abstract void checkAccess(CommandChecker checker, BatchEntity batch)
protected void setJobDefinitionState(CommandContext commandContext, String jobDefinitionId)
protected AbstractSetJobDefinitionStateCmd createSetJobDefinitionStateCommand(String jobDefinitionId)
protected abstract AbstractSetJobDefinitionStateCmd createSetJobDefinitionStateCommand(UpdateJobDefinitionSuspensionStateBuilderImpl builder)
protected void logUserOperation(CommandContext commandContext)
protected abstract String getUserOperationType()
Copyright © 2022. All rights reserved.