java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.order.commands.OrderCopyCmdImpl
This is the default implementation of the
OrderCopy
controller command.
This command calls the following TaskCommands:
ResolveOrdersCmd
ResolveOrderItemsCmd
CheckOrderCopyCmd
SetOrderOrganizationCmd
SetPendingOrderCmd
CheckOrderCopyCmd
CheckOrderCopyCmd
GetOrderPaymentInfoCmd
SetOrderPaymentInfoCmd
OrderItemUpdateCmd
PrepareOrderCmd
ExtOrderCopyCmd
Nested Class Summary |
---|
Nested classes inherited from class com.ibm.commerce.order.commands. OrderCopyCmd |
OrderCopyCmd.Group |
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright notice field. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.commands. OrderCopyCmd |
defaultCommandClassName,
ERRCODE_ACCESS_DENIED,
ERRCODE_WRONG_STATUS,
NAME,
ORDER_COPY_ERRVIEW |
Constructor Summary | |
---|---|
OrderCopyCmdImpl() |
Method Summary | |
---|---|
protected
OrderItemUpdateCmd |
getOrderItemUpdateCmd() Get the OrderItemUpdateCmd to be used by OrderCopyCmdImpl. |
AccessVector |
getResources() Returns an
AccessVector containing the Protectable resources with
the actions this command will perform on them. |
void |
performExecute() Executes the main business logic of the command. |
void |
reset() Resets instance variables to their initial values. |
void |
setBillingAddressId(java.lang.Long anBillingAddressId) Set the addressId of the billing address. |
void |
setContinue(java.lang.String astrContinue)
Set the continue parameter (optional).
If an OrderItem cannot be created or updated in the target Order,
0 - terminate execution and rollback.
1 - ignore the create or update operation for that OrderItem and continue
execution. |
void |
setCopyOrderInfoFrom(java.lang.String[] astrCopyOrderInfoFrom) Set the source order from which the order info (e.g. |
void |
setCopyPaymentInfoFrom(java.lang.String[] astrCopyPaymentInfoFrom) Set the source order from which the payment info will be copied. |
void |
setDescription(java.lang.String astrDescription) Set the description of the target order. |
void |
setDisplaySequence(java.lang.Double adDisplaySequence) Set the display sequence of the target order. |
void |
setField1(java.lang.Integer anField1) Set field1 of the target order. |
void |
setField2(java.math.BigDecimal adField2) Set field2 of the target order. |
void |
setField3(java.lang.String astrField3) Set field3 of the target order. |
void |
setGroups(
OrderCopyCmd.Group[] aGroups)
Set the enumeration groups.
An enumeration group consists of parameters that will be passed (as input
parameters) to
OrderItemUpdateCmd . |
void |
setOrderComment(java.lang.String astrOrderComment) Set the order comment (optional). |
void |
setOutOrderItemNames(java.lang.String[] astrOutOrderItemNames) Sets the names of the orderItemId properties to be appended to the redirection URL. |
void |
setOutOrderNames(java.lang.String[] astrOutOrderNames) Sets the names of the orderId properties to be appended to the redirection URL. |
void |
setPayment(java.util.Hashtable ahshPayment) Set the payment information of the target order. |
protected
void |
setPriceAndCurrency(java.lang.Integer an, java.math.BigDecimal adPrice,
java.lang.String astrCurrency) Deprecated. |
void |
setRequestProperties(
TypedProperty ahshRequestProperties) Extracts input parameters from the specified request properties. |
void |
setStatus(java.lang.String astrStatus) Set the status of the target order. |
void |
setTcId(java.lang.Long anTcId) Set the PaymentTC that the billing address will be checked against. |
void |
setToOrderAbbreviations(java.lang.String[] astrToOrderAbbreviations) Set the target order. |
void |
validateParameters() Validates the input parameters. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
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 |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public OrderCopyCmdImpl()
Method Detail |
---|
protected OrderItemUpdateCmd getOrderItemUpdateCmd() throws ECException
OrderItemUpdateCmd
to be used by OrderCopyCmdImpl.
ECException
public AccessVector getResources() throws ECException
AccessVector
containing the Protectable
resources with
the actions this command will perform on them. The
OrderAccessBean
s to be read or written, and the
StoreAccessBean
for the Store in the
CommandContext
if a new Order is to be created.
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
AccessVector
.ECException
ECCommand.getResources()
public void performExecute() throws ECException
SetOrderOrganizationCmd
task command.SetPendingOrderCmd
task command to make it current.OrderItemUpdateCmd
controller command to add or update the
orderItems in the target Order. OfferIds and ContractIds are not copied between
Stores.
PrepareOrderCmd
task command.viewTaskName
response property to
"RedirectView".prepareFlags
attribute of the copied OrderItems indicate "quotation". Quotation
information is not copied between Stores.
ExtOrderCopyCmd
task command.
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
-ECCommand.performExecute()
public void reset()
reset
in class
AbstractECTargetableCommand
public void setBillingAddressId(java.lang.Long anBillingAddressId)
setBillingAddressId
in interface
OrderCopyCmd
anBillingAddressId
- the addressId.public void setCopyOrderInfoFrom(java.lang.String[] astrCopyOrderInfoFrom)
setCopyOrderInfoFrom
in interface
OrderCopyCmd
astrCopyOrderInfoFrom
- the source order.public void setCopyPaymentInfoFrom(java.lang.String[] astrCopyPaymentInfoFrom)
setCopyPaymentInfoFrom
in interface
OrderCopyCmd
astrCopyPaymentInfoFrom
- the source
order.public void setDescription(java.lang.String astrDescription)
setDescription
in interface
OrderCopyCmd
astrDescription
- the description.public void setDisplaySequence(java.lang.Double adDisplaySequence)
setDisplaySequence
in interface
OrderCopyCmd
adDisplaySequence
- the display sequence.public void setField1(java.lang.Integer anField1)
setField1
in interface
OrderCopyCmd
anField1
- the value of field1.public void setField2(java.math.BigDecimal adField2)
setField2
in interface
OrderCopyCmd
adField2
- the value of field2.public void setField3(java.lang.String astrField3)
setField3
in interface
OrderCopyCmd
astrField3
- the value of field3.public void setGroups(OrderCopyCmd.Group[] aGroups)
OrderItemUpdateCmd
.
setGroups
in interface
OrderCopyCmd
aGroups
- the enumeration groups.public void setOutOrderItemNames(java.lang.String[] astrOutOrderItemNames)
setOutOrderItemNames
in interface
OrderCopyCmd
astrOutOrderItemNames
- the names of the orderItemId
properties.public void setOutOrderNames(java.lang.String[] astrOutOrderNames)
setOutOrderNames
in interface
OrderCopyCmd
astrOutOrderNames
- the names of the orderId
properties.public void setPayment(java.util.Hashtable ahshPayment)
setPayment
in interface
OrderCopyCmd
ahshPayment
- the payment information.
String
).String[]
)
.protected void setPriceAndCurrency(java.lang.Integer an, java.math.BigDecimal adPrice, java.lang.String astrCurrency) throws ECException
ECException
public void setRequestProperties(TypedProperty ahshRequestProperties) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
ahshRequestProperties
- request properties
ECApplicationException
- The _ERR_BAD_MISSING_CMD_PARAMETER message
is passed, with the name of the invalid or missing property name.ECException
-ControllerCommand.setRequestProperties(TypedProperty)
public void setStatus(java.lang.String astrStatus)
setStatus
in interface
OrderCopyCmd
astrStatus
- the status ("P" or
"I").public void setTcId(java.lang.Long anTcId)
setTcId
in interface
OrderCopyCmd
anTcId
- the tcId of the PaymentTCpublic void setToOrderAbbreviations(java.lang.String[] astrToOrderAbbreviations)
setToOrderAbbreviations
in interface
OrderCopyCmd
astrToOrderAbbreviations
- the target
order.public void validateParameters() throws ECException
ResolveOrdersCmd
task command to resolve Order abbreviations.ResolveOrderItemsCmd
task command to resolve OrderItem
abbreviations.CheckOrderCopyCmd
task command for each of the Orders to be
accessed.updateOrderItemId
parameter does not specify
an OrderItem abbreviation that requests a new OrderItem to be created.continue
parameter specifies only 0 or
1.
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- The _ERR_BAD_MISSING_CMD_PARAMETER message
is passed, with the name of the invalid or missing property name.ECException
-ECCommand.validateParameters()
public void setContinue(java.lang.String astrContinue)
OrderCopyCmd
setContinue
in interface
OrderCopyCmd
astrContinue
- the continue parameter.OrderCopyCmd.setContinue(String)
public void setOrderComment(java.lang.String astrOrderComment)
OrderCopyCmd
setOrderComment
in interface
OrderCopyCmd
astrOrderComment
- the order comment.OrderCopyCmd.setOrderComment(String)