com.ibm.commerce.negotiation.commands
Class CloseAuctionCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.negotiation.commands.CloseAuctionCmdImpl
All Implemented Interfaces:
CloseAuctionCmd, ECCommand, TaskCommand

public class CloseAuctionCmdImpl
extends TaskCommandImpl
implements CloseAuctionCmd

Implementation of CloseAuctionCmd which set auction status into Bidding Close


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.CloseAuctionCmd
COPYRIGHT, defaultCommandClassName, NAME
 
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.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, 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.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Constructor Detail

CloseAuctionCmdImpl

public CloseAuctionCmdImpl()
CloseAuctionCmdImpl default constructor.
Method Detail

getAuctionAccessBean

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

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,
                                javax.ejb.CreateException,
                                javax.naming.NamingException,
                                javax.ejb.FinderException,
                                java.rmi.RemoteException
Once auction closed, put remaining quantity back to inventory.
Parameters:
aBean - The auction access bean.

performExecute

public void performExecute()
                    throws ECException
performExecute method comment.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

reset

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

setAuctionAccessBean

public void setAuctionAccessBean(AuctionAccessBean newAuctionAccessBean)
                          throws javax.ejb.FinderException,
                                 java.rmi.RemoteException,
                                 javax.naming.NamingException,
                                 javax.ejb.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

setAuctionReferenceNumber

public void setAuctionReferenceNumber(java.lang.Long s)
Stores the incoming auction reference number.
Specified by:
setAuctionReferenceNumber in interface CloseAuctionCmd
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.