public class ProcessPromotionActivateActionCmdImpl extends AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl implements ProcessPromotionActionCmd
Constructor and Description |
---|
ProcessPromotionActivateActionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
static void |
invalidate(java.lang.String promotionId,
int storeId)
This method invalidates e-Marketing Spot entries in the base and marketing caches that are associated
with a promotion.
|
void |
performExecute()
If the value of the promotion control parameter is "CMC", this method
uses XSLT tranformation to generates the rule xml according to the final
authoring data and performs data valadation during the process, Otherwise
only the status of the rule XML will be updated with "Active" status.
|
void |
validate()
This method validates if the promotion can be activated or not.
|
getChangeBusinessObjectMediator, getChangeControlBusinessObjectMediator
getActionExpression, getNoun, isGeneric, isReadyToCallExecute, reset, setActionExpression, setNoun, setPersistentObjects
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, 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
isGeneric, setActionExpression, setNoun, setPersistentObjects
public ProcessPromotionActivateActionCmdImpl()
public void performExecute() throws java.lang.Exception
Note:If the value of the promotion control parameter is "CMC", this method will also create records in CALCODEMGP, CATENCALCD,CATGPCALCD and SHPMODCLCD that are related to this promotion.
When override this method, it is recommended to call the method of the super class in order to maintain the default behaviour.
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.websphere.command.TargetableCommandImpl
java.lang.Exception
TargetableCommand.performExecute()
public void validate() throws AbstractApplicationException
validate
in interface AbstractProcessNounActionCmd
AbstractApplicationException
- The application exception from PromotionAbstractProcessNounActionCmd.validate()
public static void invalidate(java.lang.String promotionId, int storeId) throws java.lang.Exception
promotionId
- The promotion unique ID.storeId
- The store associated with the promotion.java.lang.Exception