|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.order.commands.OrderCopyCmdImpl
This is the default implementation of the OrderCopy command.
Inner classes inherited from class com.ibm.commerce.order.commands.OrderCopyCmd |
OrderCopyCmd.Group |
Field Summary | |
static java.lang.String |
COPYRIGHT
|
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()
|
AccessVector |
getResources()
Gets the access vector accessed by this command. |
void |
performExecute()
Contains the actual business logic of the command It should be implemented by all the command writer. |
void |
reset()
Insert the method's description here. |
void |
setBillingAddressId(java.lang.Long anBillingAddressId)
Set the addressId of the billing address. |
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 enumerationGroups. An enumerationGroup consists of: Double idQuantity Hashtable ihshAttributes Long inAddressId Long inCatalogEntryId Long[] inContractIds Integer inField1 Long inMemberId Long[] inOfferIds Integer inShipmodeId String istrComment String[] istrCopyOrderItemAbbreviations String istrField2 String[] istrFromOrderAbbreviations String istrPartNumber String istrUom String[] istrUpdateOrderItemAbbreviations These parameters will be passed (as input parameters) to OrderItemUpdate. |
void |
setOutOrderItemNames(java.lang.String[] astrOutOrderItemNames)
Set the names of the orderItemId NVPs to be appended to the redirection URL. |
void |
setOutOrderNames(java.lang.String[] astrOutOrderNames)
Set the names of the orderId NVPs to be appended to the redirection URL. |
void |
setPayment(java.util.Hashtable ahshPayment)
Set the payment NVPs of the target order. |
protected void |
setPriceAndCurrency(java.lang.Integer an,
java.math.BigDecimal adPrice,
java.lang.String astrCurrency)
|
void |
setRequestProperties(TypedProperty ahshRequestProperties)
The WebController calls this method before invoking the execute method in this command to set the request properties for this command. |
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()
Performs server side parameter checking. |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
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, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public OrderCopyCmdImpl()
Method Detail |
protected OrderItemUpdateCmd getOrderItemUpdateCmd() throws ECException
public AccessVector getResources() throws ECException
ECCommand
getResources
in interface ECCommand
com.ibm.commerce.command.ECCommand
public void performExecute() throws ECException
ECCommand
performExecute
in interface ECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void reset()
public void setBillingAddressId(java.lang.Long anBillingAddressId)
OrderCopyCmd
setBillingAddressId
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
anBillingAddressId
- the addressId.public void setCopyOrderInfoFrom(java.lang.String[] astrCopyOrderInfoFrom)
OrderCopyCmd
setCopyOrderInfoFrom
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
astrCopyOrderInfoFrom
- the source order.public void setCopyPaymentInfoFrom(java.lang.String[] astrCopyPaymentInfoFrom)
OrderCopyCmd
setCopyPaymentInfoFrom
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
astrCopyPaymentInfoFrom
- the source order.public void setDescription(java.lang.String astrDescription)
OrderCopyCmd
setDescription
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
astrDescription
- the description.public void setDisplaySequence(java.lang.Double adDisplaySequence)
OrderCopyCmd
setDisplaySequence
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
adDisplaySequence
- the display sequence.public void setField1(java.lang.Integer anField1)
OrderCopyCmd
setField1
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
anField1
- the value of field1.public void setField2(java.math.BigDecimal adField2)
OrderCopyCmd
setField2
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
adField2
- the value of field2.public void setField3(java.lang.String astrField3)
OrderCopyCmd
setField3
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
astrField3
- the value of field3.public void setGroups(OrderCopyCmd.Group[] aGroups)
OrderCopyCmd
setGroups
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
aGroups
- the enumerationGroups.public void setOutOrderItemNames(java.lang.String[] astrOutOrderItemNames)
OrderCopyCmd
setOutOrderItemNames
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
astrOutOrderItemNames
- the names of the orderItemId NVPs.public void setOutOrderNames(java.lang.String[] astrOutOrderNames)
OrderCopyCmd
setOutOrderNames
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
astrOutOrderNames
- the names of the orderId NVPs.public void setPayment(java.util.Hashtable ahshPayment)
OrderCopyCmd
setPayment
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
ahshPayment
- the payment NVPs.protected void setPriceAndCurrency(java.lang.Integer an, java.math.BigDecimal adPrice, java.lang.String astrCurrency) throws ECException
public void setRequestProperties(TypedProperty ahshRequestProperties) throws ECApplicationException
ControllerCommand
setRequestProperties
in interface ControllerCommand
com.ibm.commerce.command.ControllerCommand
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
- public void setStatus(java.lang.String astrStatus)
OrderCopyCmd
setStatus
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
astrStatus
- the status ("P" or "I").public void setTcId(java.lang.Long anTcId)
OrderCopyCmd
setTcId
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
anTcId
- the tcId of the PaymentTCpublic void setToOrderAbbreviations(java.lang.String[] astrToOrderAbbreviations)
OrderCopyCmd
setToOrderAbbreviations
in interface OrderCopyCmd
com.ibm.commerce.order.commands.OrderCopyCmd
astrToOrderAbbreviations
- the target order.public void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |