public class ProcessPromotionActivateActionCmdImpl extends AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl implements ProcessPromotionActionCmd
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> | categoryAttributeElementTypes
List of element types that target categories.
|
protected java.util.List<java.lang.String> | catentryAttributeElementTypes
List of element types that target catalog entry attributes.
|
protected java.util.List<java.lang.String> | catentryElementTypes
List of element types that target catalog entries.
|
protected int | maxNumberOfActivePromoRedemptionLimits
Specifies the maximum number of active promotions that contain redemption limits in the system.
|
protected int | maxNumberOfActivePromoWithAttributes
Specifies the maximum number of active promotions that target product attributes in the system.
|
protected int | maxTargetedCatalogEntriesPerPromotion
Specifies the maximum number of targeted catalog entries per promotion.
|
protected int | maxTargetedCategoriesPerPromotion
Specifies the maximum number of targeted categories per promotion.
|
Constructor and Description |
---|
ProcessPromotionActivateActionCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | createCatalogEntryCalculationCodeForAll(java.lang.Integer aCalCodeId)
The method creates a CatalogEntryCalculationCodeAccessBean object for the CalculationCode with the CatEntryId as null if the PromotionTargetToEverything flag is true.
|
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.
|
protected boolean | isPopulateCalculationCodeIndex()
Determines whether the calculation code index should be populated according to promotion element and element NVPs.
|
protected boolean | isPromotionTargetToEverything()
A flag indicates whether the promotion targets to everything in a shopping cart.
|
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.
|
protected void | populateCalCodeMgp(java.lang.Integer calCodeId, Px_promotion physicalPromotion, java.util.List physicalPromotionElements)
Creates the CALCODEMGP record based on promotion element data.
|
protected void | populateCatEntCalCode(java.lang.Integer calCodeId, Px_promotion physicalPromotion, java.util.List physicalPromotionElements)
Creates the CATENCALCD record based on promotion element data.
|
protected void | populateCatGrpCalCode(java.lang.Integer calCodeId, Px_promotion physicalPromotion, java.util.List physicalPromotionElements)
Creates the CATGPCALCD record based on promotion element data.
|
protected void | populateShippingCalCode(java.lang.Integer calCodeId, Px_promotion physicalPromotion, java.util.List physicalPromotionElements)
Creates the SHPMODCLCD record based on promotion element data.
|
protected void | setMaximumLimits()
Sets maxNumberOfActivePromoRedemptionLimits, maxNumberOfActivePromoWithAttributes, maxTargetedCatalogEntriesPerPromotion and maxTargetedCategoriesPerPromotion values for validation.
|
protected void | setPromotionTargetToEverything(boolean aPromotionTargetToEverything)
Sets whether the promotion targets to everything in a shopping cart.
|
void | validate()
This method validates if the promotion can be activated or not.
|
protected int maxNumberOfActivePromoRedemptionLimits
protected int maxNumberOfActivePromoWithAttributes
protected int maxTargetedCatalogEntriesPerPromotion
protected int maxTargetedCategoriesPerPromotion
protected java.util.List<java.lang.String> catentryAttributeElementTypes
protected java.util.List<java.lang.String> catentryElementTypes
protected java.util.List<java.lang.String> categoryAttributeElementTypes
public ProcessPromotionActivateActionCmdImpl()
protected boolean isPromotionTargetToEverything()
protected void setPromotionTargetToEverything(boolean aPromotionTargetToEverything)
protected boolean isPopulateCalculationCodeIndex()
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 behavior.
public void validate() throws AbstractApplicationException
protected void populateShippingCalCode(java.lang.Integer calCodeId, Px_promotion physicalPromotion, java.util.List physicalPromotionElements) throws AbstractApplicationException
protected void populateCalCodeMgp(java.lang.Integer calCodeId, Px_promotion physicalPromotion, java.util.List physicalPromotionElements) throws AbstractApplicationException
protected void populateCatGrpCalCode(java.lang.Integer calCodeId, Px_promotion physicalPromotion, java.util.List physicalPromotionElements) throws AbstractApplicationException
protected void populateCatEntCalCode(java.lang.Integer calCodeId, Px_promotion physicalPromotion, java.util.List physicalPromotionElements) throws AbstractApplicationException
protected void createCatalogEntryCalculationCodeForAll(java.lang.Integer aCalCodeId) throws AbstractApplicationException
protected void setMaximumLimits()
public static void invalidate(java.lang.String promotionId, int storeId) throws java.lang.Exception