com.ibm.commerce.negotiation.commands
Class NotifyStartAuctionCmdImpl
com.ibm.commerce.negotiation.commands.NotifyAuctionBaseCmdImpl
|
+--com.ibm.commerce.negotiation.commands.NotifyStartAuctionCmdImpl
- All Implemented Interfaces:
- ECCommand, NotifyAuctionBaseCmd, NotifyStartAuctionCmd, TaskCommand
- public class NotifyStartAuctionCmdImpl
- extends NotifyAuctionBaseCmdImpl
- implements NotifyStartAuctionCmd
This class implements interface NotifyStartAuctionCmdImpl
to add a message to message table after an auction has been started.
This is meesage is a broadcast message to the users. We will generate messages based on the
user's language preference. This is done on demand, maximum messages will be the number of the supported
different languages for this store.
- See Also:
NotifyAuctionBaseCmdImpl
,
NotifyBidOverrideCmdImpl
,
NotifyCloseAuctionCmdImpl
,
NotifyCompleteOrderCmdImpl
Field Summary |
static java.lang.String |
COPYRIGHT
|
protected java.util.Hashtable |
msgTable
|
Method Summary |
MessageAccessBean |
createMessageAccessBean(java.lang.Integer langid)
This method calls Commerce Suite messaging system
to load jsp's and generate a message for a specific language, then creates
a MessageAccessBean, and writes the message into message table |
void |
performExecute()
This method finds out whether any shopper is interested in the auction. |
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. |
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
msgTable
protected java.util.Hashtable msgTable
NotifyStartAuctionCmdImpl
public NotifyStartAuctionCmdImpl()
- NotifyCreateAuctionCmdImpl constructor.
createMessageAccessBean
public MessageAccessBean createMessageAccessBean(java.lang.Integer langid)
throws java.rmi.RemoteException,
javax.ejb.FinderException,
javax.ejb.CreateException,
javax.naming.NamingException,
ECSystemException
- This method calls Commerce Suite messaging system
to load jsp's and generate a message for a specific language, then creates
a MessageAccessBean, and writes the message into message table
- Parameters:
langId
- java.lang.Integer language id.- Returns:
- com.ibm.commerce.negotiation.objects.MessageAccessBean
performExecute
public void performExecute()
throws ECException
- This method finds out whether any shopper is interested in the auction.
If yes, it calls createMessageAccessBean() to get a MessageAccessBean,
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.