com.ibm.commerce.negotiation.commands
Class StartAuctionCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.negotiation.commands.StartAuctionCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, StartAuctionCmd, TaskCommand

public class StartAuctionCmdImpl
extends TaskCommandImpl
implements StartAuctionCmd

Implementation for the task command that starts an auction. The auction status is changed from future to current. This command calls the following TaskCommands:

This command uses the following AccessBeans:
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands. StartAuctionCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
StartAuctionCmdImpl()
          StartAuctionCmdImpl constructor.
 
Method Summary
 java.lang.String fetchBidReferenceCode()
          Deprecated.  
 com.ibm.commerce.negotiation.objects.AuctionAccessBean getAuctionAccessBean()
          Retrieves the access bean corresponding to the auction ID.
 java.lang.Long getAuctionReferenceNumber()
          Gets the auction ID.
 void performExecute()
          Start auctions and turn auction status from future into current
 void setAuctionAccessBean(com.ibm.commerce.negotiation.objects.AuctionAccessBean newAuctionAccessBean)
          Sets the auction access bean.
 void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
          Sets the auction ID.
 
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.negotiation.commands. StartAuctionCmd
setAuctionAccessBean
 

Constructor Detail

StartAuctionCmdImpl

public StartAuctionCmdImpl()
StartAuctionCmdImpl constructor.
Method Detail

fetchBidReferenceCode

public java.lang.String fetchBidReferenceCode()
Deprecated.  
To get Bid reference number. This method returns null.
Returns:
null

getAuctionAccessBean

public com.ibm.commerce.negotiation.objects.AuctionAccessBean getAuctionAccessBean()
                                                                            throws FinderException,
                                                                                   java.rmi.RemoteException,
                                                                                   CreateException,
                                                                                   javax.naming.NamingException
Retrieves the access bean corresponding to the auction ID.
Returns:
The auction access bean.
Throws:
FinderException - Finder exception.
java.rmi.RemoteException - Remote exception.
CreateException - Create exception.
javax.naming.NamingException - Naming exception.

getAuctionReferenceNumber

public java.lang.Long getAuctionReferenceNumber()
                                         throws FinderException,
                                                java.rmi.RemoteException,
                                                CreateException,
                                                javax.naming.NamingException
Gets the auction ID.
Returns:
The auction ID.
Throws:
FinderException - Finder exception.
java.rmi.RemoteException - Remote exception.
CreateException - Create exception.
javax.naming.NamingException - Naming exception.

performExecute

public void performExecute()
                    throws ECException
Start auctions and turn auction status from future into current
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - Raised with message _ERR_BAD_MISSING_CMD_PARAMETER if a parameter is missing, _ERR_INVALID_AUCTION_STATUS if the auction is not in the future status.

setAuctionAccessBean

public void setAuctionAccessBean(com.ibm.commerce.negotiation.objects.AuctionAccessBean newAuctionAccessBean)
Sets the auction access bean.
Parameters:
newAuctionAccessBean - The auction access bean.

setAuctionReferenceNumber

public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
                               throws java.lang.NullPointerException,
                                      java.lang.NumberFormatException
Sets the auction ID.
Specified by:
setAuctionReferenceNumber in interface StartAuctionCmd
Parameters:
newAuctionReferenceNumber - The auction ID.
Throws:
java.lang.NullPointerException - exception.
java.lang.NumberFormatException - exception.