Class ProcessPromotionDeactivateActionCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.foundation.server.command.bod.AbstractProcessNounActionCmdImpl
-
- com.ibm.commerce.foundation.server.command.bod.bom.AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl
-
- com.ibm.commerce.promotion.facade.server.commands.ProcessPromotionDeactivateActionCmdImpl
-
- All Implemented Interfaces:
- AbstractProcessNounActionCmd, ProcessPromotionActionCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class ProcessPromotionDeactivateActionCmdImpl extends AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl implements ProcessPromotionActionCmd
The process command to deactivate a Promotion. It changes the promotion status to "Inactive", creates a auditing row of the current promotion rule XML in PX_PROMOAUDIT table, and it also sets the state of associated CalulationCode record to "not Published".- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM Copyright notice field.
-
Constructor Summary
Constructors Constructor and Description ProcessPromotionDeactivateActionCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
performExecute()
This method changes the promotion status to "Inactive", creates a auditing row of the current promotion rule XML in PX_PROMOAUDIT table, and it also sets the state of associated CalulationCode record to "not Published".void
validate()
This method validates if the promotion can be deactivated or not.-
Methods inherited from class com.ibm.commerce.foundation.server.command.bod.bom.AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl
getChangeBusinessObjectMediator, getChangeControlBusinessObjectMediator
-
Methods inherited from class com.ibm.commerce.foundation.server.command.bod.AbstractProcessNounActionCmdImpl
getActionExpression, getNoun, isGeneric, isReadyToCallExecute, reset, setActionExpression, setNoun, setPersistentObjects
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.foundation.server.command.bod.AbstractProcessNounActionCmd
isGeneric, setActionExpression, setNoun, setPersistentObjects
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM Copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProcessPromotionDeactivateActionCmdImpl
public ProcessPromotionDeactivateActionCmdImpl()
-
-
Method Detail
-
performExecute
public void performExecute() throws java.lang.Exception
This method changes the promotion status to "Inactive", creates a auditing row of the current promotion rule XML in PX_PROMOAUDIT table, and it also sets the state of associated CalulationCode record to "not Published".Note: During the deactivation process, if the value of promotion control parameter is "CMC", the rule XML will be re-generated using XSLT transformaiton with the promotion base attributes, specific configuraiton data for the TargetingCondition, PurchaseCondition and CustomConditions will not be available in this generated rule XML. Records in CALCODEMGP, CATENCALCD,CATGPCALCD and SHPMODCLCD that are related to this promotion will also be removed. These informaiton will be rebuilt according to the final authoring data during the promotion activation process. Otherwise only the status of the rule XML will be updated with "Inactive" status.
When override this method, it is recommended to call the method of the super class in order to maintain the default behaviour.
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Specified by:
performExecute
in classcom.ibm.websphere.command.TargetableCommandImpl
- Throws:
java.lang.Exception
- See Also:
TargetableCommand.performExecute()
-
validate
public void validate() throws AbstractApplicationException
This method validates if the promotion can be deactivated or not.- Specified by:
validate
in interfaceAbstractProcessNounActionCmd
- Throws:
AbstractApplicationException
- The application exception from Promotion
-
-