public abstract class AbstractSetStateCmd extends Object implements Command<Void>
Modifier and Type | Field and Description |
---|---|
protected Date |
executionDate |
protected boolean |
includeSubResources |
protected boolean |
isLogUserOperationDisabled |
protected static String |
SUSPENSION_STATE_PROPERTY |
Constructor and Description |
---|
AbstractSetStateCmd(boolean includeSubResources,
Date executionDate) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
checkAuthorization(CommandContext commandContext) |
protected abstract void |
checkParameters(CommandContext commandContext) |
void |
disableLogUserOperation() |
Void |
execute(CommandContext commandContext) |
protected String |
getDelayedExecutionJobHandlerType() |
protected JobHandlerConfiguration |
getJobHandlerConfiguration() |
protected abstract String |
getLogEntryOperation() |
protected abstract SuspensionState |
getNewSuspensionState() |
protected AbstractSetStateCmd |
getNextCommand() |
protected boolean |
isIncludeSubResources() |
protected boolean |
isLogUserOperationDisabled() |
protected abstract void |
logUserOperation(CommandContext commandContext) |
protected void |
scheduleSuspensionStateUpdate(CommandContext commandContext) |
protected void |
triggerHistoryEvent(CommandContext commandContext) |
protected abstract void |
updateSuspensionState(CommandContext commandContext,
SuspensionState suspensionState) |
protected static final String SUSPENSION_STATE_PROPERTY
protected boolean includeSubResources
protected boolean isLogUserOperationDisabled
protected Date executionDate
public AbstractSetStateCmd(boolean includeSubResources, Date executionDate)
public Void execute(CommandContext commandContext)
protected void triggerHistoryEvent(CommandContext commandContext)
public void disableLogUserOperation()
protected boolean isLogUserOperationDisabled()
protected boolean isIncludeSubResources()
protected void scheduleSuspensionStateUpdate(CommandContext commandContext)
protected String getDelayedExecutionJobHandlerType()
protected JobHandlerConfiguration getJobHandlerConfiguration()
protected AbstractSetStateCmd getNextCommand()
protected abstract void checkAuthorization(CommandContext commandContext)
protected abstract void checkParameters(CommandContext commandContext)
protected abstract void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState)
protected abstract void logUserOperation(CommandContext commandContext)
protected abstract String getLogEntryOperation()
protected abstract SuspensionState getNewSuspensionState()
Copyright © 2017. All rights reserved.