com.ibm.commerce.tools.campaigns
Class CampaignInitiativeEvaluateCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.tools.campaigns.CampaignInitiativeEvaluateCmdImpl
All Implemented Interfaces:
ActionHandler, CampaignConstants, CampaignInitiativeEvaluateCmd, ConditionConstants, ECCommand, Evaluator, TaskCommand

public class CampaignInitiativeEvaluateCmdImpl
extends TaskCommandImpl
implements CampaignInitiativeEvaluateCmd, CampaignConstants, ConditionConstants

The CampaignInitiativeEvaluateCmdImpl class implements the CampaignInitiativeEvaluateCmd interface to provide the task command that evaluates a campaign initiative. Different implementations of this interface can be provided for different stores.


Field Summary
protected  CampaignInitiativeContext _campaignInitiativeContext
          An instance of the CampaignInitiativeContext object.
protected  java.lang.String _campaignLogResults
          Campaign initiative log results.
protected  java.lang.String _campaignLogSegments
          Campaign initiative log segments.
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 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.lang.String _dayOfWeek
          Campaign initiative WHEN condition a day of the week
protected  java.lang.Integer _eMarketingSpotId
          e-Marketing spot ID.
protected  java.lang.String _eMarketingSpotName
          e-Marketing spot name.
protected  InvokePersonalizationRuleServiceCommand _invokePersonalizationRuleServiceCommand
          An instance of the InvokePersonalizationRuleServiceCommand object.
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  com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] _purchaseHistoryCatalogGroups
          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  SelectQuery _selectQuery
          An instance of the SelectQuery object.
protected  com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] _shoppingCartCatalogGroups
          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.
static java.lang.String COPYRIGHT
          Copyright.
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.campaigns.CampaignInitiativeEvaluateCmd
defaultCommandClassName, Name
 
