public class DisplayMerchandisingAssociationActionTaskCmdImpl extends MarketingCampaignElementTaskCmdImpl implements DisplayMerchandisingAssociationActionTaskCmd
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.
|
protected static java.lang.String | LOCATION_CURRENT_PAGE
The parameter that the source object should be determined from the current page.
|
protected static java.lang.String | LOCATION_PURCHASE_HISTORY
The parameter that the source object should be determined from the customer's purchase history.
|
protected static java.lang.String | LOCATION_SHOPPING_CART
The parameter that the source objects should be determined from the customer's shopping cart.
|
protected static java.lang.String | LOCATION_TEMPLATE_ARGUMENT_ID_LIST
The parameter that the source object is specified in the element name-value pairs.
|
protected static java.lang.String | PARAM_ASSOCIATION_TYPE_LIST
The parameter that identifies the types of associations to return.
|
protected static java.lang.String | PARAM_CATALOG_ENTRY_ID_LIST
The parameter that identifies the source catalog entries.
|
protected static java.lang.String | PARAM_LOCATION
The parameter that identifies where to find the source objects.
|
protected static java.lang.String | PARAM_SOURCE
The parameter that identifies which type of object is the source of the association.
|
protected static java.lang.String | PARAM_TARGET
The parameter that identifies which type of object is the target of the association.
|
protected static java.lang.String | SOURCE_TARGET_CATALOG_ENTRY
The parameter that the source object or target object is a catalog entry.
|
Constructor and Description |
---|
DisplayMerchandisingAssociationActionTaskCmdImpl()
This method is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set | getParentProducts(java.util.Set sourceCatalogEntryIds)
This methods finds the parent products for any items that are in the provided source catalog entries.
|
protected java.util.Set | getPurchaseHistoryCatalogEntryIds(java.lang.String location, java.lang.Long[] userIds)
This method gets the catalog entry identifiers from the contents of the customer's purchase history.
|
protected java.util.Set | getPurchaseHistoryCatalogEntryIds(java.lang.String location, java.lang.Long[] userIds, java.lang.String daysOperator, java.lang.String daysValue, java.lang.String dateOperator1, java.lang.String dateValue1, java.lang.String dateOperator2, java.lang.String dateValue2)
This method gets the catalog entry identifiers from the contents of the customer's purchase history.
|
protected java.util.Set | getShoppingCartCatalogEntryIds(java.lang.String location, java.lang.Long[] userIds)
This method gets the catalog entry identifiers for the contents of the customer's shopping cart.
|
protected java.util.Set | getSourceCatalogEntries(java.util.Set sourceCatalogEntryIds, java.lang.Long[] userIds, java.lang.String location)
This method is used by customizations to return the set of catalog entries for which to find the merchandising associations to display in an eMarketing Spot.
|
protected java.util.List | getTargetCatalogEntryBySourceCatalogEntry(java.util.List massocTypes, java.util.Set sourceCatalogEntryIds)
This method gets all the associated catalog entries, given the source catalog entry IDs/source types and association type.
|
void | performExecute()
This command sets which content from merchandising associations should be displayed in an e-Marketing Spot.
|
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.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected static final java.lang.String PARAM_SOURCE
protected static final java.lang.String PARAM_TARGET
protected static final java.lang.String PARAM_LOCATION
protected static final java.lang.String PARAM_ASSOCIATION_TYPE_LIST
protected static final java.lang.String PARAM_CATALOG_ENTRY_ID_LIST
protected static final java.lang.String LOCATION_CURRENT_PAGE
protected static final java.lang.String LOCATION_SHOPPING_CART
protected static final java.lang.String LOCATION_PURCHASE_HISTORY
protected static final java.lang.String LOCATION_TEMPLATE_ARGUMENT_ID_LIST
protected static final java.lang.String SOURCE_TARGET_CATALOG_ENTRY
public DisplayMerchandisingAssociationActionTaskCmdImpl()
public void performExecute()
protected java.util.Set getParentProducts(java.util.Set sourceCatalogEntryIds)
protected java.util.Set getShoppingCartCatalogEntryIds(java.lang.String location, java.lang.Long[] userIds)
protected java.util.Set getPurchaseHistoryCatalogEntryIds(java.lang.String location, java.lang.Long[] userIds, java.lang.String daysOperator, java.lang.String daysValue, java.lang.String dateOperator1, java.lang.String dateValue1, java.lang.String dateOperator2, java.lang.String dateValue2) throws java.lang.Exception
protected java.util.Set getPurchaseHistoryCatalogEntryIds(java.lang.String location, java.lang.Long[] userIds)
protected java.util.Set getSourceCatalogEntries(java.util.Set sourceCatalogEntryIds, java.lang.Long[] userIds, java.lang.String location)
public java.util.List validateParameters(java.util.Map elementParameters)
protected java.util.List getTargetCatalogEntryBySourceCatalogEntry(java.util.List massocTypes, java.util.Set sourceCatalogEntryIds) throws java.lang.Exception