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
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 |
StartAuctionCmdImpl
public StartAuctionCmdImpl()
- StartAuctionCmdImpl constructor.
fetchBidReferenceCode
public java.lang.String fetchBidReferenceCode()
- Deprecated.
- To get Bid reference number. This method returns null.
-
- Returns:
- null
getAuctionAccessBean
public 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(AuctionAccessBean newAuctionAccessBean)
- Sets the auction access bean.
-
- Specified by:
- setAuctionAccessBean in interface StartAuctionCmd
-
- 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.
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.