org.camunda.bpm.engine.impl.cmd
Class AbstractSetBatchStateCmd

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.AbstractSetBatchStateCmd
All Implemented Interfaces:
Command<Void>
Direct Known Subclasses:
ActivateBatchCmd, SuspendBatchCmd

public abstract class AbstractSetBatchStateCmd
extends Object
implements Command<Void>


Field Summary
protected  String batchId
           
static String SUSPENSION_STATE_PROPERTY
           
 
Constructor Summary
AbstractSetBatchStateCmd(String batchId)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUSPENSION_STATE_PROPERTY

public static final String SUSPENSION_STATE_PROPERTY
See Also:
Constant Field Values

batchId

protected String batchId
Constructor Detail

AbstractSetBatchStateCmd

public AbstractSetBatchStateCmd(String batchId)
Method Detail

execute

public Void execute(CommandContext commandContext)
Specified by:
execute in interface Command<Void>

getNewSuspensionState

protected abstract SuspensionState getNewSuspensionState()

checkAccess

protected void checkAccess(CommandContext commandContext,
                           BatchEntity batch)

checkAccess

protected abstract void checkAccess(CommandChecker checker,
                                    BatchEntity batch)

setJobDefinitionState

protected void setJobDefinitionState(CommandContext commandContext,
                                     String jobDefinitionId)

createSetJobDefinitionStateCommand

protected AbstractSetJobDefinitionStateCmd createSetJobDefinitionStateCommand(String jobDefinitionId)

createSetJobDefinitionStateCommand

protected abstract AbstractSetJobDefinitionStateCmd createSetJobDefinitionStateCommand(UpdateJobDefinitionSuspensionStateBuilderImpl builder)

logUserOperation

protected void logUserOperation(CommandContext commandContext)

getUserOperationType

protected abstract String getUserOperationType()


Copyright © 2016 camunda services GmbH. All rights reserved.