|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.negotiation.commands.CheckBidControlCmdImpl
Task command verifies that a bid complies with the auction rules.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
Fields inherited from interface com.ibm.commerce.negotiation.commands.CheckBidControlCmd |
defaultCommandClassName, NAME |
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 interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public CheckBidControlCmdImpl()
Method Detail |
public java.lang.String getBidQuantity()
getBidQuantity
in interface CheckBidControlCmd
public java.lang.String getBidValue()
getBidValue
in interface CheckBidControlCmd
public java.lang.String getErrorTaskName()
getErrorTaskName
in interface CheckBidControlCmd
public java.lang.String getLowestWinningBid()
getLowestWinningBid
in interface CheckBidControlCmd
public boolean isBidOkay()
isBidOkay
in interface CheckBidControlCmd
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
performExecute
in interface ECCommand
ECException
- if any problems are encountered.public void setAuction(AuctionAccessBean auction)
setAuction
in interface CheckBidControlCmd
auction
- AuctionAcessBeanprotected void setBidOkay(boolean newBidOkay)
newBidOkay
- The flag indicating whether the bid complies with its control rules.public void setBidQuantity(java.lang.String newBidQuantity) throws ECApplicationException
setBidQuantity
in interface CheckBidControlCmd
newBidQuantity
- The bid quantity.ECApplicationException
- on invalid number.public void setBidValue(java.lang.String newBidValue) throws ECApplicationException
setBidValue
in interface CheckBidControlCmd
newBidValue
- The bid value.ECApplicationException
- on invalid number.public void setErrorTaskName(java.lang.String newErrorTaskName)
setErrorTaskName
in interface CheckBidControlCmd
newErrorTaskName
- The error task name.public void setLowestWinningBid(java.lang.String newLowestWinningBid)
setLowestWinningBid
in interface CheckBidControlCmd
newLowestWinningBid
- The lowest winning bid.protected void validateAuction() throws java.lang.Exception
ECException
- if auction not in database.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
ECException
- if a parameter is null.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |