com.ibm.commerce.order.commands
Class ReprepareOrderCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.order.commands.ReprepareOrderCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ReprepareOrderCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
- Direct Known Subclasses:
- ExternalReprepareOrderCmdImpl
public class ReprepareOrderCmdImpl extends TaskCommandImpl implements ReprepareOrderCmd
This is the default implementation of theReprepareOrderCmd
task command.Behaviour:
- new a
OrderProcessingHelper
utility object. - For each order passed in:
- Initialize the
OrderProcessingHelper
object. - set the shipping, shipping adjustment, sales tax, shipping tax calculation usages to the
OrderProcessingHelper
object - Call the
OrderProcessingHelper.calculateShippingTaxAndTotals(String)
to recalculate the specified charges then lock the order.
- Initialize the
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM copyright notice field.-
Fields inherited from interface com.ibm.commerce.order.commands.ReprepareOrderCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description ReprepareOrderCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.Vector
getOrders()
Gets ids of the orders to be reprepared.void
performExecute()
Contains the actual business logic of the command.void
setOrder(OrderAccessBean abOrder)
Sets the order to reprepare.void
setOrders(java.util.Vector newOrders)
Sets ids of the orders to be reprepared.-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Method Detail
-
getOrders
public java.util.Vector getOrders()
Gets ids of the orders to be reprepared.- Returns:
- a vector of order access beans.
-
performExecute
public void performExecute() throws ECException
Contains the actual business logic of the command.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
-
setOrder
public void setOrder(OrderAccessBean abOrder)
Sets the order to reprepare.- Specified by:
setOrder
in interfaceReprepareOrderCmd
- Parameters:
abOrder
- order access bean.
-
setOrders
public void setOrders(java.util.Vector newOrders)
Sets ids of the orders to be reprepared.- Specified by:
setOrders
in interfaceReprepareOrderCmd
- Parameters:
newOrders
- a vector of order access beans.
-
-