com.ibm.commerce.negotiation.commands
Class NotifyCompleteOrderCmdImpl
com.ibm.commerce.negotiation.commands.NotifyAuctionBaseCmdImpl
|
+--com.ibm.commerce.negotiation.commands.NotifyCompleteOrderCmdImpl
- All Implemented Interfaces:
- ECCommand, NotifyAuctionBaseCmd, NotifyCompleteOrderCmd, TaskCommand
- public class NotifyCompleteOrderCmdImpl
- extends NotifyAuctionBaseCmdImpl
- implements NotifyCompleteOrderCmd
Default implementation of NotifyCloseAuctionCmd.
Notify the winners by creating new messages in their message box.
Field Summary |
static java.lang.String |
COPYRIGHT
|
protected java.lang.Long |
orderId
|
Method Summary |
BidAccessBean |
getBidAccessBean()
Get an instance of BidAccessBean. |
java.lang.Long |
getBidReferenceNumber()
Get a bid reference number |
java.lang.Long |
getOrderId()
method to get OrderId. |
void |
performExecute()
This method calls Commerce Suite messaging system
to load jsp's and generate a message, then writes
the message into message table, and adds an entry into
msgmemrel table for the corresponding recipients |
void |
reset()
This resets the output properties to the values they had
prior to calling the execute method, so that the get methods
no longer work but the isReadyToCallExecute returns true. |
void |
setBidAccessBean(BidAccessBean newBidAccessBean)
Set an instance of BidAccessBean. |
void |
setBidReferenceNumber(java.lang.Long newBidReferenceNumber)
Set a bid reference number |
void |
setOrderId(java.lang.Long newOrderId)
method to set OrderId. |
Methods inherited from class com.ibm.commerce.negotiation.commands.NotifyAuctionBaseCmdImpl |
getAuctionAccessBean, getAuctionReferenceNumber, getDelayDays, getDelayHours, getDelayMins, getPreferredLanguageId, parseDelayString, setAuctionAccessBean, setAuctionReferenceNumber, setDelayDays, setDelayHours, setDelayMins |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
orderId
protected java.lang.Long orderId
NotifyCompleteOrderCmdImpl
public NotifyCompleteOrderCmdImpl()
- NotifyCompleteOrderCmdImpl constructor.
getBidAccessBean
public BidAccessBean getBidAccessBean()
throws javax.ejb.FinderException,
java.rmi.RemoteException,
javax.naming.NamingException,
javax.ejb.CreateException
- Get an instance of BidAccessBean.
- Returns:
- com.ibm.commerce.negotiation.objects.BidAccessBean
getBidReferenceNumber
public java.lang.Long getBidReferenceNumber()
- Get a bid reference number
- Returns:
- java.lang.Long
getOrderId
public java.lang.Long getOrderId()
- method to get OrderId.
- Returns:
- java.lang.Long
performExecute
public void performExecute()
throws ECException
- This method calls Commerce Suite messaging system
to load jsp's and generate a message, then writes
the message into message table, and adds an entry into
msgmemrel table for the corresponding recipients
- Specified by:
performExecute
in interface ECCommand
- Throws:
com.ibm.commerce.exception.ECException.
-
reset
public void reset()
- This resets the output properties to the values they had
prior to calling the execute method, so that the get methods
no longer work but the isReadyToCallExecute returns true.
It provides a convenient and efficient way to reuse the same
command instance with changes in some input properties or in
the CommandTarget.
setBidAccessBean
public void setBidAccessBean(BidAccessBean newBidAccessBean)
- Set an instance of BidAccessBean.
- Specified by:
setBidAccessBean
in interface NotifyCompleteOrderCmd
- Parameters:
newBidAccessBean
- com.ibm.commerce.negotiation.objects.BidAccessBean
setBidReferenceNumber
public void setBidReferenceNumber(java.lang.Long newBidReferenceNumber)
- Set a bid reference number
- Specified by:
setBidReferenceNumber
in interface NotifyCompleteOrderCmd
- Parameters:
newBidReferenceNumber
- java.lang.Long
setOrderId
public void setOrderId(java.lang.Long newOrderId)
- method to set OrderId.
- Specified by:
setOrderId
in interface NotifyCompleteOrderCmd
- Parameters:
newOrderId
- java.lang.Long