com.ibm.commerce.negotiation.commands
Class CompleteOrderCmdImpl
java.lang.Object
CacheableCommandImpl
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 creates orders for all winning bids
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright statement. |
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()
Returns the request properties. |
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 |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, 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, 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 |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright statement.
- See Also:
- Constant Field Values
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
- Throws:
- ECException
getRequestProperties
public TypedProperty getRequestProperties()
- Returns the request properties.
-
- Specified by:
- getRequestProperties in interface ControllerCommand
- Overrides:
- getRequestProperties in class ControllerCommandImpl
-
- Returns:
- Typed Property.
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
-
- Throws:
- ECException
placeOrderForWinner
protected java.lang.Long placeOrderForWinner(BidAccessBean bidBean)
throws ECException,
CreateException,
javax.naming.NamingException,
FinderException,
java.rmi.RemoteException
- Place an order for the winner.
-
- Returns:
- orderid
- Throws:
- ECException
- CreateException
- javax.naming.NamingException
- FinderException
- java.rmi.RemoteException
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.BidAccessBean
- orderid - 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.
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.