|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 com.ibm.commerce.rules.helpers.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
Copyright. |
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 |
com.ibm.commerce.rules.helpers.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)
Get the shopping cart total in the specified currency. |
void |
log(java.lang.String text)
Log 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 |
protected CommandContext _commandContext
protected java.lang.String _conditionName
protected OpenCondition.Parameter[] _parameters
protected com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] _purchaseHistoryCatalogGroups
protected java.lang.String _purchaseHistoryCatalogGroupsLanguage
protected java.lang.String[] _purchaseHistoryCategories
protected OrderItemAccessBean[] _purchaseHistoryOrderItems
protected boolean _result
protected OrderAccessBean _shoppingCartOrderAccessBean
protected OrderItemAccessBean[] _shoppingCartOrderItems
protected java.math.BigDecimal _shoppingCartTotal
public static final java.lang.String COPYRIGHT
Constructor Detail |
public CampaignInitiativeContext()
Method Detail |
public java.math.BigDecimal getBigDecimalParameterValue(java.lang.String parameterName)
parameterName
- The name of the parameter.public CommandContext getCommandContext()
public java.lang.String getConditionName()
public java.lang.Integer getIntegerParameterValue(java.lang.String parameterName)
parameterName
- The name of the parameter.public java.lang.Long getLongParameterValue(java.lang.String parameterName)
parameterName
- The name of the parameter.public OpenCondition.Parameter[] getParameters()
public java.lang.String getParameterValue(java.lang.String parameterName)
parameterName
- The name of the parameter.public com.ibm.commerce.rules.helpers.CatalogGroupResultBean[][] getPurchaseHistoryCatalogGroups(java.lang.String language)
A
- language.public java.lang.String[] getPurchaseHistoryCategories(java.lang.String language)
language
- A specified language.public OrderItemAccessBean[] getPurchaseHistoryOrderItems()
public boolean getResult()
public OrderAccessBean getShoppingCartOrderAccessBean()
public OrderItemAccessBean[] getShoppingCartOrderItems()
public java.math.BigDecimal getShoppingCartTotal(java.lang.String 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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |