com.ibm.commerce.negotiation.commands
Class CloseAuctionCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.negotiation.commands.CloseAuctionCmdImpl
All Implemented Interfaces:
CloseAuctionCmd, ECCommand, ECTargetableCommand, TaskCommand

public class CloseAuctionCmdImpl
extends TaskCommandImpl
implements CloseAuctionCmd

Implementation of CloseAuctionCmd which set auction status into Bidding Close

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
Copyright statement.
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.negotiation.commands.CloseAuctionCmd
defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
CloseAuctionCmdImpl()
CloseAuctionCmdImpl default constructor.
Method Summary
AuctionAccessBean getAuctionAccessBean()
Gets the auction access bean.
java.lang.Long getAuctionReferenceNumber()
Returns the reference number of the auction.
java.util.Vector getWinningBids()
Gets the winning bids vector after set winners.
protected void inventoryPutBack(AuctionAccessBean aBean)
Once auction closed, put remaining quantity back to inventory.
void performExecute()
performExecute method comment.
void reset()
reset method comment.
void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
Interface method to set auction access bean.
void setAuctionReferenceNumber(java.lang.Long s)
Stores the incoming auction reference number.
void setWinningBids(java.util.Vector v)
Set the winning bids.
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
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright statement.
See Also:
Constant Field Values
Constructor Detail

CloseAuctionCmdImpl

public CloseAuctionCmdImpl()
CloseAuctionCmdImpl default constructor.
Method Detail

getAuctionAccessBean

public AuctionAccessBean getAuctionAccessBean()
                                       throws FinderException,
                                              java.rmi.RemoteException,
                                              javax.naming.NamingException,
                                              CreateException
Gets the auction access bean.
Returns:
com.ibm.commerce.negotiation.objects.AuctionAccessBean
Throws:
FinderException
java.rmi.RemoteException
javax.naming.NamingException
CreateException

getAuctionReferenceNumber

public java.lang.Long getAuctionReferenceNumber()
Returns the reference number of the auction.
Returns:
java.lang.String

getWinningBids

public java.util.Vector getWinningBids()
Gets the winning bids vector after set winners.
Specified by:
getWinningBids in interface CloseAuctionCmd
Returns:
java.util.Vector

inventoryPutBack

protected void inventoryPutBack(AuctionAccessBean aBean)
                         throws ECException,
                                CreateException,
                                javax.naming.NamingException,
                                FinderException,
                                java.rmi.RemoteException
Once auction closed, put remaining quantity back to inventory.
Parameters:
aBean - The auction access bean.
Throws:
ECException
CreateException
javax.naming.NamingException
FinderException
java.rmi.RemoteException

performExecute

public void performExecute()
                    throws ECException
performExecute method comment.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reset

public void reset()
reset method comment.
Overrides:
reset in class AbstractECTargetableCommand

setAuctionAccessBean

public void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
                          throws FinderException,
                                 java.rmi.RemoteException,
                                 javax.naming.NamingException,
                                 CreateException
Description copied from interface: CloseAuctionCmd
Interface method to set auction access bean.
Specified by:
setAuctionAccessBean in interface CloseAuctionCmd
Parameters:
newAuctionAccessBean - com.ibm.commerce.negotiation.objects.AuctionAccessBean
Throws:
FinderException
NamingException,
java.rmi.RemoteException
CreateException
javax.naming.NamingException

setAuctionReferenceNumber

public void setAuctionReferenceNumber(java.lang.Long s)
Stores the incoming auction reference number.
Specified by:
setAuctionReferenceNumber in interface CloseAuctionCmd
Parameters:
s - The auction reference number.
Returns:
java.lang.String

setWinningBids

public void setWinningBids(java.util.Vector v)
Set the winning bids.
Parameters:
v - The vector contains the winning bids in the form of BidAccessBean object.

Feedback