public class DisplayProductRankingActionTaskCmdImpl extends MarketingCampaignElementTaskCmdImpl implements DisplayProductRankingActionTaskCmd
DisplayProductRankingActionTaskCmdImpl
is the implementation of the
DisplayProductRankingActionTaskCmd
interface. This command will return
a list of products. The list can be the most browsed products, or the most purchased
products in a category.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AMOUNT
Constant for the amount parameter that is returned to the storefront.
|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
PARAM_CURRENT_CATEGORY
Constant for the currentCategory parameter.
|
static java.lang.String |
PARAM_CURRENT_OR_SUB_CATEGORY
Constant for the currentOrSubCategory parameter.
|
static java.lang.String |
PARAM_INCLUDE_SUB_CATEGORIES
Constant for the ranking parameter includeSubCategories.
|
static java.lang.String |
PARAM_INTERVAL_NUMBER
Constant for the ranking parameter interval value.
|
static java.lang.String |
PARAM_INTERVAL_UNIT
Constant for the ranking parameter interval unit.
|
static java.lang.String |
PARAM_LOCATION
Constant for the location parameter.
|
static java.lang.String |
PARAM_OBJECT_GROUP
Constant for the ranking parameter objectGroupId.
|
static java.lang.String |
PARAM_POLICY
Constant for the ranking parameter business policy id.
|
static java.lang.String |
PARAM_SIZE
Constant for the ranking parameter size.
|
static java.lang.String |
PARAM_SPECIFIC_CATEGORY
Constant for the specificCategory parameter.
|
DM_FROM_FORWARD_TRIGGERS_FOR_PROCESSING, EMLPROMO_NAME_PREFIX, GENERIC_USER_ID
defaultCommandClassName
Constructor and Description |
---|
DisplayProductRankingActionTaskCmdImpl()
This method is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
forwardTriggersForProcessing()
This method is called once a day by the Process MarketingTrigger SendTriggers
scheduled job.
|
java.lang.String |
getMarketingSpotBehavior(java.util.Map elementParameters)
This method returns a value of 0 to specify that this marketing campaign element
is static and the results can be cached for all users.
|
void |
performExecute()
This method gets the products to display in an e-Marketing Spot.
|
void |
populateRankingList(java.lang.Integer elementId,
java.lang.String groupId)
This method populates the ranking list associated with this campaign element.
|
java.util.List |
validateParameters(java.util.Map elementParameters)
This method validates that all the required name value pairs have been set for
the campaign element.
|
addEMarketingSpotDataBean, forwardTriggersForProcessing, getActivity, getDataFromTriggerParameters, getElementId, getElementParameters, getEMarketingSpotDataBeans, getExperimentTestElements, getMarketingContent, getMemberId, getMemberId, getMemberIdsForPersonalizationId, getMemberIdsForPersonalizationId, getNewElementParameters, getPersonalizationId, getPreviewReport, getRegisteredMemberIdForPersonalizationId, getReturnValue, getStoreId, getTemporarySharedData, getTemporarySharedDataObject, getTriggerParameters, getTriggerParametersMap, getUserDataForElement, isReadyToCallExecute, putTemporarySharedDataObject, returnEMarketingSpotDataBeans, setActivity, setElementId, setElementParameters, setExperimentTestElements, setNewElementParameter, setOutputProperties, setPreviewReport, setReturnValue, setTemporarySharedData, setTriggerParameters, setTriggerParameters, validateCategory, validateCustomerSegment, validateDates, validateElementIsFirstInActivity, validateEmailTemplate, validateMarketingContent, validateMarketingContent, validateMarketingSpot, validateProduct, validatePromotion, validatePromotionCodes, validatePromotionCodesOrCoupon, validatePromotionCoupon, validatePromotionDisplay, validateSubscription, validateTimes
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEMarketingSpotDataBeans, getNewElementParameters, getReturnValue, returnEMarketingSpotDataBeans, setActivity, setElementId, setElementParameters, setExperimentTestElements, setNewElementParameter, setPreviewReport, setReturnValue, setTemporarySharedData, setTriggerParameters, setTriggerParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public static final java.lang.String PARAM_OBJECT_GROUP
public static final java.lang.String PARAM_INCLUDE_SUB_CATEGORIES
public static final java.lang.String PARAM_INTERVAL_UNIT
public static final java.lang.String PARAM_INTERVAL_NUMBER
public static final java.lang.String PARAM_POLICY
public static final java.lang.String PARAM_SIZE
public static final java.lang.String PARAM_LOCATION
public static final java.lang.String PARAM_SPECIFIC_CATEGORY
public static final java.lang.String PARAM_CURRENT_CATEGORY
public static final java.lang.String PARAM_CURRENT_OR_SUB_CATEGORY
public static final java.lang.String AMOUNT
${marketingSpotData.properties['amount']}
.public DisplayProductRankingActionTaskCmdImpl()
public void performExecute()
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class MarketingCampaignElementTaskCmdImpl
public void populateRankingList(java.lang.Integer elementId, java.lang.String groupId)
elementId
- The ranking campaign element ID.groupId
- The ranking group ID.public void forwardTriggersForProcessing()
Ranking
object with the
parameters of the ranking list defined by this campaign element. It then
calls the following commands:
CleanupRankingPolicyCmd
- to remove any obsolete dataGenerateRankingPolicyCmd
- to create the new ranking listInvalidateRankingServletCmd
- to inform any cached pages that the ranking list has been updatedforwardTriggersForProcessing
in interface MarketingCampaignElementTaskCmd
forwardTriggersForProcessing
in class MarketingCampaignElementTaskCmdImpl
public java.util.List validateParameters(java.util.Map elementParameters)
validateParameters
in interface MarketingCampaignElementTaskCmd
validateParameters
in class MarketingCampaignElementTaskCmdImpl
elementParameters
- The name value pairs for this element.ApplicationError
exceptions
that contains any validation errors. The list may be empty or be null
.public java.lang.String getMarketingSpotBehavior(java.util.Map elementParameters)
getMarketingSpotBehavior
in interface MarketingCampaignElementTaskCmd
getMarketingSpotBehavior
in class MarketingCampaignElementTaskCmdImpl
elementParameters
- The name value pairs for this element.