If the autobid already exists:
The current autobid will be updated. No bids will be created on behalf
of the updated autobid.
Method Summary |
AccessVector |
getResources()
This method returns the resources resources accessed by this command
It will return null if no resource if being accessed by this command. |
boolean |
isReadyToCallExecute()
Verifies that the this command is ready to be executed. |
void |
performExecute()
Executes the auto bid submit task. |
void |
setRequestProperties(TypedProperty requestParam)
Saves the Mandatory and optional command parameter values. |
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.negotiation.commands.BidSubmitCmdImpl |
checkBidControlRules, deductBidDeposit, encryptPaymentInfo, getAuctionReferenceNumber, getBestBidBigDeciaml, getBestBidValue, getBidActionType, getBidActionValue, getBidCreateTime, getBidQuantity, getBidReferenceKey, getBidType, getBidValue, getBillAddrReferenceNumber, getDeviceExpirationPeriod, getDeviceNumber, getEncryptedPaymentInfo, getFormattedMonetaryAmountValue, getLocalErrorTaskName, getNVPairs, getPartialDeviceNumber, getPaymentInfoString, getPaymentSelectionIndex, getRedirectUrl, getRequestProp, getShipAddrReferenceNumber, getShipModeReferenceNumber, handleException, initBidData, isBidderQualified, isDeductionAuthorized, isPartialQuantityAccepted, isValidAddress, isValidShippingMode, saveRequestProp, setAuctionReferenceNumber, setBestBidValue, setBidActionType, setBidActionValue, setBidCreateTime, setBidQuantity, setBidReferenceKey, setBidType, setBidValue, setBidValue, setBillAddrReferenceKey, setDeductionAuthorized, setEncryptedPaymentInfo, setLocalErrorTaskName, setNVPairs, setPartialQuantityAccepted, setPaymentInfoString, setPaymentSelectionIndex, setRedirectUrl, setShipAddrReferenceKey, setShipModeReferenceKey, updateAuctionGallery, validateBidReferenceNumber, validateCreditCard, validBidderStatus |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
EC_AUTOBID_SUBMIT_ERROR_VIEW_CMD
public static final java.lang.String EC_AUTOBID_SUBMIT_ERROR_VIEW_CMD
AutoBidSubmitCmdImpl
public AutoBidSubmitCmdImpl()
- AutoBidSubmitCmdImpl default constructor.
getResources
public AccessVector getResources()
throws ECException
- This method returns the resources resources accessed by this command
It will return null if no resource if being accessed by this command.
- Specified by:
getResources
in interface ECCommand
- Overrides:
getResources
in class BidSubmitCmdImpl
- Returns:
- Object[] - an array of protectable resources
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Verifies that the this command is ready to be executed.
- Overrides:
isReadyToCallExecute
in class BidSubmitCmdImpl
- Returns:
- boolean =true if command is ready, otherwise false.
performExecute
public void performExecute()
throws ECException
- Executes the auto bid submit task.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class BidSubmitCmdImpl
- Throws:
ECException
- is thrown if anything goes wrong.
setRequestProperties
public void setRequestProperties(TypedProperty requestParam)
throws ECApplicationException
- Saves the Mandatory and optional command parameter values.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class BidSubmitCmdImpl
- Parameters:
TypedPropery
- requestParam - Request properties- Throws:
ECApplicationException:
- An exception is returned
if any of the mandatory parameters are missing, or invalid
validateUpperLimit
protected void validateUpperLimit(java.lang.Long bidId)
throws ECException
- 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.
- Parameters:
bidId
- Long - The Id for the bid that was generated on
behalf of the auto bid.- Throws:
ECException
- - Invalid upper limit value.