public abstract class AbstractPromotionEvaluationMarketingActivityTaskCmdImpl extends MarketingCampaignElementTaskCmdImpl implements MarketingCampaignElementTaskCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The name of this class.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | PARAM_AS_GENERIC_USER
Constant of parameter key to specify whether the GenericUser(-1002) will be used for the simulated promotion evaluation - "AsGenericUser"
|
static java.lang.String | PARAM_PAYMENT_TYPE
Constant of parameter key to specify the simulated payment type - "paymentType"
|
static java.lang.String | PARAM_PROMOTION_ID
Constant of parameter key to specify the promotion Id - "promotionIdList"
|
static java.lang.String | PARAM_PROMOTION_TEMPLATE
Constant of parameter key to specify the promotion template name - "promotionTemplate"
|
static java.lang.String | PARAM_SHIP_MODE
Constant of parameter key to specify the simulated ship mode - "shipMode"
|
static java.lang.String | PARAM_SKIP_MULTIPLE_CHILD_ITEMS
Constant of parameter key to specify whether the simulated promotion evaluation should be skipped if the input catalog entry contains product with multiple child items - "skipMultipleChildItems"
|
Constructor and Description |
---|
AbstractPromotionEvaluationMarketingActivityTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected Order | createSimulatedOrderForBundleBean(CatalogEntryAccessBean catEntryBean, StoreKey aStoreKey, CustomerKey aOwnerKey, boolean skipMultipleChildItems, CommandContext ctx)
Create a simulated order based on a BundleBean type CatalogEntry.
|
protected Order | createSimulatedOrderForItemBean(CatalogEntryAccessBean catEntryBean, StoreKey aStoreKey, CustomerKey aOwnerKey, CommandContext ctx)
Create a simulated order for an ItemBean type CatalogEntry.
|
protected Order | createSimulatedOrderForOtherBeanType(CatalogEntryAccessBean catEntryBean, StoreKey aStoreKey, CustomerKey aOwnerKey, boolean skipMultipleChildItems, CommandContext ctx)
The method should be override to create a simulated order for a bean type that is not supported by the default logic.
|
protected Order | createSimulatedOrderForPackageBean(CatalogEntryAccessBean catEntryBean, StoreKey aStoreKey, CustomerKey aOwnerKey, CommandContext ctx)
Create a simulated order for a Package type CatalogEntry.
|
protected Order | createSimulatedOrderForProductBean(CatalogEntryAccessBean catEntryBean, StoreKey aStoreKey, CustomerKey aOwnerKey, boolean skipMultipleChildItems, CommandContext ctx)
Create a simulated order based on a ProductBean type CatalogEntry.
|
void | performExecute()
This method builds a simulated order object according to the type of the input catalog entry.
|
protected abstract boolean | processResult(PromotionArgument aPromotionArgument)
This method must be implemented by the actual Target or Action class to processes the evaluation result.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String PARAM_PROMOTION_ID
public static final java.lang.String PARAM_PROMOTION_TEMPLATE
public static final java.lang.String PARAM_PAYMENT_TYPE
public static final java.lang.String PARAM_SHIP_MODE
public static final java.lang.String PARAM_AS_GENERIC_USER
public static final java.lang.String PARAM_SKIP_MULTIPLE_CHILD_ITEMS
public static final java.lang.String CLASSNAME
public AbstractPromotionEvaluationMarketingActivityTaskCmdImpl()
public void performExecute()
The following element parameter must be provided for the task command:
protected Order createSimulatedOrderForItemBean(CatalogEntryAccessBean catEntryBean, StoreKey aStoreKey, CustomerKey aOwnerKey, CommandContext ctx) throws java.lang.Exception
protected Order createSimulatedOrderForProductBean(CatalogEntryAccessBean catEntryBean, StoreKey aStoreKey, CustomerKey aOwnerKey, boolean skipMultipleChildItems, CommandContext ctx) throws java.lang.Exception
protected Order createSimulatedOrderForPackageBean(CatalogEntryAccessBean catEntryBean, StoreKey aStoreKey, CustomerKey aOwnerKey, CommandContext ctx) throws java.lang.Exception
protected Order createSimulatedOrderForOtherBeanType(CatalogEntryAccessBean catEntryBean, StoreKey aStoreKey, CustomerKey aOwnerKey, boolean skipMultipleChildItems, CommandContext ctx) throws java.lang.Exception
protected Order createSimulatedOrderForBundleBean(CatalogEntryAccessBean catEntryBean, StoreKey aStoreKey, CustomerKey aOwnerKey, boolean skipMultipleChildItems, CommandContext ctx) throws java.lang.Exception
protected abstract boolean processResult(PromotionArgument aPromotionArgument) throws java.lang.Exception