java.lang.Objectcom.ibm.commerce.tools.campaigns.CampaignInitiativeContext
This class is used to map contextual information into Blaze projects.
Field Summary | |
protected CommandContext | _commandContext The command context. |
protected java.lang.String | _conditionName The open condition name. |
protected OpenCondition.Parameter[] | _parameters The array of open condition parameters. |
protected CatalogGroupResultBean[][] | _purchaseHistoryCatalogGroups An array of CatalogGroupResultBean objects from the purchase history. |
protected java.lang.String | _purchaseHistoryCatalogGroupsLanguage The language of the purchase history catalog grouups. |
protected java.lang.String[] | _purchaseHistoryCategories An arrray of purchase history categories. |
protected OrderItemAccessBean[] | _purchaseHistoryOrderItems An array of OrderItemAccessBean objects from the purchase history. |
protected boolean | _result Result returned by the rules project. |
protected OrderAccessBean | _shoppingCartOrderAccessBean The OrderAccessBean that represents the shopping cart. |
protected OrderItemAccessBean[] | _shoppingCartOrderItems An array of OrderItemAccessBean objects from the shopping cart. |
protected java.math.BigDecimal | _shoppingCartTotal Shopping cart total. |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
Constructor Summary | |
CampaignInitiativeContext() |
Method Summary | |
java.math.BigDecimal | getBigDecimalParameterValue(java.lang.String parameterName) Gets the specified BigDecimal parameter. |
CommandContext | getCommandContext() Gets the command context. |
java.lang.String | getConditionName() Gets the open condition name. |
java.lang.Integer | getIntegerParameterValue(java.lang.String parameterName) Gets the specified Integer parameter. |
java.lang.Long | getLongParameterValue(java.lang.String parameterName) Gets the specified Long parameter. |
OpenCondition.Parameter[] | getParameters() Gets the open condition parameters. |
java.lang.String | getParameterValue(java.lang.String parameterName) Gets the parameter value |
CatalogGroupResultBean[][] | getPurchaseHistoryCatalogGroups(java.lang.String language) Gets the purchase history catalog groups for the specified language. |
java.lang.String[] | getPurchaseHistoryCategories(java.lang.String language) Gets the purchase history categories for a specified language. |
OrderItemAccessBean[] | getPurchaseHistoryOrderItems() Gets the purchase history order items. |
boolean | getResult() Gets the result. |
OrderAccessBean | getShoppingCartOrderAccessBean() Gets the shopping cart. |
OrderItemAccessBean[] | getShoppingCartOrderItems() Gets the order items for the shopping cart. |
java.math.BigDecimal | getShoppingCartTotal(java.lang.String currency) Gets the shopping cart total in the specified currency. |
void | log(java.lang.String text) Logs a string to System.out. |
void | setCommandContext(CommandContext commandContext) Sets the command context. |
void | setConditionName(java.lang.String conditionName) Sets the open condition name. |
void | setParameters(OpenCondition.Parameter[] parameters) Sets the open condition parameters. |
void | setResult(boolean result) Sets the open condition result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
protected boolean _result
protected java.math.BigDecimal _shoppingCartTotal
protected OrderItemAccessBean[] _purchaseHistoryOrderItems
protected java.lang.String[] _purchaseHistoryCategories
protected OrderAccessBean _shoppingCartOrderAccessBean
protected OrderItemAccessBean[] _shoppingCartOrderItems
protected CommandContext _commandContext
protected java.lang.String _conditionName
protected OpenCondition.Parameter[] _parameters
protected CatalogGroupResultBean[][] _purchaseHistoryCatalogGroups
protected java.lang.String _purchaseHistoryCatalogGroupsLanguage
Constructor Detail |
public CampaignInitiativeContext()
Method Detail |
public java.math.BigDecimal getBigDecimalParameterValue(java.lang.String parameterName)
public java.lang.Integer getIntegerParameterValue(java.lang.String parameterName)
public java.lang.Long getLongParameterValue(java.lang.String parameterName)
public CommandContext getCommandContext()
public java.lang.String getConditionName()
public OpenCondition.Parameter[] getParameters()
public java.lang.String getParameterValue(java.lang.String parameterName)
public CatalogGroupResultBean[][] getPurchaseHistoryCatalogGroups(java.lang.String language)
public java.lang.String[] getPurchaseHistoryCategories(java.lang.String language)
public OrderItemAccessBean[] getPurchaseHistoryOrderItems()
public boolean getResult()
public OrderAccessBean getShoppingCartOrderAccessBean()
public OrderItemAccessBean[] getShoppingCartOrderItems()
public java.math.BigDecimal getShoppingCartTotal(java.lang.String currency)
public void log(java.lang.String text)
public void setCommandContext(CommandContext commandContext)
public void setConditionName(java.lang.String conditionName)
public void setParameters(OpenCondition.Parameter[] parameters)
public void setResult(boolean result)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.