com.ibm.commerce.negotiation.commands
Interface CalculateBestBidCmd

All Superinterfaces:
ECCommand
All Known Implementing Classes:
CalculateBestBidCmdImpl

public interface CalculateBestBidCmd
extends ECCommand

Calculate the Highest Winning Bid and Lowest Winning Bid (aka Best Bid) Interface.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String NAME
           
 
Method Summary
 java.lang.Long getHighestWinningBid()
          Get the highest winning bid id for the specified auction.
 java.lang.Long getLowestWinningBid()
          Get the lowest winning bid (a.k.a Best Bid) id for the specified auction
 void setActiveBids(java.util.Vector bids)
          Sets the list of active bids to be processed.
 void setAuctionId(java.lang.Long id)
          Sets the current auction Id value,
 void setErrorTaskName(java.lang.String errorTaskName)
          Set error task name that will be returned by the exceptions.
 void setQuantityOnAuction(java.lang.Double quantity)
          Sets the quantity on auction value.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

NAME

public static final java.lang.String NAME
Method Detail

getHighestWinningBid

public java.lang.Long getHighestWinningBid()
Get the highest winning bid id for the specified auction.
Returns:
Long - Highest winning bid id.

getLowestWinningBid

public java.lang.Long getLowestWinningBid()
Get the lowest winning bid (a.k.a Best Bid) id for the specified auction
Returns:
Long - Lowest winning bid id.

setActiveBids

public void setActiveBids(java.util.Vector bids)
Sets the list of active bids to be processed.
Parameters:
bids - Vector - Active bids list

setAuctionId

public void setAuctionId(java.lang.Long id)
Sets the current auction Id value,
Parameters:
id - Long - Auction Id

setErrorTaskName

public void setErrorTaskName(java.lang.String errorTaskName)
Set error task name that will be returned by the exceptions.
Parameters:
errorTaskName - java.lang.String

setQuantityOnAuction

public void setQuantityOnAuction(java.lang.Double quantity)
Sets the quantity on auction value.
Parameters:
quantity - Double - Quantity on auction.