Fields inherited from interface com.ibm.commerce.tools.campaigns.CampaignConstants
ACTION_AWARENESS_AD, ACTION_CATEGORY_RECOMMENDATION, ACTION_COLLABORATIVE_FILTERING, ACTION_COUPON_AD, ACTION_DISCOUNT_AD, ACTION_PARAMETER_AVAILABILITY_DATE, ACTION_PARAMETER_CATEGORY, ACTION_PARAMETER_COLLATERAL, ACTION_PARAMETER_COMPARISON_OPERATOR, ACTION_PARAMETER_COUPON_COLLATERAL, ACTION_PARAMETER_CURRENCY, ACTION_PARAMETER_DISCOUNT_CODE, ACTION_PARAMETER_DISCOUNT_COLLATERAL, ACTION_PARAMETER_DISCOUNT_USAGE, ACTION_PARAMETER_INVENTORY_QUANTITY, ACTION_PARAMETER_LANGUAGE, ACTION_PARAMETER_LIST_PRICE, ACTION_PARAMETER_OFFER_PRICE, ACTION_PARAMETER_PRODUCT_DESCRIPTION, ACTION_PARAMETER_QUERY_OPERATOR, ACTION_PARAMETER_QUERY_TYPE, ACTION_PARAMETER_SKU, ACTION_PARAMETER_SKU_PREFIX, ACTION_PARAMETER_VALUE_AND, ACTION_PARAMETER_VALUE_BOTH_QUERY, ACTION_PARAMETER_VALUE_GENERIC_QUERY, ACTION_PARAMETER_VALUE_OR, ACTION_PARAMETER_VALUE_SKU_QUERY, ACTION_SUGGESTIVE_SELL, ACTION_XML_FILE_INITIATIVE_SCHEDULE_LIST, AVAILABLE_AFTER, BROWSING_PRODUCT, CAMPAIGNS_RESOURCES, CATEGORY, COLLATERAL_TYPE_COUNT, collateralUrlArray, CURRENCY, DB_COLUMN_LENGTH_CAMPAIGN_DESCRIPTION, DB_COLUMN_LENGTH_CAMPAIGN_NAME, DB_COLUMN_LENGTH_CAMPAIGN_OBJECTIVE, DB_COLUMN_LENGTH_CAMPAIGN_OWNER, DB_COLUMN_LENGTH_INITIATIVE_DESCRIPTION, DB_COLUMN_LENGTH_INITIATIVE_NAME, ELEMENT_ACTION, ELEMENT_AVAILABLE_COLLATERAL, ELEMENT_AVAILABLE_COUPON_COLLATERAL, ELEMENT_AVAILABLE_DISCOUNT_COLLATERAL, ELEMENT_AVAILABLE_INITIATIVES, ELEMENT_AVAILABLE_LOCATIONS, ELEMENT_AVAILABLE_SEGMENTS, ELEMENT_CAMPAIGN, ELEMENT_CAMPAIGN_CHANGED, ELEMENT_CAMPAIGN_EXISTS, ELEMENT_CAMPAIGN_ID, ELEMENT_CAMPAIGN_NAME, ELEMENT_CAMPAIGN_NAME_INVALID, ELEMENT_CAMPAIGN_NAME_REQUIRED, ELEMENT_CATEGORY_REQUIRED, ELEMENT_COLLATERAL, ELEMENT_COLLATERAL_CHANGED, ELEMENT_COLLATERAL_DESC_FIELD1, ELEMENT_COLLATERAL_DESC_FIELD2, ELEMENT_COLLATERAL_EXISTS, ELEMENT_COLLATERAL_FIELD1, ELEMENT_COLLATERAL_FIELD2, ELEMENT_COLLATERAL_LOCATION, ELEMENT_COLLATERAL_MARKETING_TEXT, ELEMENT_COLLATERAL_NAME, ELEMENT_COLLATERAL_NAME_INVALID, ELEMENT_COLLATERAL_NAME_REQUIRED, ELEMENT_COLLATERAL_REQUIRED, ELEMENT_COLLATERAL_TYPE, ELEMENT_COLLATERAL_TYPE_NAME, ELEMENT_COLLATERAL_URL, ELEMENT_CONDITION, ELEMENT_CONDITION_DESCRIPTION_REQUIRED, ELEMENT_CONDITION_INDEX, ELEMENT_CONDITION_NAME, ELEMENT_CONDITION_NAME_INVALID, ELEMENT_CONDITION_NAME_REQUIRED, ELEMENT_CONDITIONS, ELEMENT_COUPON_ID, ELEMENT_CURRENCY, ELEMENT_DAY_OF_THE_WEEK_REQUIRED, ELEMENT_DAYS_OF_THE_WEEK, ELEMENT_DESCRIPTION, ELEMENT_DISABLED, ELEMENT_DISCOUNT_ID, ELEMENT_DISCOUNT_REQUIRED, ELEMENT_EMS, ELEMENT_EMS_CHANGED, ELEMENT_EMS_EXISTS, ELEMENT_EMS_ID, ELEMENT_EMS_NAME, ELEMENT_EMS_NAME_INVALID, ELEMENT_EMS_NAME_REQUIRED, ELEMENT_EMS_SUPPORTED_TYPES, ELEMENT_EMS_SUPPORTED_TYPES_VALUE, ELEMENT_END_DAY, ELEMENT_END_MONTH, ELEMENT_END_TIME, ELEMENT_END_YEAR, ELEMENT_EVERYDAY, ELEMENT_FILTER_REQUIRED, ELEMENT_FORCE_SAVE, ELEMENT_HIGH_INVENTORY_QUANTITY, ELEMENT_ID, ELEMENT_INITIATIVE, ELEMENT_INITIATIVE_CHANGED, ELEMENT_INITIATIVE_DETAILS, ELEMENT_INITIATIVE_EXISTS, ELEMENT_INITIATIVE_IDS, ELEMENT_INITIATIVE_NAME, ELEMENT_INITIATIVE_NAME_INVALID, ELEMENT_INITIATIVE_NAME_REQUIRED, ELEMENT_INITIATIVE_TYPE, ELEMENT_INVALID_AFTER_DATE, ELEMENT_INVALID_END_AFTER_START_DATE, ELEMENT_INVALID_END_DATE, ELEMENT_INVALID_END_TIME, ELEMENT_INVALID_HIGH_PRICE, ELEMENT_INVALID_INVENTORY_RANGE, ELEMENT_INVALID_LOW_PRICE, ELEMENT_INVALID_PRICE_RANGE, ELEMENT_INVALID_START_DATE, ELEMENT_INVALID_START_TIME, ELEMENT_LAST_UPDATE_DATE, ELEMENT_LAST_UPDATE_DATE_TEXT, ELEMENT_LAST_UPDATED_BY, ELEMENT_LOW_INVENTORY_QUANTITY, ELEMENT_MPE_CONFLICT, ELEMENT_NEVER_EXPIRES, ELEMENT_NOT_READY, ELEMENT_OBJECTIVE, ELEMENT_OWNER, ELEMENT_PRIORITY, ELEMENT_PRODUCT_ATTRIBUTES, ELEMENT_PRODUCT_REQUIRED, ELEMENT_PRODUCT_SKUS, ELEMENT_PROFILE_REQUIRED, ELEMENT_SELECTED_CATEGORIES, ELEMENT_SELECTED_COLLATERAL, ELEMENT_SELECTED_COUPON_COLLATERAL, ELEMENT_SELECTED_DISCOUNT_CODE, ELEMENT_SELECTED_DISCOUNT_COLLATERAL, ELEMENT_SELECTED_DISCOUNT_USAGE, ELEMENT_SELECTED_INITIATIVES, ELEMENT_SELECTED_LOCATIONS, ELEMENT_SELECTED_SEGMENTS, ELEMENT_SELL_TYPE, ELEMENT_START_DAY, ELEMENT_START_MONTH, ELEMENT_START_TIME, ELEMENT_START_YEAR, ELEMENT_TARGET_ALL_SHOPPERS, ELEMENT_TYPE, ELEMENT_VALUE1, ELEMENT_VALUE2, ELEMENT_WHAT_TYPE, ELEMENT_WHEN_CHOICES, EMS_SUPPORTED_TYPE_ADVERTISEMENT, EMS_SUPPORTED_TYPE_CATEGORY, EMS_SUPPORTED_TYPE_PRODUCT, EMS_TYPE_COUNT, EQUAL_TO, ERROR_CAMPAIGN_CHANGED, ERROR_CAMPAIGN_EXISTS, ERROR_CAMPAIGN_NOT_SAVED, ERROR_COLLATERAL_EXISTS, ERROR_COLLATERAL_NOT_SAVED, ERROR_EMS_EXISTS, ERROR_EMS_NOT_SAVED, ERROR_INITIATIVE_CHANGED, ERROR_INITIATIVE_EXISTS, ERROR_INITIATIVE_NOT_SAVED, ERROR_MPE_CONFLICT, FRIDAY, GREATER_THAN, HIGH_INVENTORY, HIGH_PRICE, INITIATIVE_RESULT_TYPE_ADVERTISEMENT, INITIATIVE_RESULT_TYPE_CATEGORY, INITIATIVE_RESULT_TYPE_PRODUCT, INITIATIVE_STATUS_ACTIVE, INITIATIVE_STATUS_DISABLED, INITIATIVE_STATUS_SUSPEND, INVENTORY, LESS_THAN, LOW_INVENTORY, LOW_PRICE, MONDAY, MSG_ALL_CAMPAIGN, MSG_BUTTON_ACTIVATE, MSG_BUTTON_ADD, MSG_BUTTON_ADD_NO_ELIPSIS, MSG_BUTTON_BACK, MSG_BUTTON_BROWSE, MSG_BUTTON_BROWSE_ELLIPSIS, MSG_BUTTON_CAMPAIGNS, MSG_BUTTON_CANCEL, MSG_BUTTON_CHANGE, MSG_BUTTON_CHANGE_INITIATIVE, MSG_BUTTON_CHANGE_INITIATIVE_ELLIPSIS, MSG_BUTTON_CHOOSE_COUPON, MSG_BUTTON_CHOOSE_DISCOUNT, MSG_BUTTON_CLEAR, MSG_BUTTON_CLOSE, MSG_BUTTON_CONFIRM, MSG_BUTTON_COPY, MSG_BUTTON_DELETE, MSG_BUTTON_FIND, MSG_BUTTON_FIND_ELLIPSIS, MSG_BUTTON_HELP, MSG_BUTTON_LIST, MSG_BUTTON_LIST_ELLIPSIS, MSG_BUTTON_NEW, MSG_BUTTON_OK, MSG_BUTTON_PREVIEW, MSG_BUTTON_PRINT, MSG_BUTTON_PROPERTIES, MSG_BUTTON_REMOVE, MSG_BUTTON_REPORTS, MSG_BUTTON_RESUME, MSG_BUTTON_SCHEDULE, MSG_BUTTON_STATISTICS, MSG_BUTTON_SUMMARY, MSG_BUTTON_SUSPEND, MSG_CAMPAIGN_BUSINESS_PANEL, MSG_CAMPAIGN_BUSINESS_PANEL_PROMPT, MSG_CAMPAIGN_BUSINESS_PANEL_TITLE, MSG_CAMPAIGN_CHANGED, MSG_CAMPAIGN_DESCRIPTION_PROMPT, MSG_CAMPAIGN_EXISTS, MSG_CAMPAIGN_GENERAL_PANEL, MSG_CAMPAIGN_GENERAL_PANEL_PROMPT, MSG_CAMPAIGN_GENERAL_PANEL_TITLE, MSG_CAMPAIGN_LAST_UPDATE_PROMPT, MSG_CAMPAIGN_LAST_UPDATED_BY_PROMPT, MSG_CAMPAIGN_LIST_DELETE_CONFIRMATION, MSG_CAMPAIGN_LIST_DESCRIPTION_COLUMN, MSG_CAMPAIGN_LIST_EMPTY, MSG_CAMPAIGN_LIST_LAST_UPDATE_COLUMN, MSG_CAMPAIGN_LIST_LAST_UPDATED_BY_COLUMN, MSG_CAMPAIGN_LIST_NAME_COLUMN, MSG_CAMPAIGN_LIST_PROMPT, MSG_CAMPAIGN_LIST_SUMMARY, MSG_CAMPAIGN_LIST_TITLE, MSG_CAMPAIGN_NAME_PROMPT, MSG_CAMPAIGN_NAME_REQUIRED, MSG_CAMPAIGN_NOT_SAVED, MSG_CAMPAIGN_NOTEBOOK_CANCEL_CONFIRMATION, MSG_CAMPAIGN_NOTEBOOK_TITLE, MSG_CAMPAIGN_OBJECTIVES_PROMPT, MSG_CAMPAIGN_OWNER_PROMPT, MSG_CAMPAIGN_WIZARD_CANCEL_CONFIRMATION, MSG_CAMPAIGN_WIZARD_SUCCESS_CONFIRMATION, MSG_CAMPAIGN_WIZARD_TITLE, MSG_CAMPAIGNS_DELETED, MSG_CAMPAIGNS_DELETED_DIALOG_OK_BUTTON, MSG_CAMPAIGNS_DELETED_DIALOG_TITLE, MSG_CAMPAIGNS_NOT_DELETED, MSG_COLLATERAL_DELETED, MSG_COLLATERAL_DELETED_DIALOG_TITLE, MSG_COLLATERAL_DESC_FIELD1_PROMPT, MSG_COLLATERAL_DESC_FIELD2_PROMPT, MSG_COLLATERAL_DESCRIPTION_PANEL_PROMPT, MSG_COLLATERAL_DESCRIPTION_PANEL_TITLE, MSG_COLLATERAL_DESCRIPTION_PROMPT, MSG_COLLATERAL_EXISTS, MSG_COLLATERAL_FIELD1_PROMPT, MSG_COLLATERAL_FIELD2_PROMPT, MSG_COLLATERAL_GENERAL_PANEL_PROMPT, MSG_COLLATERAL_GENERAL_PANEL_TITLE, MSG_COLLATERAL_LIST_DELETE_CONFIRMATION, MSG_COLLATERAL_LIST_DESCRIPTION_COLUMN, MSG_COLLATERAL_LIST_EMPTY, MSG_COLLATERAL_LIST_NAME_COLUMN, MSG_COLLATERAL_LIST_PROMPT, MSG_COLLATERAL_LIST_TITLE, MSG_COLLATERAL_LIST_TYPE_COLUMN, MSG_COLLATERAL_LOCATION_PROMPT, MSG_COLLATERAL_MARKETING_TEXT_PROMPT, MSG_COLLATERAL_NAME_PROMPT, MSG_COLLATERAL_NAME_REQUIRED, MSG_COLLATERAL_NOT_DELETED, MSG_COLLATERAL_NOT_SAVED, MSG_COLLATERAL_NOTEBOOK_TITLE, MSG_COLLATERAL_PREVIEW_DIALOG_TITLE, MSG_COLLATERAL_SAVED, MSG_COLLATERAL_TYPE, MSG_COLLATERAL_TYPE_PROMPT, MSG_COLLATERAL_URL_PROMPT, MSG_COLLATERAL_WIZARD_TITLE, MSG_CONDITION_GENERAL_PANEL_PROMPT, MSG_CREATE_CAMPAIGN, MSG_CREATE_INITIATIVE, MSG_DAY_PROMPT, MSG_DELETE_CAMPAIGN_ID_INVALID, MSG_DELETE_COLLATERAL_ID_INVALID, MSG_DELETE_EMS_ID_INVALID, MSG_DELETE_INITIATIVE_ID_INVALID, MSG_DISABLE_INITIATIVE_ID_INVALID, MSG_EMS_CHANGE, MSG_EMS_DELETED, MSG_EMS_DELETED_DIALOG_TITLE, MSG_EMS_DESCRIPTION_PROMPT, MSG_EMS_DIALOG_TITLE, MSG_EMS_EXISTS, MSG_EMS_LIST_DELETE_CONFIRMATION, MSG_EMS_LIST_DESCRIPTION_COLUMN, MSG_EMS_LIST_EMPTY, MSG_EMS_LIST_NAME_COLUMN, MSG_EMS_LIST_PROMPT, MSG_EMS_LIST_TITLE, MSG_EMS_NAME_PROMPT, MSG_EMS_NAME_REQUIRED, MSG_EMS_NEW, MSG_EMS_NOT_DELETED, MSG_EMS_NOT_SAVED, MSG_EMS_PANEL_PROMPT, MSG_EMS_PANEL_TITLE, MSG_EMS_SAVED, MSG_EMS_SUPPORTED_TYPES_PROMPT, MSG_FATAL_ERROR_BAD_CUSTOMER_BEHAVIOR_ID, MSG_FATAL_ERROR_BAD_SELECTED_ACTION, MSG_FATAL_ERROR_INVALID_WHEN_ADD_TYPE, MSG_FATAL_ERROR_MISSING_DATABEAN, MSG_FATAL_ERROR_NO_COLLATERAL_ID, MSG_INITIATIVE_ADD_BUTTON, MSG_INITIATIVE_AVAILABLE_PROMPT, MSG_INITIATIVE_CAMPAIGN_PROMPT, MSG_INITIATIVE_CHANGED, MSG_INITIATIVE_COUPON_EMPTY, MSG_INITIATIVE_COUPON_LIST_CODE_COLUMN, MSG_INITIATIVE_COUPON_LIST_DESCRIPTION_COLUMN, MSG_INITIATIVE_COUPON_LIST_EMPTY, MSG_INITIATIVE_COUPON_LIST_TITLE, MSG_INITIATIVE_COUPON_LIST_TOO_MANY, MSG_INITIATIVE_DESCRIPTION_PROMPT, MSG_INITIATIVE_DISCOUNT_EMPTY, MSG_INITIATIVE_DISCOUNT_LIST_CODE_COLUMN, MSG_INITIATIVE_DISCOUNT_LIST_DESCRIPTION_COLUMN, MSG_INITIATIVE_DISCOUNT_LIST_EMPTY, MSG_INITIATIVE_DISCOUNT_LIST_TITLE, MSG_INITIATIVE_DISCOUNT_LIST_TOO_MANY, MSG_INITIATIVE_EXISTS, MSG_INITIATIVE_GENERAL_PANEL, MSG_INITIATIVE_GENERAL_PANEL_PROMPT, MSG_INITIATIVE_GENERAL_PANEL_TITLE, MSG_INITIATIVE_LIST_CAMPAIGN_COLUMN, MSG_INITIATIVE_LIST_DELETE_CONFIRMATION, MSG_INITIATIVE_LIST_DESCRIPTION_COLUMN, MSG_INITIATIVE_LIST_EMPTY, MSG_INITIATIVE_LIST_LAST_UPDATE_COLUMN, MSG_INITIATIVE_LIST_LAST_UPDATED_BY_COLUMN, MSG_INITIATIVE_LIST_NAME_COLUMN, MSG_INITIATIVE_LIST_PROMPT, MSG_INITIATIVE_LIST_STATUS_COLUMN, MSG_INITIATIVE_LIST_SUMMARY, MSG_INITIATIVE_LIST_TITLE, MSG_INITIATIVE_NAME_PROMPT, MSG_INITIATIVE_NAME_REQUIRED, MSG_INITIATIVE_NOT_SAVED, MSG_INITIATIVE_NOTEBOOK_CANCEL_CONFIRMATION, MSG_INITIATIVE_NOTEBOOK_TITLE, MSG_INITIATIVE_REMOVE_BUTTON, MSG_INITIATIVE_SCHEDULE_CAMPAIGN_PROMPT, MSG_INITIATIVE_SCHEDULE_DIALOG_TITLE, MSG_INITIATIVE_SCHEDULE_END_PROMPT, MSG_INITIATIVE_SCHEDULE_LIST_DELETE_CONFIRMATION, MSG_INITIATIVE_SCHEDULE_LIST_EMPTY, MSG_INITIATIVE_SCHEDULE_LIST_END_DATE_COLUMN, MSG_INITIATIVE_SCHEDULE_LIST_INITIATIVE_COLUMN, MSG_INITIATIVE_SCHEDULE_LIST_PROMPT, MSG_INITIATIVE_SCHEDULE_LIST_START_DATE_COLUMN, MSG_INITIATIVE_SCHEDULE_LIST_SUMMARY, MSG_INITIATIVE_SCHEDULE_LIST_TITLE, MSG_INITIATIVE_SCHEDULE_NEVER_EXPIRES, MSG_INITIATIVE_SCHEDULE_PANEL_PROMPT, MSG_INITIATIVE_SCHEDULE_PANEL_TITLE, MSG_INITIATIVE_SCHEDULE_START_PROMPT, MSG_INITIATIVE_SELECTED_PROMPT, MSG_INITIATIVE_WHAT_ADD_SEARCH_FOR_SKUS, MSG_INITIATIVE_WHAT_ADD_SKU, MSG_INITIATIVE_WHAT_AND, MSG_INITIATIVE_WHAT_AVAILABLE_AFTER, MSG_INITIATIVE_WHAT_CATEGORY, MSG_INITIATIVE_WHAT_CATEGORY_PROMPT, MSG_INITIATIVE_WHAT_COLLABORATIVE_FILTERING, MSG_INITIATIVE_WHAT_COLLATERAL, MSG_INITIATIVE_WHAT_COLLATERAL_AVAILABLE, MSG_INITIATIVE_WHAT_COLLATERAL_COUPON, MSG_INITIATIVE_WHAT_COLLATERAL_COUPON_PROMPT, MSG_INITIATIVE_WHAT_COLLATERAL_DISCOUNT, MSG_INITIATIVE_WHAT_COLLATERAL_DISCOUNT_PROMPT, MSG_INITIATIVE_WHAT_COLLATERAL_GENERAL, MSG_INITIATIVE_WHAT_COLLATERAL_SELECTED, MSG_INITIATIVE_WHAT_EQUAL_TO, MSG_INITIATIVE_WHAT_FIND_SKU, MSG_INITIATIVE_WHAT_FOLLOWING_CRITERIA, MSG_INITIATIVE_WHAT_GREATER_THAN, MSG_INITIATIVE_WHAT_INVENTORY_LEVEL, MSG_INITIATIVE_WHAT_LESS_THAN, MSG_INITIATIVE_WHAT_LIST_PRICE, MSG_INITIATIVE_WHAT_MIXED_LANGUAGE, MSG_INITIATIVE_WHAT_NA, MSG_INITIATIVE_WHAT_OFFER_PRICE, MSG_INITIATIVE_WHAT_PANEL, MSG_INITIATIVE_WHAT_PANEL_PROMPT, MSG_INITIATIVE_WHAT_PANEL_TITLE, MSG_INITIATIVE_WHAT_PRODUCT_DESCRIPTION, MSG_INITIATIVE_WHAT_RECOMMEND_CATEGORY, MSG_INITIATIVE_WHAT_REMOVE_SKU, MSG_INITIATIVE_WHAT_SELECTED_PRODUCTS, MSG_INITIATIVE_WHAT_SKU_BEGIN_WITH, MSG_INITIATIVE_WHAT_SPECIFIC_PRODUCT, MSG_INITIATIVE_WHEN_DAY_PANEL, MSG_INITIATIVE_WHEN_DAY_PANEL_TITLE, MSG_INITIATIVE_WHEN_DAY_PROMPT, MSG_INITIATIVE_WHEN_PANEL, MSG_INITIATIVE_WHEN_PANEL_TITLE, MSG_INITIATIVE_WHO_ADD_BUTTON, MSG_INITIATIVE_WHO_ALL_SHOPPERS, MSG_INITIATIVE_WHO_PANEL, MSG_INITIATIVE_WHO_PANEL_PROMPT, MSG_INITIATIVE_WHO_PANEL_TITLE, MSG_INITIATIVE_WHO_REMOVE_BUTTON, MSG_INITIATIVE_WHO_SEGMENTS_AVAILABLE_PROMPT, MSG_INITIATIVE_WHO_SEGMENTS_SELECTED_PROMPT, MSG_INITIATIVE_WHO_TARGET_SEGMENTS, MSG_INITIATIVE_WIZARD_CANCEL_CONFIRMATION, MSG_INITIATIVE_WIZARD_SUCCESS_CONFIRMATION, MSG_INITIATIVE_WIZARD_TITLE, MSG_INITIATIVES_DELETED, MSG_INITIATIVES_DELETED_DIALOG_OK_BUTTON, MSG_INITIATIVES_DELETED_DIALOG_TITLE, MSG_INITIATIVES_DISABLED, MSG_INITIATIVES_DISABLED_DIALOG_OK_BUTTON, MSG_INITIATIVES_DISABLED_DIALOG_TITLE, MSG_INITIATIVES_NOT_DELETED, MSG_INITIATIVES_NOT_DISABLED, MSG_INVALID_CHARACTER, MSG_INVALID_DATE, MSG_INVALID_TIME, MSG_MONTH_PROMPT, MSG_NEVER, MSG_NO_CAMPAIGN, MSG_NO_CAMPAIGNS_DELETED, MSG_NO_COLLATERAL_DEFINED, MSG_NO_COLLATERAL_DELETED, MSG_NO_COLLATERAL_SELECTED, MSG_NO_DISCOUNT_SELECTED, MSG_NO_EMS_DELETED, MSG_NO_INITIATIVES_DELETED, MSG_NO_INITIATIVES_DISABLED, MSG_PLEASE_CHOOSE_CUSTOMER_BEHAVIOR, MSG_PLEASE_CREATE_CUSTOMER_PROFILE_FIRST, MSG_PLEASE_ENTER_AN_ALPHANUMERIC_NAME, MSG_PLEASE_ENTER_END_AFTER_START_DATE, MSG_PLEASE_ENTER_END_AFTER_START_DATETIME, MSG_PLEASE_ENTER_VALID_AMOUNT, MSG_PLEASE_ENTER_VALID_CATEGORY, MSG_PLEASE_ENTER_VALID_SKU, MSG_PLEASE_SELECT_AT_LEAST_ONE_INITIATIVE, MSG_PLEASE_SELECT_AT_LEAST_ONE_SKU, MSG_PLEASE_SELECT_ATLEAST_ONE_PROFILE, MSG_PLEASE_SELECT_ONE_DAY, MSG_PLEASE_SELECT_ONE_FILTER, MSG_PLEASE_SELECT_VALID_INVENTORY_QUANTITY, MSG_PLEASE_SELECT_VALID_INVENTORY_RANGE, MSG_PLEASE_SELECT_VALID_PRICE_RANGE, MSG_SELECT_SKU_TO_REMOVE, MSG_SELL_TYPE_PROMPT, MSG_SKU_CANNOT_BE_EMPTY, MSG_SKUSEARCH_CANNOT_BE_EMPTY, MSG_STATISTICS_CLICKS, MSG_STATISTICS_NO_STATS_FOUND, MSG_STATISTICS_PAGE_ELEMENT, MSG_STATISTICS_PAGE_TITLE, MSG_STATISTICS_RATIO, MSG_STATISTICS_VIEWS, MSG_TIME_PROMPT, MSG_UPDATE_CAMPAIGN, MSG_UPDATE_INITIATIVE, MSG_WHEN_ADD_AMOUNT, MSG_WHEN_ADD_BROWSING_PRODUCT, MSG_WHEN_ADD_CUSTOMER_BEHAVIOR, MSG_WHEN_ADD_FIND_SKU, MSG_WHEN_ADD_PRODUCT_SKU, MSG_WHEN_ADD_PRODUCTS_FROM_CATEGORY, MSG_WHEN_ADD_PROMPT, MSG_WHEN_ADD_PURCHASE_HISTORY_CONTAINS, MSG_WHEN_ADD_PURCHASE_HISTORY_DOES_NOT_CONTAIN, MSG_WHEN_ADD_SHOP_CART_TOTAL_EQUAL_TO, MSG_WHEN_ADD_SHOP_CART_TOTAL_GREATER_THAN, MSG_WHEN_ADD_SHOP_CART_TOTAL_LESS_THAN, MSG_WHEN_ADD_SHOPPING_CART_CONTAINS, MSG_WHEN_ADD_SHOPPING_CART_DOES_NOT_CONTAIN, MSG_WHEN_ADD_TITLE, MSG_WHEN_ADD_TYPE_CATEGORY, MSG_WHEN_ADD_TYPE_PRICE, MSG_WHEN_ADD_TYPE_SKU, MSG_WHEN_LIST_ALWAYS, MSG_WHEN_LIST_CUSTOMER_BEHAVIOUR, MSG_WHEN_LIST_DELETE_CONFIRMATION, MSG_WHEN_LIST_EMPTY, MSG_WHEN_LIST_EVERYDAY, MSG_WHEN_LIST_FRIDAY, MSG_WHEN_LIST_MONDAY, MSG_WHEN_LIST_NOT_EVERYDAY, MSG_WHEN_LIST_ONLY_WHEN, MSG_WHEN_LIST_PROMPT, MSG_WHEN_LIST_SATURDAY, MSG_WHEN_LIST_SCHEDULE_FILTER, MSG_WHEN_LIST_SUMMARY, MSG_WHEN_LIST_SUNDAY, MSG_WHEN_LIST_THURSDAY, MSG_WHEN_LIST_TITLE, MSG_WHEN_LIST_TUESDAY, MSG_WHEN_LIST_TYPE, MSG_WHEN_LIST_VALUE, MSG_WHEN_LIST_WEDNESDAY, MSG_YEAR_PROMPT, OPEN_CONDITION_PARAMETER_COMPARISON_TYPE, OPEN_CONDITION_PARAMETER_CURRENCY, OPEN_CONDITION_PARAMETER_LANGUAGE, OPEN_CONDITION_PARAMETER_VALUE, OPEN_CONDITION_PURCHASE_HISTORY_CATEGORY, OPEN_CONDITION_PURCHASE_HISTORY_SKU, OPEN_CONDITION_SHOPPING_CART_CATEGORY, OPEN_CONDITION_SHOPPING_CART_SKU, OPEN_CONDITION_SHOPPING_CART_TOTAL, operatorArray, ORDER_BY_CAMPAIGN, ORDER_BY_CLICKS, ORDER_BY_CODE, ORDER_BY_DESCRIPTION, ORDER_BY_END_DATE, ORDER_BY_INITIATIVE, ORDER_BY_LAST_UPDATE, ORDER_BY_LAST_UPDATED_BY, ORDER_BY_NAME, ORDER_BY_PAGE_ELEMENT, ORDER_BY_START_DATE, ORDER_BY_STATUS, ORDER_BY_TYPE, ORDER_BY_VIEWS, PARAMETER_ACTION_XML_FILE, PARAMETER_CAMPAIGN_BLAZE_IMPLEMENTATION, PARAMETER_CAMPAIGN_ID, PARAMETER_CAMPAIGN_ID_INVALID, PARAMETER_CAMPAIGN_IDS, PARAMETER_CAMPAIGNS_DELETED, PARAMETER_CAMPAIGNS_NOT_DELETED, PARAMETER_CMD, PARAMETER_COLLATERAL_DELETED, PARAMETER_COLLATERAL_ID, PARAMETER_COLLATERAL_ID_INVALID, PARAMETER_COLLATERAL_IDS, PARAMETER_COLLATERAL_NOT_DELETED, PARAMETER_COUPON_ID, PARAMETER_DISCOUNT_ID, PARAMETER_EMS_DELETED, PARAMETER_EMS_ID, PARAMETER_EMS_ID_INVALID, PARAMETER_EMS_IDS, PARAMETER_EMS_NOT_DELETED, PARAMETER_INITIATIVE_ID, PARAMETER_INITIATIVE_ID_INVALID, PARAMETER_INITIATIVE_IDS, PARAMETER_INITIATIVE_SCHEDULE_IDS, PARAMETER_INITIATIVE_STATUS, PARAMETER_INITIATIVE_TYPE, PARAMETER_INITIATIVES_DELETED, PARAMETER_INITIATIVES_DISABLED, PARAMETER_INITIATIVES_NOT_DELETED, PARAMETER_INITIATIVES_NOT_DISABLED, PARAMETER_INTV_ID, PARAMETER_LIST_SIZE, PARAMETER_NEW_CAMPAIGN, PARAMETER_NEW_INITIATIVE, PARAMETER_ORDER_BY, PARAMETER_PRODUCTION_SERVER, PARAMETER_REFNUM, PARAMETER_REMOTE_URL, PARAMETER_SELECTED, PARAMETER_START_INDEX, PARAMETER_STATE, PRICE, PRODUCT_DESCRIPTION, PROJECT_CAMPAIGN_INITIATIVE_EVALUATOR, PROJECT_PURCHASE_HISTORY_CATEGORY, PROJECT_PURCHASE_HISTORY_SKU, PROJECT_SHOPPING_CART_CATEGORY, PROJECT_SHOPPING_CART_SKU, PROJECT_SHOPPING_CART_TOTAL, PURCHASE_HISTORY_CONTAINS, PURCHASE_HISTORY_DOESNOT_CONTAIN, QUALIFIER_CURRENCY, QUALIFIER_LANGUAGE, SATURDAY, SELL_TYPE_COUPON, SELL_TYPE_CROSS_SELL, SELL_TYPE_DISCOUNT, SELL_TYPE_GENERAL, SELL_TYPE_UPSELL, sellTypeArray, SERVICE_CAMPAIGN_INITIATIVE_EVALUATOR, SERVICE_PURCHASE_HISTORY_CATEGORY, SERVICE_PURCHASE_HISTORY_SKU, SERVICE_SHOPPING_CART_CATEGORY, SERVICE_SHOPPING_CART_SKU, SERVICE_SHOPPING_CART_TOTAL, SHOPCART_TOTAL_EQUALTO, SHOPCART_TOTAL_GREATERTHAN, SHOPCART_TOTAL_LESSTHAN, SHOPPING_CART_CONTAINS, SHOPPING_CART_DOESNOT_CONTAIN, SKU, STATE_ACTIVE, STATE_ALL, STATE_SUSPEND, SUNDAY, THURSDAY, TIMESTAMP_END_OF_TIME, TUESDAY, URL_ACCEPT_COUPON, URL_CAMPAIGN_CATEGORY_LIST_VIEW, URL_CAMPAIGN_CHECK_USER, URL_CAMPAIGN_DELETE, URL_CAMPAIGN_DELETE_REDIRECT_VIEW, URL_CAMPAIGN_INITIATIVE_COUPON_VIEW, URL_CAMPAIGN_INITIATIVE_DELETE, URL_CAMPAIGN_INITIATIVE_DELETE_REDIRECT_VIEW, URL_CAMPAIGN_INITIATIVE_DISABLE, URL_CAMPAIGN_INITIATIVE_DISABLE_REDIRECT_VIEW, URL_CAMPAIGN_INITIATIVE_DISCOUNT_VIEW, URL_CAMPAIGN_INITIATIVE_NOTEBOOK_VIEW, URL_CAMPAIGN_INITIATIVE_SCHEDULE_DELETE, URL_CAMPAIGN_INITIATIVE_SCHEDULE_DIALOG_VIEW, URL_CAMPAIGN_INITIATIVE_SCHEDULE_LIST_VIEW, URL_CAMPAIGN_INITIATIVE_SCHEDULES_VIEW, URL_CAMPAIGN_INITIATIVE_STATISTICS_REMOTE_VIEW, URL_CAMPAIGN_INITIATIVE_STATISTICS_VIEW, URL_CAMPAIGN_INITIATIVE_TYPE_DIALOG_VIEW, URL_CAMPAIGN_INITIATIVE_WHEN_ADD_DIALOG_VIEW, URL_CAMPAIGN_INITIATIVE_WIZARD_VIEW, URL_CAMPAIGN_INITIATIVES_DELETED_DIALOG_VIEW, URL_CAMPAIGN_INITIATIVES_DISABLED_DIALOG_VIEW, URL_CAMPAIGN_INITIATIVES_VIEW, URL_CAMPAIGN_NOTEBOOK_VIEW, URL_CAMPAIGN_PRODUCT_BROWSE_DIALOG_VIEW, URL_CAMPAIGN_PRODUCT_BROWSE_SINGLE_DIALOG_VIEW, URL_CAMPAIGN_PRODUCT_BROWSE_TREE_CONTENT, URL_CAMPAIGN_PRODUCT_FIND_DIALOG_VIEW, URL_CAMPAIGN_STATISTICS_LOGON_VIEW, URL_CAMPAIGN_STATISTICS_REMOTE_VIEW, URL_CAMPAIGN_WIZARD_VIEW, URL_CAMPAIGNS_DELETED_DIALOG_VIEW, URL_CAMPAIGNS_VIEW, URL_CATEGORY_DISPLAY, URL_COLLATERAL_DELETE, URL_COLLATERAL_DELETE_REDIRECT_VIEW, URL_COLLATERAL_DELETED_DIALOG_VIEW, URL_COLLATERAL_NOTEBOOK_VIEW, URL_COLLATERAL_PREVIEW_DIALOG_VIEW, URL_COLLATERAL_VIEW, URL_COLLATERAL_WIZARD_VIEW, URL_EMS_DELETE, URL_EMS_DELETE_REDIRECT_VIEW, URL_EMS_DELETED_DIALOG_VIEW, URL_EMS_DIALOG_VIEW, URL_EMS_VIEW, URL_INTEREST_ITEM_ADD, URL_INTEREST_ITEM_DISPLAY, URL_ORDER_ITEM_ADD, URL_ORDER_ITEM_DISPLAY, URL_PRODUCT_DISPLAY, VARIABLE_DAY_OF_WEEK, VARIABLE_PURCHASE_HISTORY_CATEGORY, VARIABLE_PURCHASE_HISTORY_SKU, VARIABLE_SEGMENT, VARIABLE_SHOPPING_CART_CATEGORY, VARIABLE_SHOPPING_CART_SKU, VARIABLE_SHOPPING_CART_TOTAL, WEDNESDAY, WHAT_TYPE_CATEGORY, WHAT_TYPE_COLLABORATIVE_FILTERING, WHAT_TYPE_COLLATERAL, WHAT_TYPE_COUPON_COLLATERAL, WHAT_TYPE_DISCOUNT_COLLATERAL, WHAT_TYPE_PRODUCT_ATTRIBUTES, WHAT_TYPE_SPECIFIC_PRODUCTS, whenArray
 
