com.ibm.commerce.negotiation.commands
Class NotifyStartAuctionCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.negotiation.commands.NotifyAuctionBaseCmdImpl
com.ibm.commerce.negotiation.commands.NotifyStartAuctionCmdImpl
- All Implemented Interfaces:
- ECCommand, ECTargetableCommand, 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, This command uses the following AccessBeans:
- {@link StoreAccessBean}
- {@link MemberAuctionRelationAccessBean}
- {@link MessageAccessBean}
, Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright statement. |
protected java.util.Hashtable |
msgTable
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 class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright statement.
- See Also:
- Constant Field Values
msgTable
protected java.util.Hashtable msgTable
- Hashtable msgTable.
NotifyStartAuctionCmdImpl
public NotifyStartAuctionCmdImpl()
- NotifyCreateAuctionCmdImpl constructor.
createMessageAccessBean
public MessageAccessBean createMessageAccessBean(java.lang.Integer langid)
throws java.rmi.RemoteException,
FinderException,
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
-
- Returns:
- com.ibm.commerce.negotiation.objects.MessageAccessBean
- Throws:
- java.rmi.RemoteException
- FinderException
- CreateException
- javax.naming.NamingException
- ECSystemException
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
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- com.ibm.commerce.exception.ECException.
- 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.
-
- Overrides:
- reset in class AbstractECTargetableCommand
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.