java.lang.Object | +--com.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
OrderItemAccessBean
objects from the purchase
history.
protected java.lang.String[] _purchaseHistoryCategories
protected OrderAccessBean _shoppingCartOrderAccessBean
OrderAccessBean
that represents the shopping cart.
protected OrderItemAccessBean[] _shoppingCartOrderItems
OrderItemAccessBean
objects from the shopping
cart.
protected CommandContext _commandContext
protected java.lang.String _conditionName
protected OpenCondition.Parameter[] _parameters
protected CatalogGroupResultBean[][] _purchaseHistoryCatalogGroups
CatalogGroupResultBean
objects from the purchase
history.
protected java.lang.String _purchaseHistoryCatalogGroupsLanguage
Constructor Detail |
---|
public CampaignInitiativeContext()
Method Detail |
---|
public java.math.BigDecimal getBigDecimalParameterValue(java.lang.String parameterName)
BigDecimal
parameter.
parameterName
- The name of the parameter.public java.lang.Integer getIntegerParameterValue(java.lang.String parameterName)
Integer
parameter.
parameterName
- The name of the parameter.Integer
.public java.lang.Long getLongParameterValue(java.lang.String parameterName)
Long
parameter.
parameterName
- The name of the parameter.Long
.public CommandContext getCommandContext()
public java.lang.String getConditionName()
public OpenCondition.Parameter[] getParameters()
public java.lang.String getParameterValue(java.lang.String parameterName)
parameterName
- The name of the parameter.public CatalogGroupResultBean[][] getPurchaseHistoryCatalogGroups(java.lang.String language)
language
- A specified language identifier.CatalogGroupResultBean
objects.public java.lang.String[] getPurchaseHistoryCategories(java.lang.String language)
language
- A specified language identifier.public OrderItemAccessBean[] getPurchaseHistoryOrderItems()
OrderItemAccessBean
objects.public boolean getResult()
public OrderAccessBean getShoppingCartOrderAccessBean()
OrderAccessBean
for the shopping cart.public OrderItemAccessBean[] getShoppingCartOrderItems()
OrderItemAccessBean
objects.public java.math.BigDecimal getShoppingCartTotal(java.lang.String currency)
currency
- The desired currency.public void log(java.lang.String text)
text
- The text that you want to log.public void setCommandContext(CommandContext commandContext)
commandContext
- The command context.public void setConditionName(java.lang.String conditionName)
conditionName
- The open condition name.public void setParameters(OpenCondition.Parameter[] parameters)
parameters
- An array of Parameter
objects.public void setResult(boolean result)
result
- The result.