public class ProcessExpiredPromotionsCmdImpl extends TaskCommandImpl implements ProcessExpiredPromotionsCmd
defaultCommandClassName, NAME
Constructor and Description |
---|
ProcessExpiredPromotionsCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
Processes expired promotions based on action and numDays setting.
|
void |
setAction(java.lang.String action)
Sets the action.
|
void |
setNumberOfDays(int numDays)
Sets the number of days the promotions can be expired for.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setAction(java.lang.String action)
setAction
in interface ProcessExpiredPromotionsCmd
action
- The action to take on the expired promotions. Can be deactivate, archive, delete, or report.public void setNumberOfDays(int numDays)
setNumberOfDays
in interface ProcessExpiredPromotionsCmd
numDays
- Number of days the promotions can be expired for. Must be a positive integer.