com.ibm.commerce.price.commands
Class MarketplaceCalculateContractPricesCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.price.commands.CalculateContractPricesCmdImpl
|
+--com.ibm.commerce.price.commands.MarketplaceCalculateContractPricesCmdImpl
- All Implemented Interfaces:
-
CalculateContractPricesCmd,
ECCommand,
ECTargetableCommand,
TaskCommand
- public class MarketplaceCalculateContractPricesCmdImpl
- extends
CalculateContractPricesCmdImpl
- implements
CalculateContractPricesCmd
CalculateContractPrices impl for fixed pricing in marketplace Store.
This command calls the following TaskCommands:
This command uses the following AccessBeans:
- See Also:
-
Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
The IBM copyright string. |
Method Summary |
ItemPriceInfo[] |
getItemPriceInfo()
Returns the internal item info structure. |
void |
performExecute()
Executes main business logic of the command. |
void |
reset()
This method should be called after a command has been executed to
reset its states variables. |
void |
setCurrency(java.lang.String astrCurrency)
Sets the currency to be used for finding the price
(Optional). |
void |
setItemPriceInfo(
ItemPriceInfo[] aItemPriceInfos)
Sets the item info structure for internal use on calculating the
prices. |
void |
setStoreId(java.lang.Integer anStoreId)
Sets the id of the input store to be used for calculating the price
(Optional). |
Methods inherited from class
com.ibm.commerce.command.
AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The IBM copyright string.
- See Also:
-
Constant Field Values
MarketplaceCalculateContractPricesCmdImpl
public MarketplaceCalculateContractPricesCmdImpl()
- Constructor for MarketplaceCalculateContractPricesCmdImpl.
getItemPriceInfo
public ItemPriceInfo[] getItemPriceInfo()
- Description copied from interface:
CalculateContractPricesCmd
- Returns the internal item info structure.
-
- Specified by:
-
getItemPriceInfo
in interface
CalculateContractPricesCmd
- Overrides:
-
getItemPriceInfo
in class
CalculateContractPricesCmdImpl
-
- Returns:
- the ItemPriceInfos.
- See Also:
-
CalculateContractPricesCmd.getItemPriceInfo()
setCurrency
public void setCurrency(java.lang.String astrCurrency)
- Description copied from interface:
CalculateContractPricesCmd
- Sets the currency to be used for finding the price (Optional).
-
- Specified by:
-
setCurrency
in interface
CalculateContractPricesCmd
- Overrides:
-
setCurrency
in class
CalculateContractPricesCmdImpl
-
- Parameters:
astrCurrency
- the Currency.
- See Also:
-
CalculateContractPricesCmd.setCurrency(String)
setItemPriceInfo
public void setItemPriceInfo(ItemPriceInfo[] aItemPriceInfos)
- Description copied from interface:
CalculateContractPricesCmd
- Sets the item info structure for internal use on calculating the prices.
-
- Specified by:
-
setItemPriceInfo
in interface
CalculateContractPricesCmd
- Overrides:
-
setItemPriceInfo
in class
CalculateContractPricesCmdImpl
-
- Parameters:
aItemPriceInfos
- the item info structure for storing
information such as the trading agreements, price lists that will be used for
calculating the prices of the items.
- See Also:
-
CalculateContractPricesCmd.setItemPriceInfo(ItemPriceInfo[])
setStoreId
public void setStoreId(java.lang.Integer anStoreId)
- Description copied from interface:
CalculateContractPricesCmd
- Sets the id of the input store to be used for calculating the price
(Optional).
-
- Specified by:
-
setStoreId
in interface
CalculateContractPricesCmd
- Overrides:
-
setStoreId
in class
CalculateContractPricesCmdImpl
-
- Parameters:
anStoreId
- the Store ID.
- See Also:
-
CalculateContractPricesCmd.setStoreId(Integer)
reset
public void reset()
- Description copied from class:
AbstractECTargetableCommand
- This method should be called after a command has been executed to reset its
states variables. After the call to reset, we should be able to execute the
command again.
-
- Overrides:
-
reset
in class
AbstractECTargetableCommand
-
- See Also:
Command.reset()
public void performExecute()
throws ECException
- Description copied from class:
CalculateContractPricesCmdImpl
- Executes main business logic of the command.
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
CalculateContractPricesCmdImpl
-
- Throws:
-
ECException
- See Also:
-
ECCommand.performExecute()