java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.negotiation.commands.BidSubmitCmdImpl | +--com.ibm.commerce.negotiation.commands.AutoBidSubmitCmdImpl
Auto Bid Submit Command Implementation.
AuctionAccessBean
BidAccessBean
ControlRuleAccessBean
AutoBidAccessBean
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
static java.lang.String |
EC_AUTOBID_SUBMIT_ERROR_VIEW_CMD AutoBidSubmitCmd default Error View |
Fields inherited from class com.ibm.commerce.negotiation.commands. BidSubmitCmdImpl |
EC_BID_EVALUATED,
EC_BID_SUBMIT_ERROR_VIEW_CMD |
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. AutoBidSubmitCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
AutoBidSubmitCmdImpl() AutoBidSubmitCmdImpl default constructor. |
Method Summary | |
---|---|
protected
AutoBidAccessBean |
getAutoBid() Returns the new AutoBid object. |
protected
java.math.BigDecimal |
getAutoBidUpperLimit() Returns the auto bid upper limit value |
boolean |
isReadyToCallExecute() Verifies that the this command is ready to be executed. |
void |
performExecute() Executes the auto bid submit task. |
void |
reset() This resets the output properties to the values they had prior to calling the execute method, so that the get methods no longer work but the isReadyToCallExecute returns true. |
protected
void |
setAutoBid(AutoBidAccessBean abAutoBid) Sets the Best AutoBid object of current Auction. |
protected
void |
setAutoBidUpperLimit(java.math.BigDecimal autoBidUpperLimit) Sets the auto bid upper limit value. |
void |
setRequestProperties(
TypedProperty requestParam) Saves the Mandatory and optional command parameter values. |
void |
validateParameters() This is where parameter checking is done. |
protected
void |
validateUpperLimit(java.lang.Long bidId) Checks the auto bid upper limit value to be higher or equal to the current value for the bid previously generated on behalf of the auto bid. |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
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. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EC_AUTOBID_SUBMIT_ERROR_VIEW_CMD
Constructor Detail |
---|
public AutoBidSubmitCmdImpl()
Method Detail |
---|
protected AutoBidAccessBean getAutoBid()
protected void setAutoBid(AutoBidAccessBean abAutoBid)
abAutoBid
- AutoBidAccessBean - AutoBid
object.protected java.math.BigDecimal getAutoBidUpperLimit()
protected void setAutoBidUpperLimit(java.math.BigDecimal autoBidUpperLimit)
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
BidSubmitCmdImpl
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
BidSubmitCmdImpl
ECException
- is thrown if anything goes wrong.public void setRequestProperties(TypedProperty requestParam) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
BidSubmitCmdImpl
requestParam
- request propertiesECApplicationException:
- An exception is returned if any of
the mandatory parameters are missing, or invalid
ECApplicationException
protected void validateUpperLimit(java.lang.Long bidId) throws ECException
bidId
- Long - The Id for the bid that was generated on behalf
of the auto bid.ECException
- - Invalid upper limit value.public void reset()
reset
in class
BidSubmitCmdImpl
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
BidSubmitCmdImpl
ECException.
ECException