com.ibm.commerce.negotiation.commands
Class MonitorAuctionCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.negotiation.commands.MonitorAuctionCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, MonitorAuctionCmd, Protectable

public class MonitorAuctionCmdImpl
extends ControllerCommandImpl
implements MonitorAuctionCmd

MonotorAuctionCmd interface implementation which be called once auction is in current status or future status


Field Summary
protected  java.util.Hashtable auctionsWithAutobid
           
protected  java.util.Hashtable lastestBidTimestamps
           
 
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.MonitorAuctionCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
MonitorAuctionCmdImpl()
          MonitorAuctionCmdImpl constructor comment.
 
Method Summary
 java.util.Hashtable getAuctionsWithAutobid()
          Get a hashtable that contains all the auctions having autobids.
protected  java.util.Hashtable getLastestBidTimestamps()
          Returns a hashtable that has lastest bid time for open-cry/sealed bid auctions.
 void performExecute()
          Monitors future and current auction.
protected  void setAuctionsWithAutobid(java.util.Hashtable newAuctionsWithAutobid)
           
protected  void setLastestBidTimestamps(java.util.Hashtable newLastestBidTimestamps)
           
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

auctionsWithAutobid

protected java.util.Hashtable auctionsWithAutobid

lastestBidTimestamps

protected java.util.Hashtable lastestBidTimestamps
Constructor Detail

MonitorAuctionCmdImpl

public MonitorAuctionCmdImpl()
MonitorAuctionCmdImpl constructor comment.
Method Detail

getAuctionsWithAutobid

public java.util.Hashtable getAuctionsWithAutobid()
Get a hashtable that contains all the auctions having autobids.
Returns:
java.util.Hashtable

getLastestBidTimestamps

protected java.util.Hashtable getLastestBidTimestamps()
Returns a hashtable that has lastest bid time for open-cry/sealed bid auctions.
Returns:
java.util.Hashtable

performExecute

public void performExecute()
                    throws ECException
Monitors future and current auction. Starts auctions when it is time to start. Closes Auctions when it is time to close. Invokes StartAuctionCmd.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setAuctionsWithAutobid

protected void setAuctionsWithAutobid(java.util.Hashtable newAuctionsWithAutobid)
Parameters:
newAuctionsWithAutobid - java.util.Hashtable

setLastestBidTimestamps

protected void setLastestBidTimestamps(java.util.Hashtable newLastestBidTimestamps)
Parameters:
newLastestBidTimestamps - java.util.Hashtable