public class UniquePromotionCodesPopulateCmdImpl extends ControllerCommandImpl implements UniquePromotionCodesPopulateCmd
defaultCommandClassName, NAME
Constructor and Description |
---|
UniquePromotionCodesPopulateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
accessControlCheck()
This method performs a command level access control check by invoking the
access control manager.
|
void |
cleanCodeInDB()
Invokes the UniquePromotionCodesCleanCmd command to clean all generated code in the database
|
void |
performExecute()
This method first checks the status is in canceled state.
|
void |
scheduleNextBatch(int newBatchSize)
Schedule another job to go on with the code generation process.
|
void |
validateParameters()
Check whether the promotion and related code specification are in the
database.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
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
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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public boolean accessControlCheck() throws ECException
accessControlCheck
in interface AccCommand
accessControlCheck
in class AbstractECTargetableCommand
true
if the user has authority;
otherwise it throws an exception.ECException
- An
ECApplicationException is thrown when an _ERR_USER_AUTHORITY
error occurs.
public void validateParameters() throws ECApplicationException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
public void scheduleNextBatch(int newBatchSize) throws ECException
newBatchSize
- An Integer value representing the new batch sizeECException
public void cleanCodeInDB()