com.ibm.commerce.tools.optools.order.commands
Class CSROrderProductContractPriceCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
|
+--com.ibm.commerce.tools.optools.order.commands.CSROrderProductContractPriceCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, CSROrderProductContractPriceCmd, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand
- public class CSROrderProductContractPriceCmdImpl
- extends ToolsControllerCommandImpl
- implements CSROrderProductContractPriceCmd
Extracts a list of available contract prices for the catalog entry in the store
for the shopper
Behaviour
The list of trading IDs corresponds to the list of trading prices returned.
If trading prices cannot be retrieved, the trading IDs list remain null.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
CSROrderProductContractPriceCmdImpl
public CSROrderProductContractPriceCmdImpl()
getCatEntryId
public java.lang.String getCatEntryId()
- Gets the catalog entry ID.
- Returns:
- The catalog entry ID.
getContractPrices
public CatEntryPrices[] getContractPrices()
- Gets the list of contract prices.
- Specified by:
getContractPrices
in interface CSROrderProductContractPriceCmd
- Returns:
- The list of contract prices.
getCurrency
public java.lang.String getCurrency()
- Gets the currency.
- Returns:
- The currency.
getTradingIds
public java.lang.Long[] getTradingIds()
- Gets the trading IDs available for the catalog entry.
- Specified by:
getTradingIds
in interface CSROrderProductContractPriceCmd
- Returns:
- The list of trading IDs.
getTradingPrices
public MonetaryAmount[] getTradingPrices()
- Gets the trading prices available for the catalog entry corresponding to the trading IDs.
- Specified by:
getTradingPrices
in interface CSROrderProductContractPriceCmd
- Returns:
- The list of trading prices.
performExecute
public void performExecute()
throws ECException
- Gets the list of contract prices with their trading IDs for the catalog entry.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Throws:
ECException
- If the contract prices cannot be retrieved.
setCatEntryId
public void setCatEntryId(java.lang.String newCatEntryId)
- Sets the catalog entry ID.
- Specified by:
setCatEntryId
in interface CSROrderProductContractPriceCmd
- Parameters:
newCatEntryId
- The catalog entry ID.
setContractPrices
public void setContractPrices(CatEntryPrices[] newContractPrices)
- Sets the contract prices available for the catalog entry.
- Parameters:
newContractPrices
- The list of contract prices.
setCurrency
public void setCurrency(java.lang.String newCurrency)
- Sets the currency.
- Specified by:
setCurrency
in interface CSROrderProductContractPriceCmd
- Parameters:
newCurrency
- The currency.
setTradingIds
public void setTradingIds(java.lang.Long[] newTradingIds)
- Sets the trading IDs available for the catalog entry.
- Parameters:
newTradingIds
- The list of trading IDs.
setTradingPrices
public void setTradingPrices(MonetaryAmount[] newTradingPrices)
- Sets the trading prices available for the catalog entry corresponding to the trading IDs.
- Parameters:
newTradingPrices
- The list of trading prices.