Fields inherited from interface com.ibm.commerce.condition.ConditionConstants
AND_LIST_CONDITION, OPEN_CONDITION, OPERATOR_CONTAINS, OPERATOR_DOES_NOT_CONTAIN, OPERATOR_DOES_NOT_END_WITH, OPERATOR_DOES_NOT_START_WITH, OPERATOR_ENDS_WITH, OPERATOR_EQUAL_TO, OPERATOR_GREATER_THAN, OPERATOR_GREATER_THAN_OR_EQUAL_TO, OPERATOR_LESS_THAN, OPERATOR_LESS_THAN_OR_EQUAL_TO, OPERATOR_NOT_EQUAL_TO, OPERATOR_STARTS_WITH, OR_LIST_CONDITION, SIMPLE_CONDITION, TRUE_CONDITION, XML_DTD_FRAGMENT, XML_INDENT
 
Constructor Summary
CampaignInitiativeEvaluateCmdImpl()
           
 
Method Summary
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 conditions are being successfully evaluated.
protected  void addCategory(java.lang.String categoryName, java.lang.Integer initiativeId, java.util.Vector memberIds)
          The addCategory method is used to add categories to the e-marketing spot, after all conditions are being 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 are being successfully evaluated.
protected  void appendCampaignLogResults(java.lang.Object object)
          The appendCampaignLogResults method writes the execution log of the campaign initiative.
 boolean evaluate(java.lang.String name, OpenCondition.Parameter[] parameters)
          This evaluate method is used to evaluate open conditions using rule service.
 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 evaluateCoupon(java.lang.String collateralName)
          The evaluateCoupon method is used to evaluate the WHAT condition of coupon advertisement type.
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 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 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.
protected  CampaignInitiativeContext getCampaignInitiativeContext()
          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 given the 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  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.
protected  InvokePersonalizationRuleServiceCommand getInvokePersonalizationRuleServiceCommand()
          Invokes the personalization rule service.
protected  com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] getPurchaseHistoryCatalogGroups(java.lang.String language)
          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  com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] getShoppingCartCatalogGroups(java.lang.String language)
          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.
protected  WCSRecommendationServer getWCSRecommendationServer()
          Gets the instance of the likemind server.
protected  boolean invokeService(java.lang.String serviceName, CampaignInitiativeContext campaignInitiativeContext)
          The invokeService method is used to invoke the rule service to evaluate conditions.
 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 specific to category recommendations.
protected  void performCollaborativeFiltering(Action.Parameter[] parameters)
          Performs the execution of the command, used specific to collaborative filtering.
protected  void performCouponAd(Action.Parameter[] parameters)
          Performs the execution of the command, used specific to coupon advertisements.
protected  void performDiscountAd(Action.Parameter[] parameters)
          Performs the execution of the command, used specific to discount advertisements.
 void performExecute()
          Performs the execution of the command.
protected  void performSuggestiveSell(Action.Parameter[] parameters)
          Performs the execution of the command, used specific to suggestive sellings.
protected  boolean populateCatalogEntryResults(java.lang.Integer initiativeId)
          Populate the results on catalog entry.
