com.ibm.commerce.order.commands
Class ExtOrderCopyCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.order.commands.ExtOrderCopyCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, ExtOrderCopyCmd, TaskCommand

public class ExtOrderCopyCmdImpl
extends TaskCommandImpl
implements ExtOrderCopyCmd

Empty default implementation of the ExtOrderCopyCmd task command interface. This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM Copyright notice field.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.order.commands. ExtOrderCopyCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
ExtOrderCopyCmdImpl()
           
 
Method Summary
 void performExecute()
          Executes the main business logic of the command.
 void setCopiedOrderItems(java.util.HashMap ahshCopiedOrderItems)
          Sets the copied OrderItems.
 void setDeletedOrderItemIds(java.util.Set asetDeletedOrderItemIds)
          Sets the identfiers of deleted OrderItems.
 void setNewOrderItems(java.util.HashMap ahshNewOrderItems)
          Sets the new OrderItems.
 void setOrderInfoFrom( OrderAccessBean aabOrderInfoFrom)
          Sets the Order from which the Order level info is copied.
 void setPayInfoFrom( OrderAccessBean aabPayInfoFrom)
          Sets the Order from which the payment information is copied.
 void setRequestProperties( TypedProperty aRequestProperties)
          Sets the requestProperties object for this command.
 void setResponseProperties( TypedProperty aResponseProperties)
          Sets the responseProperties object that the calling command has produced.
 void setToOrder( OrderAccessBean aabToOrder)
          Sets the target order.
 void setUpdatedOrderItems(java.util.HashMap ahshUpdatedOrderItems)
          Sets the updated OrderItems.
 
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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM Copyright notice field.
See Also:
Constant Field Values
Constructor Detail

ExtOrderCopyCmdImpl

public ExtOrderCopyCmdImpl()
Method Detail

performExecute

public void performExecute()
                    throws ECException
Executes the main business logic of the command. This default implementation does nothing.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

setOrderInfoFrom

public void setOrderInfoFrom(OrderAccessBean aabOrderInfoFrom)
Sets the Order from which the Order level info is copied.
Specified by:
setOrderInfoFrom in interface ExtOrderCopyCmd
Parameters:
aabOrderInfoFrom - the Order from which the Order level info is copied.

setPayInfoFrom

public void setPayInfoFrom(OrderAccessBean aabPayInfoFrom)
Sets the Order from which the payment information is copied.
Specified by:
setPayInfoFrom in interface ExtOrderCopyCmd
Parameters:
aabPayInfoFrom - the Order from which the payment information is copied.

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
Sets the requestProperties object for this command.
Specified by:
setRequestProperties in interface ExtOrderCopyCmd
Parameters:
aRequestProperties - the request properties.

setResponseProperties

public void setResponseProperties(TypedProperty aResponseProperties)
Sets the responseProperties object that the calling command has produced.
Specified by:
setResponseProperties in interface ExtOrderCopyCmd
Parameters:
aResponseProperties - the responseProperties object that the calling command has produced.

setToOrder

public void setToOrder(OrderAccessBean aabToOrder)
Sets the target order.
Specified by:
setToOrder in interface ExtOrderCopyCmd
Parameters:
aabToOrder - the Order that has been created or updated by the calling command.

setNewOrderItems

public void setNewOrderItems(java.util.HashMap ahshNewOrderItems)
Sets the new OrderItems. The key (i.e. enumeration group) can be used to correlate a new OrderItem with a source (i.e. copied) OrderItem. A new OrderItem may be created from input parameters only (that is, not copied from a source OrderItem). In such cases, the new OrderItem's enumeration group will not be found in the copiedOrderItems HashMap.
Specified by:
setNewOrderItems in interface ExtOrderCopyCmd
Parameters:
ahshNewOrderItems - the new OrderItems.
  • Key: enumeration group (Integer).
  • Value: new OrderItem (OrderItemAccessBean).

setCopiedOrderItems

public void setCopiedOrderItems(java.util.HashMap ahshCopiedOrderItems)
Sets the copied OrderItems. The key (i.e. enumeration group) can be used to correlate a new OrderItem with a source (i.e. copied) OrderItem. A new OrderItem may be created from input parameters only (that is, not copied from a source OrderItem). In such cases, the new OrderItem's enumeration group will not be found in the copiedOrderItems HashMap. The OrderItemAccessBeans may reference OrderItems that have since been deleted. Use the Set provided by ExtOrderCopyCmd.setDeletedOrderItemIds(Set) to determine if an OrderItemAccessBean has been deleted. The OrderItemAccessBeans contain information obtained from the database before any modifications were made. Use OrderItemAccessBean.refreshCopyHelper() to obtain the updated OrderItemAccessBean information.
Specified by:
setCopiedOrderItems in interface ExtOrderCopyCmd
Parameters:
ahshCopiedOrderItems - the copied OrderItems.
  • Key: enumeration group (Integer).
  • Value: copied OrderItem (OrderItemAccessBean).

setUpdatedOrderItems

public void setUpdatedOrderItems(java.util.HashMap ahshUpdatedOrderItems)
Sets the updated OrderItems. The OrderItemAccessBeans may reference OrderItems that have since been deleted. Use the Set provided by ExtOrderCopyCmd.setDeletedOrderItemIds(Set) to determine if an OrderItemAccessBean has been deleted. The OrderItemAccessBeans contain information obtained from the database before any modifications were made. Use OrderItemAccessBean.refreshCopyHelper() to obtain the updated OrderItemAccessBean information.
Specified by:
setUpdatedOrderItems in interface ExtOrderCopyCmd
Parameters:
ahshUpdatedOrderItems - the updated OrderItems.
  • Key: enumeration group (Integer).
  • Value: updated OrderItem (OrderItemAccessBean).

setDeletedOrderItemIds

public void setDeletedOrderItemIds(java.util.Set asetDeletedOrderItemIds)
Sets the identfiers of deleted OrderItems.
Specified by:
setDeletedOrderItemIds in interface ExtOrderCopyCmd
Parameters:
asetDeletedOrderItemIds - the elements are the (String) identifiers of the deleted OrderItems.