java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.negotiation.commands.CheckBidControlCmdImpl
Task command verifies that a bid complies with the auction rules. This command uses the following AccessBeans:
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.CheckBidControlCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
CheckBidControlCmdImpl() CheckBidControlCmdImpl constructor. |
Method Summary | |
java.lang.String | getBidQuantity() Gets the bid quantity. |
java.lang.String | getBidValue() Gets the bid value. |
java.lang.String | getErrorTaskName() Gets the error task name; if null, returns the default error task name. |
java.lang.String | getLowestWinningBid() Gets the lowest winning bid. |
boolean | isBidOkay() Returns the status of bid-control compliance test. |
boolean | isReadyToCallExecute() Verifies that the this command is ready to be executed. |
void | performExecute() Determines whether the bid complies with the applicable bid control rules. |
void | setAuction(AuctionAccessBean auction) Sets the auction access bean. |
protected void | setBidOkay(boolean newBidOkay) Sets a flag indicating whether the bid complies with its control rules. |
void | setBidQuantity(java.lang.String newBidQuantity) Sets the bid quantity. |
void | setBidValue(java.lang.String newBidValue) Sets the bid value. |
void | setErrorTaskName(java.lang.String newErrorTaskName) Sets the error task name. |
void | setLowestWinningBid(java.lang.String newLowestWinningBid) Sets the lowest winning bid. |
protected void | validateAuction() Validates the bid (quantity and value) against the auction specification. |
void | validateParameters() Determines whether required parameters have been supplied. |
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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public CheckBidControlCmdImpl()
Method Detail |
public java.lang.String getBidQuantity()
public java.lang.String getBidValue()
public java.lang.String getErrorTaskName()
public java.lang.String getLowestWinningBid()
public boolean isBidOkay()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void setAuction(AuctionAccessBean auction)
protected void setBidOkay(boolean newBidOkay)
public void setBidQuantity(java.lang.String newBidQuantity) throws ECApplicationException
public void setBidValue(java.lang.String newBidValue) throws ECApplicationException
public void setErrorTaskName(java.lang.String newErrorTaskName)
public void setLowestWinningBid(java.lang.String newLowestWinningBid)
protected void validateAuction() throws java.lang.Exception
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.