protected  boolean populateCategoryResults(java.lang.Integer initiativeId)
          Populate the results on category.
protected  boolean populateCollateralResults(java.lang.Integer initiativeId)
          Populate the results on ad copy.
protected  boolean populateResults(java.lang.Integer initiativeId)
          Populate the results on all e-marketing spot display types.
 void setEMarketingSpotName(java.lang.String eMarketingSpotName)
          Sets the name of the 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.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

_campaignInitiativeContext

protected CampaignInitiativeContext _campaignInitiativeContext
An instance of the CampaignInitiativeContext object.

_campaignLogResults

protected java.lang.String _campaignLogResults
Campaign initiative log results.

_campaignLogSegments

protected java.lang.String _campaignLogSegments
Campaign initiative log segments.

_catalogEntryIds

protected java.util.Vector _catalogEntryIds
Catalog entry IDs used in the evaluation of this initiative on what to show in the e-marketing spot.

_catalogEntryResults

protected java.util.Vector _catalogEntryResults
Catalog entry results used in the evaluation of this initiative on what to show in the e-marketing spot.

_categoryNames

protected java.util.Vector _categoryNames
Category names used in the evaluation of this initiative on what to show in the e-marketing spot.

_categoryResults

protected java.util.Vector _categoryResults
Category results used in the evaluation of this initiative on what to show in the e-marketing spot.

