public class StoreFillRelatedItemsSlotAction
extends atg.commerce.scenario.FillRelatedItemsSlotAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version
|
Constructor and Description |
---|
StoreFillRelatedItemsSlotAction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkRelatedItem(java.util.List<atg.repository.RepositoryItem> pOrderProducts,
atg.repository.RepositoryItem pRelatedProduct)
This method checks the product specified to see if it should be added into related items slot.
|
protected void |
checkRelatedItems(java.util.List pOrderProducts,
java.util.List pRelatedItems,
java.util.Set pRelatedItemSet)
Checks to see that relatedItems don't exist in order,
if any of the items exists then it omits them from the result set.
|
void |
configure(java.lang.Object pConfiguration)
Configures the action using the given configuration object.
|
executeAction, getProductsInOrder, initialize, updateRelatedItems
public static final java.lang.String CLASS_VERSION
public void configure(java.lang.Object pConfiguration) throws atg.process.ProcessException
configure
in interface atg.process.action.Action
configure
in class atg.commerce.scenario.FillRelatedItemsSlotAction
pConfiguration
- the configuration to useatg.process.ProcessException
- - if the action could not be configured - for example,
because some of the required properties are missing from the configurationprotected void checkRelatedItems(java.util.List pOrderProducts, java.util.List pRelatedItems, java.util.Set pRelatedItemSet)
checkRelatedItems
in class atg.commerce.scenario.FillRelatedItemsSlotAction
pOrderProducts
- the products in the order.pRelatedItems
- related items for the products in the order.pRelatedItemSet
- related items which don't exist in order.protected boolean checkRelatedItem(java.util.List<atg.repository.RepositoryItem> pOrderProducts, atg.repository.RepositoryItem pRelatedProduct)
pOrderProducts
- - products in the current order.pRelatedProduct
- - product to be tested.true
if the product specified should be added into slot and false
otherwise.