public class CampaignInitiativeEvaluateCmdImpl extends TaskCommandImpl implements CampaignInitiativeEvaluateCmd, CampaignConstants, ConditionConstants
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector | _associateCatalogEntryResults
Associate Catalog entry results used in the evaluation of this initiative to determine what to show in the e-Marketing Spot.
|
protected CampaignInitiativeContext | _campaignInitiativeContext
An instance of the CampaignInitiativeContext object.
|
protected java.util.Vector | _campaignLogData
Array object that holds all of the campaign log data.
|
protected java.lang.String | _campaignLogResults
Campaign initiative log results.
|
protected java.lang.String | _campaignLogSegments
Campaign initiative log segments.
|
protected com.ibm.commerce.tools.campaigns.CampaignRuntimeUtil | _campaignRuntimeUtil
An instance of the CampaignRuntimeUtil object.
|
protected java.util.Vector | _catalogEntryIds
Catalog entry IDs used in the evaluation of this initiative on what to show in the e-Marketing Spot.
|
protected java.util.Vector | _catalogEntryResults
Catalog entry results used in the evaluation of this initiative to determine what to show in the e-Marketing Spot.
|
protected java.util.Vector | _catalogEntrySKUs
Catalog entry SKUs used in the evaluation of this initiative on what to show in the e-Marketing Spot.
|
protected java.util.Vector | _categoryNames
Category names used in the evaluation of this initiative on what to show in the e-Marketing Spot.
|
protected java.util.Vector | _categoryResults
Category results used in the evaluation of this initiative on what to show in the e-Marketing Spot.
|
protected CheckCurrentUserInMemberGroupCmd | _checkCurrentUserInMemberGroupCmd
An instance of the CheckCurrentUserInMemberGroupCmd object.
|
protected java.util.Vector | _collateralNames
Collateral names used in the evaluation of this initiative on what to show in the e-Marketing Spot.
|
protected java.util.Vector | _collateralResults
Collateral results used in the evaluation of this initiative on what to show in the e-Marketing Spot.
|
protected java.util.Vector | _crossSellCatalogEntry
Catalog entry IDs and ranks used to populate the cross-sell result to the e-Marketing Spot.
|
protected java.lang.Long | _currentCatalogId
ID of the catalog that the customer is currently viewing.
|
protected java.lang.String | _dayOfWeek
Campaign initiative WHEN condition, which corresponds to a day of the week.
|
protected java.lang.Integer | _eMarketingSpotId
e-Marketing Spot ID.
|
protected java.lang.String | _eMarketingSpotName
e-Marketing Spot name.
|
protected int | _maximumNumberOfAssociateCatalogEntries
Maximum number of associated catalog entries in this e-Marketing Spot.
|
protected int | _maximumNumberOfCatalogEntries
Maximum number of catalog entries in this e-Marketing Spot.
|
protected int | _maximumNumberOfCategories
Maximum number of categories in this e-Marketing Spot.
|
protected int | _maximumNumberOfCollateral
Maximum number of ad copies in this e-Marketing Spot.
|
protected CatalogGroupDataBean[][] | _purchaseHistoryCatalogGroup
An array of instances of the CatalogGroupDataBean object, used to check the purchase history.
|
protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] | _purchaseHistoryCatalogGroups
Deprecated.
Replaced by _purchaseHistoryCatalogGroup. An array of instances of the CatalogGroupResultBean object, used to check the purchase history.
|
protected java.lang.String | _purchaseHistoryCatalogGroupsLanguage
The language of the catalog group in the purchase history.
|
protected java.lang.String[] | _purchaseHistoryCategories
An array of the categories in the purchase history.
|
protected OrderItemAccessBean[] | _purchaseHistoryOrderItems
An array of instances of the OrderItemAccessBean object, used to check the purchase history.
|
protected java.util.Vector | _resultFilter
List of flags that will be used to determine the result filtering to be done in this command.
|
protected int | _resultOrder
The flag that will be used to determine the result ordering logic to be executed in this command.
|
protected SelectQuery | _selectQuery
An instance of the SelectQuery object.
|
protected CatalogGroupDataBean[][] | _shoppingCartCatalogGroup
An array of instances of the CatalogGroupDataBean object, used to check the shopping cart.
|
protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] | _shoppingCartCatalogGroups
Deprecated.
Replaced by _shoppingCartCatalogGroup. An array of instances of the CatalogGroupResultBean object, used to check the shopping cart.
|
protected java.lang.String | _shoppingCartCatalogGroupsLanguage
The language of the catalog group in the shopping cart.
|
protected OrderAccessBean | _shoppingCartOrderAccessBean
An instance of the OrderAccessBean object, used to check the shopping cart.
|
protected OrderItemAccessBean[] | _shoppingCartOrderItems
An array of instances of the OrderItemAccessBean object, used to check the shopping cart.
|
protected java.math.BigDecimal | _shoppingCartTotal
The current total amount in the shopping cart.
|
protected java.util.Vector | _sourceCatalogEntryIds
The list of source catalog entry IDs that will be used to find all cross-sell and up-sell products.
|
protected java.util.Vector | _sourceCatalogGroupIds
The list of source catalog group IDs that will be used to support the browsing category condition.
|
protected java.util.Vector | _upSellCatalogEntry
Catalog entry IDs and ranks used to populate the up-sell result to the e-Marketing Spot.
|
static java.lang.String | COMPONENT_MARKETING_EXPERIMENT
The element tag constant in the instance_name.xml file which identifies the marketing experimentation component.
|
static java.lang.String | COMPONENT_RULE_BASED_DISCOUNT
The element tag constant in the instance_name.xml file which identifies the rule-based discount component.
|
static java.lang.String | COMPONENT_RULES_SYSTEM
Deprecated.
This field is used when Blaze is used for campaign rule evaluation. Blaze support has been removed in the current release, there will not be a replacement for this field. The element tag constant in the instance_name.xml file which identifies the rules system component.
|
static java.lang.String | COMPONENT_TAG
The element tag constant in the instance.xml to identify tools components.
|
static java.lang.String | COMPONENT_USER_TRAFFIC_EVENT_LISTENER
The element tag constant in the instance_name.xml file which identifies the user traffic event listener component.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected java.lang.String | experimentId
The experiment ID associated with viewing the eMarketing Spot.
|
static java.lang.String | KEY_PREVIEWCONTEXT
The key string for PreviewContext object.
|
protected java.lang.String | testElementId
The test element ID associated with viewing the eMarketing Spot.
|
Constructor and Description |
---|
CampaignInitiativeEvaluateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | addAssociateCatalogEntry(java.lang.String catalogEntryId, java.math.BigDecimal associationRank, java.lang.Integer initiativeId)
The addAssociateCatalogEntry method is used to add associate catalog entries to the e-Marketing Spot, after all conditions have been successfully evaluated.
|
protected void | addCatalogEntry(java.lang.String catalogEntryId, java.lang.Integer initiativeId)
The addCatalogEntry method is used to add catalog entries to the e-Marketing Spot, after all of the conditions have been successfully evaluated.
|
protected void | addCategory(java.lang.String categoryName, java.lang.Integer initiativeId, java.lang.Long[] memberIds)
The addCategory method is used to add categories to the e-Marketing Spot, after all of the conditions have been successfully evaluated.
|
protected void | addCollateral(java.lang.String collateralName, java.lang.Integer initiativeId, java.lang.Integer storeId, java.lang.Integer languageId)
The addCollateral method is used to add ad copies to the e-Marketing Spot, after all conditions have been successfully evaluated.
|
protected void | appendCampaignLogResults(java.lang.Object object)
The appendCampaignLogResults method writes the execution log of the campaign initiative.
|
protected java.lang.Object[] | assignInitiativeToESpot(java.lang.Object[][] resultData, int maxNumberOfEntries)
This method is used to assign initiatives evenly to all available e-Marketing Spot spaces.
|
boolean | evaluate(java.lang.String name, OpenCondition.Parameter[] parameters)
This evaluate method is used to evaluate open conditions using different evaluate methods in this command, or using rule service if it is enabled.
|
boolean | evaluate(java.lang.String variable, java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
This evaluate method is used to evaluate simple conditions.
|
protected boolean | evaluateBrowsingCategory(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
The evaluateBrowsingCategory method is used to evaluate the WHEN condition.
|
protected boolean | evaluateBrowsingProduct(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
The evaluateBrowsingProduct method is used to evaluate the WHEN condition.
|
protected boolean | evaluateCoupon(java.lang.String collateralName)
Deprecated.
Since the Coupon feature in version 5.4 will be replaced by the Coupon feature in Promotion engine in version 5.6, this method will be replaced by the promotion related method evaluateDiscount(String,String,Integer) for the same purpose. The evaluateCoupon method is used to evaluate the WHAT condition of coupon advertisement type. This method returns a flag which indicates whether the evaluation of all of the conditions was successful.
|
protected boolean | evaluateDayOfWeek(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
The evaluateDayOfWeek method is used to evaluate the WHEN condition.
|
protected boolean | evaluateDiscount(java.lang.String discountUsage, java.lang.String discountCode)
The evaluateDiscount method is used to evaluate the WHAT condition of the discount advertisement type.
|
protected boolean | evaluateDiscount(java.lang.String discountUsage, java.lang.String discountCode, java.lang.Integer discountStoreId)
The evaluateDiscount method is used to evaluate the WHAT condition of discount advertisement type.
|
protected boolean | evaluatePurchaseHistoryCategory(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
The evaluatePurchaseHistoryCategory method is used to evaluate the WHICH condition, checking the purchase history on the specified category.
|
protected boolean | evaluatePurchaseHistorySku(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
The evaluatePurchaseHistorySku method is used to evaluate the WHICH condition, checking the purchase history on the specified SKU.
|
protected boolean | evaluateSegmentCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
The evaluateSegmentCondition method is used to evaluate the WHO condition, comparing the target customer with the current customer in store.
|
protected boolean | evaluateShoppingCartCategory(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
The evaluateShoppingCartCategory method is used to evaluate the WHICH condition, checking the shopping cart if it contains the specified category.
|
protected boolean | evaluateShoppingCartSku(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
The evaluateShoppingCartSku method is used to evaluate the WHICH condition, checking the shopping cart to determine if it contains the specified SKU.
|
protected boolean | evaluateShoppingCartTotal(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
The evaluateShoppingCartTotal method is used to evaluate the WHICH condition, comparing the shopping cart total amount with the specified amount in the condition.
|
EMarketingSpot.AssociateCatalogEntry[] | getAssociateCatalogEntries()
Gets the associated catalog entries to be displayed in the e-Marketing Spot.
|
protected CampaignInitiativeContext | getCampaignInitiativeContext()
Deprecated.
This method is used when Blaze is used for campaign rule evaluation. Blaze support has been removed in the current release, there will not be a replacement for this API. Gets the campaign initiative context object.
|
EMarketingSpot.CatalogEntry[] | getCatalogEntries()
Gets the catalog entries to be displayed in the e-Marketing Spot.
|
EMarketingSpot.Category[] | getCategories()
Gets the categories to be displayed in the e-Marketing Spot.
|
protected java.lang.String | getCategoryName(java.lang.String categoryIdentifier)
Gets the category name corresponding to a given category identifier.
|
protected CheckCurrentUserInMemberGroupCmd | getCheckCurrentUserInMemberGroupCmd()
Gets the current user in the member group.
|
EMarketingSpot.Collateral[] | getCollateral()
Gets the ad copies to be displayed in the e-Marketing Spot.
|
protected CampaignInitiative | getCurrentCampaignInitiative()
Gets the current campaign initiative object which stores all the required attributes about a campaign initiative.
|
protected java.lang.Integer | getCurrentInitiativeScheduleId()
Deprecated.
CampaignInitiative object is used to communicate schedule data in this command instead of only the schedule ID, method getCurrentCampaignInitiative() is used for that purpose. Gets the current schedule priority which is stored in every result object of this e-Marketing Spot.
|
protected java.lang.String | getDayOfWeek()
Gets the current day of the week from the java Calendar object.
|
java.lang.Integer | getEMarketingSpotId()
Gets the e-Marketing Spot ID.
|
java.lang.String | getEMarketingSpotName()
Returns the name of the eMarketingSpot that is evaluated by an instance of this command.
|
protected java.sql.Timestamp | getEvalViewTime()
Calculates the evaluation time.
|
java.lang.String | getExperimentId()
This method gets the ID of the experiment associated with the e-Marketing Spot.
|
protected java.lang.Integer | getInventoryEvalType()
Gets the type of inventory evaluation method.
|
java.util.Vector | getLikeMindsBaseItems()
Gets LikeMinds base item.
|
java.lang.String | getLikeMindsEngineType()
Gets LikeMinds engine type.
|
java.util.Hashtable | getLikeMindsOptionalQueryParameters()
Gets LikeMinds query parameter hashtable.
|
int | getLikeMindsRecommendationSortOrder()
Sets LikeMinds recommendation sort order.
|
int | getMaximumNumberOfAssociateCatalogEntries()
Returns the maximum number of associate catalog entries an instance of this command has been configured to return.
|
int | getMaximumNumberOfCatalogEntries()
Returns the maximum number of catalog entries an instance of this command has been configured to return.
|
int | getMaximumNumberOfCategories()
Returns the maximum number of categories an instance of this command has been configured to return.
|
int | getMaximumNumberOfCollateral()
Returns the maximum number of collateral an instance of this command has been configured to return.
|
java.lang.String | getMemberGroups()
This method gets the member groups to which the user belongs.
|
protected CatalogGroupDataBean[][] | getPurchaseHistoryCatalogGroup(java.lang.String language)
Gets the catalog groups from the purchase history of the store.
|
protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] | getPurchaseHistoryCatalogGroups(java.lang.String language)
Deprecated.
Replaced by getPurchaseHistoryCatalogGroup(String). Gets the catalog groups from the purchase history of the store.
|
protected java.lang.String[] | getPurchaseHistoryCategories(java.lang.String language)
Gets the categories from the purchase history of the store.
|
protected OrderItemAccessBean[] | getPurchaseHistoryOrderItems()
Gets the order items from the purchase history of the store.
|
protected int | getSelectQueryOperator(java.lang.String operator)
Gets the integer constant to be used in the SelectQuery class.
|
protected CatalogGroupDataBean[][] | getShoppingCartCatalogGroup(java.lang.String language)
Gets the catalog groups from the shopping cart of the store.
|
protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] | getShoppingCartCatalogGroups(java.lang.String language)
Deprecated.
Replaced by getShoppingCartCatalogGroup(String). Gets the catalog groups from the shopping cart of the store.
|
protected OrderAccessBean | getShoppingCartOrderAccessBean()
Gets the order item from the shopping cart of the store.
|
protected OrderItemAccessBean[] | getShoppingCartOrderItems()
Gets the order items from the shopping cart of the store.
|
protected java.math.BigDecimal | getShoppingCartTotal(java.lang.String currency)
Gets the total amount from the shopping cart of the store.
|
java.lang.String | getTestElementId()
This method gets the ID of the test element associated with the experiment running on the e-Marketing Spot.
|
protected com.ibm.commerce.rules.likeminds.WCSRecommendationServer | getWCSRecommendationServer()
Gets the instance of the Likeminds Personalization Server.
|
protected java.util.ArrayList | invokeExperimentService()
The invokeExperimentService method is used to invoke the service provided by the marketing experimentation component.
|
protected boolean | invokeService(java.lang.String serviceName, CampaignInitiativeContext campaignInitiativeContext)
Deprecated.
This method is used when Blaze is used for campaign rule evaluation. Blaze support has been removed in the current release, there will not be a replacement for this API. The invokeService method is used to invoke the rule service to evaluate conditions. This method returns a flag which indicates whether the rule service has started successfully.
|
boolean | isAllowLikeMindsDefaultRecommendation()
Check whether default LikeMinds recommendation is allowed or not.
|
boolean | isReadyToCallExecute()
Checks to see if the command is ready to call.
|
void | performAction(Action action)
Performs the execution of the command.
|
protected void | performAwarenessAd(Action.Parameter[] parameters)
Performs the execution of the command, used specific to general advertisements.
|
protected void | performCategoryRecommendation(Action.Parameter[] parameters)
Performs the execution of the command, used specifically for category recommendations.
|
protected void | performCollaborativeFiltering(Action.Parameter[] parameters)
Performs the execution of the command, used specifically for collaborative filtering.
|
protected void | performCouponAd(Action.Parameter[] parameters)
Deprecated.
Since the Coupon feature in version 5.4 will be replaced by the Coupon feature in Promotion engine in version 5.6, this method will be replaced by the promotion related method performDiscountAd(Action.Parameter[]) for the same purpose. Performs the execution of the command, used specifically for coupon advertisements.
|
protected void | performDiscountAd(Action.Parameter[] parameters)
Performs the execution of the command, used specifically for discount advertisements.
|
void | performExecute()
Performs the execution of the command.
|
protected void | performProductCrossSell(Action.Parameter[] parameters)
Performs the execution of the command, used specifically for product cross-sell.
|
protected void | performProductUpSell(Action.Parameter[] parameters)
Performs the execution of the command, used specifically for product up-sell.
|
protected void | performSuggestiveSell(Action.Parameter[] parameters)
Performs the execution of the command, used specifically for suggestive sellings.
|
protected boolean | populateAssociateCatalogEntryResults(java.lang.Integer initiativeId)
Populates the results of an associated catalog entry.
|
protected void | populateCampaignLogData(java.lang.Integer[] initiativeIds)
Deprecated.
Replaced by populateCampaignLogData(Vector). The populateCampaignLogData method captures campaign log and statistics data using the marketing event monitor.
|
protected void | populateCampaignLogData(java.util.Vector logResultData)
The populateCampaignLogData method captures campaign log and statistics using the marketing event monitor.
|
protected boolean | populateCatalogEntryResults(java.lang.Integer initiativeId)
Populates the results of a catalog entry.
|
protected boolean | populateCategoryResults(java.lang.Integer initiativeId)
Populates the results of a category.
|
protected boolean | populateCollateralResults(java.lang.Integer initiativeId)
Populates the results of an ad copy.
|
protected void | populateExperimentLogData(java.util.Vector logResultData)
The populateExperimentLogData method captures experiment log and statistics using the marketing event utility.
|
protected boolean | populateResults(java.lang.Integer initiativeId)
Populates the results of all e-Marketing Spot display types.
|
protected void | prioritizeInitiative(java.lang.Object[][] initiativePriorityData)
This method is used to sort the given initiative array based on priorities, differentiates all initiatives into the different result types, and sets arrays that contain the proper order of how initiatives should be displayed in the e-Marketing Spot for each result type.
|
void | refreshCommandContext(CommandContext commandContext)
This method must be called immediately after a call to execute() when campaign caching is enabled.
|
protected void | resetHelpers()
Resets all helper variables that are used in this command.
|
protected void | resetParameters()
Resets all parameter objects that are used in this command.
|
protected void | resetResults()
Resets the results on all e-Marketing Spot display types.
|
void | setAllowLikeMindsDefaultRecommendation(boolean b)
Sets whether default LikeMinds recommendation is allowed or not.
|
protected void | setCurrentCampaignInitiative(CampaignInitiative currentCampaignInitiative)
Sets the current campaign initiative object which stores all the required attributes about a campaign initiative.
|
void | setCurrentCatalogId(java.lang.Long currentCatalogId)
Sets the ID of the catalog that the customer is currently viewing.
|
protected void | setCurrentInitiativeScheduleId(java.lang.Integer currentInitiativeScheduleId)
Deprecated.
CampaignInitiative object is used to communicate schedule data in this command instead of only the schedule ID, method setCurrentCampaignInitiative(CampaignInitiative) is used for that purpose. Sets the current initiative schedule ID which is stored in every result object of this e-Marketing Spot.
|
void | setEMarketingSpotName(java.lang.String eMarketingSpotName)
Sets the name of the e-Marketing Spot.
|
void | setExperimentId(java.lang.String expId)
This method sets the ID of the experiment associated with the e-Marketing Spot.
|
void | setLikeMindsBaseItems(java.util.Vector vector)
Sets LikeMinds base item.
|
void | setLikeMindsEngineType(java.lang.String string)
Sets LikeMinds engine type.
|
void | setLikeMindsOptionalQueryParameters(java.util.Hashtable hashtable)
Sets LikeMinds query parameter hashtable.
|
void | setLikeMindsRecommendationSortOrder(int i)
Sets LikeMinds recommendation sort order.
|
void | setMaximumNumberOfAssociateCatalogEntries(int maximumNumberOfAssociateCatalogEntries)
Sets the maximum number of associated catalog entries can be displayed in an e-Marketing Spot.
|
void | setMaximumNumberOfCatalogEntries(int maximumNumberOfCatalogEntries)
Sets the maximum number of catalog entries can be displayed in an e-Marketing Spot.
|
void | setMaximumNumberOfCategories(int maximumNumberOfCategories)
Sets the maximum number of categories can be displayed in an e-Marketing Spot.
|
void | setMaximumNumberOfCollateral(int maximumNumberOfCollateral)
Sets the maximum number of ad copies can be displayed in an e-Marketing Spot.
|
void | setResultFilter(java.util.Vector resultFilter)
Sets the flags that indicate which result filter needs to be turned off.
|
void | setResultOrder(int resultOrder)
Sets the flag that indicates the ordering logic to be applied to the results by the evaluate command.
|
void | setSourceCatalogEntryIds(java.util.Vector sourceCatalogEntryIds)
Sets the list of source catalog entry IDs.
|
void | setSourceCatalogGroupIds(java.util.Vector sourceCatalogGroupIds)
Sets the list of source catalog group IDs.
|
void | setTestElementId(java.lang.String testElemId)
This method sets the ID of the test element associated with the experiment running on the e-Marketing Spot.
|
protected void | setupRuntimeUtil()
Initializes the campaign runtime utility helper instance.
|
protected java.lang.Object[][] | sortArrayByPriority(java.lang.Object[][] initiativePriorityData)
This method sorts an initiative array by priority.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String COMPONENT_MARKETING_EXPERIMENT
public static final java.lang.String COMPONENT_RULE_BASED_DISCOUNT
public static final java.lang.String COMPONENT_RULES_SYSTEM
public static final java.lang.String COMPONENT_TAG
public static final java.lang.String COMPONENT_USER_TRAFFIC_EVENT_LISTENER
public static final java.lang.String KEY_PREVIEWCONTEXT
protected java.lang.Integer _eMarketingSpotId
protected java.lang.String _eMarketingSpotName
protected java.lang.String _dayOfWeek
protected OrderAccessBean _shoppingCartOrderAccessBean
protected OrderItemAccessBean[] _shoppingCartOrderItems
protected CatalogGroupDataBean[][] _shoppingCartCatalogGroup
protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] _shoppingCartCatalogGroups
protected java.lang.String _shoppingCartCatalogGroupsLanguage
protected OrderItemAccessBean[] _purchaseHistoryOrderItems
protected CatalogGroupDataBean[][] _purchaseHistoryCatalogGroup
protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] _purchaseHistoryCatalogGroups
protected java.lang.String _purchaseHistoryCatalogGroupsLanguage
protected java.lang.String[] _purchaseHistoryCategories
protected java.math.BigDecimal _shoppingCartTotal
protected transient CampaignInitiativeContext _campaignInitiativeContext
protected transient SelectQuery _selectQuery
protected java.util.Vector _catalogEntryIds
protected java.util.Vector _catalogEntrySKUs
protected java.util.Vector _categoryNames
protected java.util.Vector _collateralNames
protected java.util.Vector _upSellCatalogEntry
protected java.util.Vector _crossSellCatalogEntry
protected java.util.Vector _associateCatalogEntryResults
protected java.util.Vector _catalogEntryResults
protected java.util.Vector _categoryResults
protected java.util.Vector _collateralResults
protected java.lang.Long _currentCatalogId
protected int _maximumNumberOfAssociateCatalogEntries
protected int _maximumNumberOfCatalogEntries
protected int _maximumNumberOfCategories
protected int _maximumNumberOfCollateral
protected java.util.Vector _resultFilter
protected int _resultOrder
protected java.util.Vector _sourceCatalogEntryIds
protected java.util.Vector _sourceCatalogGroupIds
protected java.util.Vector _campaignLogData
protected java.lang.String _campaignLogResults
protected java.lang.String _campaignLogSegments
protected com.ibm.commerce.tools.campaigns.CampaignRuntimeUtil _campaignRuntimeUtil
protected transient CheckCurrentUserInMemberGroupCmd _checkCurrentUserInMemberGroupCmd
protected java.lang.String experimentId
protected java.lang.String testElementId
protected void addAssociateCatalogEntry(java.lang.String catalogEntryId, java.math.BigDecimal associationRank, java.lang.Integer initiativeId)
protected void addCatalogEntry(java.lang.String catalogEntryId, java.lang.Integer initiativeId)
protected void addCategory(java.lang.String categoryName, java.lang.Integer initiativeId, java.lang.Long[] memberIds)
protected void addCollateral(java.lang.String collateralName, java.lang.Integer initiativeId, java.lang.Integer storeId, java.lang.Integer languageId)
public boolean evaluate(java.lang.String name, OpenCondition.Parameter[] parameters)
public boolean evaluate(java.lang.String variable, java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateBrowsingProduct(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateBrowsingCategory(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateDayOfWeek(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateDiscount(java.lang.String discountUsage, java.lang.String discountCode) throws java.lang.Exception
protected boolean evaluateDiscount(java.lang.String discountUsage, java.lang.String discountCode, java.lang.Integer discountStoreId) throws java.lang.Exception
protected boolean evaluateCoupon(java.lang.String collateralName) throws java.lang.Exception
protected boolean evaluatePurchaseHistoryCategory(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluatePurchaseHistorySku(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateSegmentCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateShoppingCartCategory(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateShoppingCartSku(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateShoppingCartTotal(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected CampaignInitiativeContext getCampaignInitiativeContext()
public EMarketingSpot.AssociateCatalogEntry[] getAssociateCatalogEntries()
public EMarketingSpot.CatalogEntry[] getCatalogEntries()
public EMarketingSpot.Category[] getCategories()
public EMarketingSpot.Collateral[] getCollateral()
protected java.lang.String getCategoryName(java.lang.String categoryIdentifier)
protected CheckCurrentUserInMemberGroupCmd getCheckCurrentUserInMemberGroupCmd()
protected CampaignInitiative getCurrentCampaignInitiative()
protected java.lang.Integer getCurrentInitiativeScheduleId()
protected java.lang.String getDayOfWeek()
public java.lang.Integer getEMarketingSpotId()
protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] getPurchaseHistoryCatalogGroups(java.lang.String language)
protected CatalogGroupDataBean[][] getPurchaseHistoryCatalogGroup(java.lang.String language)
protected java.lang.String[] getPurchaseHistoryCategories(java.lang.String language)
protected OrderItemAccessBean[] getPurchaseHistoryOrderItems()
protected int getSelectQueryOperator(java.lang.String operator)
protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] getShoppingCartCatalogGroups(java.lang.String language)
protected CatalogGroupDataBean[][] getShoppingCartCatalogGroup(java.lang.String language)
protected OrderAccessBean getShoppingCartOrderAccessBean()
protected OrderItemAccessBean[] getShoppingCartOrderItems()
protected java.math.BigDecimal getShoppingCartTotal(java.lang.String currency)
protected java.util.ArrayList invokeExperimentService()
protected boolean invokeService(java.lang.String serviceName, CampaignInitiativeContext campaignInitiativeContext)
public boolean isReadyToCallExecute()
public void performAction(Action action)
protected void performAwarenessAd(Action.Parameter[] parameters)
protected void performCategoryRecommendation(Action.Parameter[] parameters)
protected void performCollaborativeFiltering(Action.Parameter[] parameters)
protected void performCouponAd(Action.Parameter[] parameters)
protected void performDiscountAd(Action.Parameter[] parameters)
public void performExecute() throws ECException
protected void performProductCrossSell(Action.Parameter[] parameters)
protected void performProductUpSell(Action.Parameter[] parameters)
protected void performSuggestiveSell(Action.Parameter[] parameters)
protected boolean populateAssociateCatalogEntryResults(java.lang.Integer initiativeId) throws ECException
protected boolean populateCatalogEntryResults(java.lang.Integer initiativeId) throws ECException
protected boolean populateCategoryResults(java.lang.Integer initiativeId) throws ECException
protected boolean populateCollateralResults(java.lang.Integer initiativeId) throws ECException
protected boolean populateResults(java.lang.Integer initiativeId) throws ECException
protected void populateCampaignLogData(java.lang.Integer[] initiativeIds)
protected void populateCampaignLogData(java.util.Vector logResultData)
protected void populateExperimentLogData(java.util.Vector logResultData)
protected void resetHelpers()
protected void resetParameters()
protected void resetResults()
protected void setCurrentInitiativeScheduleId(java.lang.Integer currentInitiativeScheduleId)
protected void setCurrentCampaignInitiative(CampaignInitiative currentCampaignInitiative)
public void setCurrentCatalogId(java.lang.Long currentCatalogId)
public void setEMarketingSpotName(java.lang.String eMarketingSpotName)
public void setMaximumNumberOfAssociateCatalogEntries(int maximumNumberOfAssociateCatalogEntries)
public void setMaximumNumberOfCatalogEntries(int maximumNumberOfCatalogEntries)
public void setMaximumNumberOfCategories(int maximumNumberOfCategories)
public void setMaximumNumberOfCollateral(int maximumNumberOfCollateral)
public void setResultFilter(java.util.Vector resultFilter)
public void setResultOrder(int resultOrder)
public void setSourceCatalogEntryIds(java.util.Vector sourceCatalogEntryIds)
public void setSourceCatalogGroupIds(java.util.Vector sourceCatalogGroupIds)
protected void setupRuntimeUtil()
public void refreshCommandContext(CommandContext commandContext)
protected com.ibm.commerce.rules.likeminds.WCSRecommendationServer getWCSRecommendationServer()
protected void appendCampaignLogResults(java.lang.Object object)
protected java.lang.Object[] assignInitiativeToESpot(java.lang.Object[][] resultData, int maxNumberOfEntries)
protected void prioritizeInitiative(java.lang.Object[][] initiativePriorityData)
protected java.lang.Object[][] sortArrayByPriority(java.lang.Object[][] initiativePriorityData)
public java.util.Vector getLikeMindsBaseItems()
public java.lang.String getLikeMindsEngineType()
public java.util.Hashtable getLikeMindsOptionalQueryParameters()
public int getLikeMindsRecommendationSortOrder()
public void setLikeMindsBaseItems(java.util.Vector vector)
public void setLikeMindsEngineType(java.lang.String string)
public void setLikeMindsOptionalQueryParameters(java.util.Hashtable hashtable)
public void setLikeMindsRecommendationSortOrder(int i)
public boolean isAllowLikeMindsDefaultRecommendation()
public void setAllowLikeMindsDefaultRecommendation(boolean b)
protected java.lang.Integer getInventoryEvalType()
protected java.sql.Timestamp getEvalViewTime()
public java.lang.String getEMarketingSpotName()
public int getMaximumNumberOfAssociateCatalogEntries()
public int getMaximumNumberOfCatalogEntries()
public int getMaximumNumberOfCategories()
public int getMaximumNumberOfCollateral()
public java.lang.String getExperimentId()
public java.lang.String getTestElementId()
public void setExperimentId(java.lang.String expId)
public void setTestElementId(java.lang.String testElemId)
public java.lang.String getMemberGroups()