_checkCurrentUserInMemberGroupCmd

protected CheckCurrentUserInMemberGroupCmd _checkCurrentUserInMemberGroupCmd
An instance of the CheckCurrentUserInMemberGroupCmd object.

_collateralNames

protected java.util.Vector _collateralNames
Collateral names used in the evaluation of this initiative on what to show in the e-marketing spot.

_collateralResults

protected java.util.Vector _collateralResults
Collateral results used in the evaluation of this initiative on what to show in the e-marketing spot.

_dayOfWeek

protected java.lang.String _dayOfWeek
Campaign initiative WHEN condition a day of the week

_eMarketingSpotId

protected java.lang.Integer _eMarketingSpotId
e-Marketing spot ID.

_eMarketingSpotName

protected java.lang.String _eMarketingSpotName
e-Marketing spot name.

_invokePersonalizationRuleServiceCommand

protected InvokePersonalizationRuleServiceCommand _invokePersonalizationRuleServiceCommand
An instance of the InvokePersonalizationRuleServiceCommand object.

_maximumNumberOfCatalogEntries

protected int _maximumNumberOfCatalogEntries
Maximum number of catalog entries in this e-marketing spot.

_maximumNumberOfCategories

protected int _maximumNumberOfCategories
Maximum number of categories in this e-marketing spot.

