com.ibm.commerce.negotiation.commands
Class CompleteOrderCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.negotiation.commands.CompleteOrderCmdImpl
- All Implemented Interfaces:
- AccCommand, CompleteOrderCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable
- public class CompleteOrderCmdImpl
- extends ControllerCommandImpl
- implements CompleteOrderCmd
Implementation for CompleteOrderCmd interface
Make orders for all winning bids
Method Summary |
java.util.Hashtable |
getDecryptedPaymentInfo(java.lang.String payinfo)
Returns a hashtable containing decryted payment information.
This method invokes a task command to decrypt the incoming payment value. |
TypedProperty |
getRequestProperties()
Gets the request properties set by the setRequestProperties() method. |
void |
performExecute()
performExecute
loops through the enumeration of winning bids and creates
an order for each bid
To create an order the following OrderProcessing commands
are used
AdminOrderItemUpdate - which returns a order number
OrderPrepare
OrderProcess |
protected java.lang.Long |
placeOrderForWinner(BidAccessBean bidBean)
Place an order for the winner. |
protected void |
recordBidOrder(BidAccessBean bid,
java.lang.Long orderid)
Records the relationship between an order and a winning bid. |
void |
setRequestProperties(TypedProperty param)
Copies key-value input data into member fields. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
CompleteOrderCmdImpl
public CompleteOrderCmdImpl()
- CompleteOrderCmdImpl constructor comment.
getDecryptedPaymentInfo
public java.util.Hashtable getDecryptedPaymentInfo(java.lang.String payinfo)
throws ECException
- Returns a hashtable containing decryted payment information.
This method invokes a task command to decrypt the incoming payment value. The decrypted information
is then parsed into a hashtable.
- Parameters:
payinfo
- java.lang.String- Returns:
- java.util.Hashtable
getRequestProperties
public TypedProperty getRequestProperties()
- Description copied from interface:
ControllerCommand
- Gets the request properties set by the setRequestProperties() method.
- Specified by:
getRequestProperties
in interface ControllerCommand
- Overrides:
getRequestProperties
in class ControllerCommandImpl
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Returns:
- com.ibm.commerce.datatype.TypeProperty
performExecute
public void performExecute()
throws ECException
- performExecute
loops through the enumeration of winning bids and creates
an order for each bid
To create an order the following OrderProcessing commands
are used
AdminOrderItemUpdate - which returns a order number
OrderPrepare
OrderProcess
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
placeOrderForWinner
protected java.lang.Long placeOrderForWinner(BidAccessBean bidBean)
throws ECException,
javax.ejb.CreateException,
javax.naming.NamingException,
javax.ejb.FinderException,
java.rmi.RemoteException
- Place an order for the winner.
- Parameters:
bid
- com.ibm.commerce.negotiation.objects.BidAccessBean is the winning bid.
recordBidOrder
protected void recordBidOrder(BidAccessBean bid,
java.lang.Long orderid)
throws java.lang.Exception
- Records the relationship between an order and a winning bid.
Additionally , this method also stores the payment information for the bid.
- Parameters:
bid
- com.ibm.commerce.negotiation.objects.BidAccessBeanorderid
- java.lang.Long- Throws:
java.lang.Exception
- The exception description.
setRequestProperties
public void setRequestProperties(TypedProperty param)
throws ECApplicationException
- Copies key-value input data into member fields.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Parameters:
param
- com.ibm.commerce.datatype.TypedProperty- Throws:
ECApplicationException
- The exception description.