_maximumNumberOfCollateral

protected int _maximumNumberOfCollateral
Maximum number of ad copies in this e-marketing spot.

_purchaseHistoryCatalogGroups

protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] _purchaseHistoryCatalogGroups
An array of instances of the CatalogGroupResultBean object, used to check the purchase history.

_purchaseHistoryCatalogGroupsLanguage

protected java.lang.String _purchaseHistoryCatalogGroupsLanguage
The language of the catalog group in the purchase history.

_purchaseHistoryCategories

protected java.lang.String[] _purchaseHistoryCategories
An array of the categories in the purchase history.

_purchaseHistoryOrderItems

protected OrderItemAccessBean[] _purchaseHistoryOrderItems
An array of instances of the OrderItemAccessBean object, used to check the purchase history.

_selectQuery

protected SelectQuery _selectQuery
An instance of the SelectQuery object.

_shoppingCartCatalogGroups

protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] _shoppingCartCatalogGroups
An array of instances of the CatalogGroupResultBean object, used to check the shopping cart.

_shoppingCartCatalogGroupsLanguage

protected java.lang.String _shoppingCartCatalogGroupsLanguage
The language of the catalog group in the shopping cart.

_shoppingCartOrderAccessBean

protected OrderAccessBean _shoppingCartOrderAccessBean
An instance of the OrderAccessBean object, used to check the shopping cart.

_shoppingCartOrderItems

protected OrderItemAccessBean[] _shoppingCartOrderItems
An array of instances of the OrderItemAccessBean object, used to check the shopping cart.

_shoppingCartTotal

protected java.math.BigDecimal _shoppingCartTotal
The current total amount in the shopping cart.

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
Constructor Detail

CampaignInitiativeEvaluateCmdImpl

public CampaignInitiativeEvaluateCmdImpl()
Method Detail

addCatalogEntry

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 conditions are being successfully evaluated.
Parameters:
catalogEntryId - The ID of the catalog entry.
initiativeId - The ID of the campaign initiative.

addCategory

protected void addCategory(java.lang.String categoryName,
                           java.lang.Integer initiativeId,
                           java.util.Vector memberIds)
The addCategory method is used to add categories to the e-marketing spot, after all conditions are being successfully evaluated.
Parameters:
categoryName - The name of the category.
initiativeId - The ID of the campaign initiative.
memberIds - A vector of member IDs associated with the catalog used in the current store.

addCollateral

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 are being successfully evaluated.
Parameters:
collateralName - The name of the ad copies.
initiativeId - The ID of the campaign initiative.
storeId - The ID of the current store.
languageId - The ID of the language that is currently used.

appendCampaignLogResults

protected void appendCampaignLogResults(java.lang.Object object)
The appendCampaignLogResults method writes the execution log of the campaign initiative.
Parameters:
object - The campaign initiative result log.

evaluate

public boolean evaluate(java.lang.String name,
                        OpenCondition.Parameter[] parameters)
This evaluate method is used to evaluate open conditions using rule service. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Specified by:
evaluate in interface Evaluator
Parameters:
name - The name of the condition.
parameters - The parameters of the condition.
Returns:
true if the evaluation is successful.

evaluate

public 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. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Specified by:
evaluate in interface Evaluator
Parameters:
variable - The condition variable, indicates the type of WHICH condition to be evaluated.
operator - The operator of the condition.
value - The value of the condition.
qualifiers - The qualifiers of the condition.
Returns:
true if the evaluation is successful.

evaluateCoupon

protected boolean evaluateCoupon(java.lang.String collateralName)
                          throws java.lang.Exception
The evaluateCoupon method is used to evaluate the WHAT condition of coupon advertisement type. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Parameters:
collateralName - The name of the coupon promotion.
Returns:
true if the evaluation is successful.

evaluateDayOfWeek

protected boolean evaluateDayOfWeek(java.lang.String operator,
                                    java.lang.String value,
                                    SimpleCondition.Qualifier[] qualifiers)
The evaluateDayOfWeek method is used to evaluate the WHEN condition. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Parameters:
operator - The operator of the condition.
value - The value of the condition.
qualifiers - The qualifiers of the condition.
Returns:
true if the evaluation is successful.

evaluateDiscount

protected boolean evaluateDiscount(java.lang.String discountUsage,
                                   java.lang.String discountCode)
                            throws java.lang.Exception
The evaluateDiscount method is used to evaluate the WHAT condition of discount advertisement type. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Parameters:
discountUsage - The details of the discount.
discountCode - The code of the discount.
Returns:
true if the evaluation is successful.

evaluatePurchaseHistoryCategory

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. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Parameters:
operator - The operator of the condition.
value - The operator of the condition.
qualifiers - The qualifiers of the condition.
Returns:
true if the evaluation is successful.

evaluatePurchaseHistorySku

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. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Parameters:
operator - The operator of the condition.
value - The operator of the condition.
qualifiers - The qualifiers of the condition.
Returns:
true if the evaluation is successful.

evaluateSegmentCondition

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. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Parameters:
operator - The operator of the condition.
value - The operator of the condition.
qualifiers - The qualifiers of the condition.
Returns:
true if the evaluation is successful.

evaluateShoppingCartCategory

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. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Parameters:
operator - The operator of the condition.
value - The operator of the condition.
qualifiers - The qualifiers of the condition.
Returns:
true if the evaluation is successful.

evaluateShoppingCartSku

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 if it contains the specified SKU. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Parameters:
operator - The operator of the condition.
value - The operator of the condition.
qualifiers - The qualifiers of the condition.
Returns:
true if the evaluation is successful.

evaluateShoppingCartTotal

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. A flag is returned indicates whether the evaluation of all the conditions is successful or not.
Parameters:
operator - The operator of the condition.
value - The operator of the condition.
qualifiers - The qualifiers of the condition.
Returns:
true if the evaluation is successful.

getCampaignInitiativeContext

protected CampaignInitiativeContext getCampaignInitiativeContext()
Gets the campaign initiative context object.
Returns:
The campaign initiative context object.

getCatalogEntries

public EMarketingSpot.CatalogEntry[] getCatalogEntries()
Gets the catalog entries to be displayed in the e-marketing spot.
Specified by:
getCatalogEntries in interface CampaignInitiativeEvaluateCmd
Returns:
The catalog entries to be displayed in the e-marketing spot.

getCategories

public EMarketingSpot.Category[] getCategories()
Gets the categories to be displayed in the e-marketing spot.
Specified by:
getCategories in interface CampaignInitiativeEvaluateCmd
Returns:
The categories to be displayed in the e-marketing spot.

getCategoryName

protected java.lang.String getCategoryName(java.lang.String categoryIdentifier)
Gets the category name given the category identifier.
Parameters:
categoryIdentifier - The category identifier.
Returns:
The name of the category.

getCheckCurrentUserInMemberGroupCmd

protected CheckCurrentUserInMemberGroupCmd getCheckCurrentUserInMemberGroupCmd()
Gets the current user in the member group.
Returns:
The CheckCurrentUserInMemberGroupCmd object of the current condition.

getCollateral

public EMarketingSpot.Collateral[] getCollateral()
Gets the ad copies to be displayed in the e-marketing spot.
Specified by:
getCollateral in interface CampaignInitiativeEvaluateCmd
Returns:
The ad copies to be displayed in the e-marketing spot.

getDayOfWeek

protected java.lang.String getDayOfWeek()
Gets the current day of the week from the java Calendar object.
Returns:
The current day of the week constant.

getEMarketingSpotId

public java.lang.Integer getEMarketingSpotId()
Gets the e-marketing spot ID.
Specified by:
getEMarketingSpotId in interface CampaignInitiativeEvaluateCmd
Returns:
The ID of the e-marketing spot.

getInvokePersonalizationRuleServiceCommand

protected InvokePersonalizationRuleServiceCommand getInvokePersonalizationRuleServiceCommand()
Invokes the personalization rule service.
Returns:
The InvokePersonalizationRuleServiceCommand object.

getPurchaseHistoryCatalogGroups

protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] getPurchaseHistoryCatalogGroups(java.lang.String language)
Gets the catalog groups from the purchase history of the store.
Parameters:
language - Language description of the catalog group.
Returns:
An array of resulted catalog groups.

getPurchaseHistoryCategories

protected java.lang.String[] getPurchaseHistoryCategories(java.lang.String language)
Gets the categories from the purchase history of the store.
Parameters:
language - Language description of the category.
Returns:
An array of resulted categories.

getPurchaseHistoryOrderItems

protected OrderItemAccessBean[] getPurchaseHistoryOrderItems()
Gets the order items from the purchase history of the store.
Returns:
An array of resulted order items.

getSelectQueryOperator

protected int getSelectQueryOperator(java.lang.String operator)
Gets the integer constant to be used in the SelectQuery class.
Parameters:
operator - The operator of the condition.
Returns:
An integer constant to be used in the SelectQuery class.

getShoppingCartCatalogGroups

protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] getShoppingCartCatalogGroups(java.lang.String language)
Gets the catalog groups from the shopping cart of the store.
Parameters:
language - Language description of the catalog group.
Returns:
An array of resulted catalog groups.

getShoppingCartOrderAccessBean

protected OrderAccessBean getShoppingCartOrderAccessBean()
Gets the order item from the shopping cart of the store.
Returns:
The resulted order item.

getShoppingCartOrderItems

protected OrderItemAccessBean[] getShoppingCartOrderItems()
Gets the order items from the shopping cart of the store.
Returns:
An array of the resulted order items.

getShoppingCartTotal

protected java.math.BigDecimal getShoppingCartTotal(java.lang.String currency)
Gets the total amount from the shopping cart of the store.
Parameters:
currency - The currency used in the store.
Returns:
The total amount from the shopping cart of the store.

getWCSRecommendationServer

protected WCSRecommendationServer getWCSRecommendationServer()
Gets the instance of the likemind server.
Returns:
An instance of the likemind server.

invokeService

protected boolean invokeService(java.lang.String serviceName,
                                CampaignInitiativeContext campaignInitiativeContext)
The invokeService method is used to invoke the rule service to evaluate conditions. A flag is returned indicates whether the rule service is started successfully or not.
Parameters:
serviceName - The name of the rule service.
campaignInitiativeContext - An instance of the CampaignInitiativeContext object.
Returns:
true if the service has been successfully invoked.

isReadyToCallExecute

public boolean isReadyToCallExecute()
Checks to see if the command is ready to call. This method will return false if the e-marketing spot name is null.
Overrides:
isReadyToCallExecute in class AbstractECCommand
Returns:
true if the command is ready to go.

performAction

public void performAction(Action action)
Performs the execution of the command.
Specified by:
performAction in interface ActionHandler
Parameters:
action - The type of action to be executed.

performAwarenessAd

protected void performAwarenessAd(Action.Parameter[] parameters)
Performs the execution of the command, used specific to general advertisements.
Parameters:
parameters - The parameters of the action conditions.

performCategoryRecommendation

protected void performCategoryRecommendation(Action.Parameter[] parameters)
Performs the execution of the command, used specific to category recommendations.
Parameters:
parameters - The parameters of the action conditions.

performCollaborativeFiltering

protected void performCollaborativeFiltering(Action.Parameter[] parameters)
Performs the execution of the command, used specific to collaborative filtering.
Parameters:
parameters - The parameters of the action conditions.

performCouponAd

protected void performCouponAd(Action.Parameter[] parameters)
Performs the execution of the command, used specific to coupon advertisements.
Parameters:
parameters - The parameters of the action conditions.

performDiscountAd

protected void performDiscountAd(Action.Parameter[] parameters)
Performs the execution of the command, used specific to discount advertisements.
Parameters:
parameters - The parameters of the action conditions.

performExecute

public void performExecute()
                    throws ECException
Performs the execution of the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

performSuggestiveSell

protected void performSuggestiveSell(Action.Parameter[] parameters)
Performs the execution of the command, used specific to suggestive sellings.
Parameters:
parameters - The parameters of the action conditions.

populateCatalogEntryResults

protected boolean populateCatalogEntryResults(java.lang.Integer initiativeId)
Populate the results on catalog entry.
Parameters:
initiativeId - The ID of the campaign initiative.
Returns:
true if results are returned.

populateCategoryResults

protected boolean populateCategoryResults(java.lang.Integer initiativeId)
Populate the results on category.
Parameters:
initiativeId - The ID of the campaign initiative.
Returns:
true if results are returned.

populateCollateralResults

protected boolean populateCollateralResults(java.lang.Integer initiativeId)
Populate the results on ad copy.
Parameters:
initiativeId - The ID of the campaign initiative.
Returns:
true if results are returned.

populateResults

protected boolean populateResults(java.lang.Integer initiativeId)
Populate the results on all e-marketing spot display types.
Parameters:
initiativeId - The ID of the campaign initiative.
Returns:
true if results are returned.

setEMarketingSpotName

public void setEMarketingSpotName(java.lang.String eMarketingSpotName)
Sets the name of the e-marketing spot.
Specified by:
setEMarketingSpotName in interface CampaignInitiativeEvaluateCmd
Parameters:
eMarketingSpotName - The name of the e-marketing spot.

setMaximumNumberOfCatalogEntries

public void setMaximumNumberOfCatalogEntries(int maximumNumberOfCatalogEntries)
Sets the maximum number of catalog entries can be displayed in an e-marketing spot.
Specified by:
setMaximumNumberOfCatalogEntries in interface CampaignInitiativeEvaluateCmd
Parameters:
maximumNumberOfCatalogEntries - The maximum number of catalog entries can be displayed in an e-marketing spot.

setMaximumNumberOfCategories

public void setMaximumNumberOfCategories(int maximumNumberOfCategories)
Sets the maximum number of categories can be displayed in an e-marketing spot.
Specified by:
setMaximumNumberOfCategories in interface CampaignInitiativeEvaluateCmd
Parameters:
maximumNumberOfCategories - The maximum number of categories can be displayed in an e-marketing spot.

setMaximumNumberOfCollateral

public void setMaximumNumberOfCollateral(int maximumNumberOfCollateral)
Sets the maximum number of ad copies can be displayed in an e-marketing spot.
Specified by:
setMaximumNumberOfCollateral in interface CampaignInitiativeEvaluateCmd
Parameters:
maximumNumberOfCollateral - The maximum number of ad copies can be displayed in an e-marketing spot.