public class BidSubmitCmdImpl extends ControllerCommandImpl implements BidSubmitCmd, com.ibm.commerce.negotiation.util.AuctionConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | EC_BID_EVALUATED
Constant to indicate bid has been evaluated
|
static java.lang.String | EC_BID_SUBMIT_ERROR_VIEW_CMD
BidSubmitCmd default error view
|
Constructor and Description |
---|
BidSubmitCmdImpl()
BidSubmitImpl default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | checkBidControlRules(AuctionAccessBean auction, java.math.BigDecimal value)
Verifies that the current bid/autobid value complies with the associated bid rules.
|
protected void | deductBidDeposit(java.math.BigDecimal auctionDeposit, BidAccessBean bid)
Creates/Updates a bid payment deposit entry.
|
protected java.lang.String | encryptPaymentInfo()
Encrypts the user's device number.
|
protected AccessVector | getAccessVector()
Returns the AccessVector object.
|
protected AuctionAccessBean | getAuction()
Returns the bidding auction object.
|
protected java.lang.Long | getAuctionReferenceNumber()
Returns the auction reference number for which a bid is being submitted.
|
protected AutoBidAccessBean | getBestAutoBid()
Returns the best auto bid object of current auction.
|
protected BidAccessBean | getBestBid()
Returns the best bid object of current auction.
|
protected java.math.BigDecimal | getBestBidBigDeciaml()
Gets the current auction best bid value.
|
protected java.lang.String | getBestBidValue()
Gets the current auction best bid value.
|
protected BidAccessBean | getBid()
Returns the new Bid object.
|
protected java.lang.String | getBidActionType()
Returns the current bid action type.
|
protected java.lang.String | getBidActionValue()
Returns the current bid action value
|
protected java.lang.String | getBidCreateTime()
Returns the time this bid was created.
|
protected java.lang.Double | getBidQuantity()
Returns the quantity being bid for.
|
protected java.lang.String | getBidReferenceKey()
Returns the reference key for the bid being submitted.
|
protected java.lang.String | getBidType()
Returns the current bid type.
|
protected java.math.BigDecimal | getBidValue()
Returns the value of the bid being submitted.
|
protected java.lang.Long | getBillAddrReferenceNumber()
Returns the bidder's billing address ID.
|
int | getDeviceExpirationPeriod()
Gets the Device (credit card) maximum expiration period.
|
protected java.lang.String | getDeviceNumber()
Returns the Payment Device Number.
|
protected java.lang.String | getEncryptedPaymentInfo()
Returns the Payment Encrypted Device Number.
|
protected java.lang.String | getEvaluateType()
Returns the evaluate type
|
java.lang.String | getFormattedMonetaryAmountValue(java.math.BigDecimal amt)
Formatting amount of currency.
|
protected java.lang.String | getLocalErrorTaskName()
Returns this command's error task name.
|
protected java.util.Hashtable | getNVPairs()
Returns a hash table of name-value pairs.
|
protected java.lang.String | getPartialDeviceNumber(java.lang.String aNum)
This method will replace all numbers with 'X', except the last 4 digits for a payment device longer than 4 digits.
|
java.lang.String | getPaymentInfoString()
Returns the payment information.
|
java.lang.String | getPaymentSelectionIndex()
Returns the payment selection index.
|
protected java.lang.String | getRedirectUrl()
Returns url that will be called when the bid is successfully submitted.
|
protected TypedProperty | getRequestProp()
Returns current request properties.
|
AccessVector | getResources()
Returns the resources accessed by this command It will return null if no resource if being accessed by this command.
|
protected java.lang.Long | getShipAddrReferenceNumber()
Returns the shipping address reference number
|
protected java.lang.Integer | getShipModeReferenceNumber()
Returns the shipping mode reference number
|
protected void | handleException(java.lang.Exception e)
Formats an ECException based on the input exception value.
|
protected void | initBidData(BidAccessBean bid)
Initializes bid fields.
|
protected boolean | isBidderQualified()
Checks if current Bidder (user) is qualified to Bid on the current auction.
|
protected boolean | isDeductionAuthorized()
Returns whether the bidder allowed for money to be deducted.
|
protected boolean | isPartialQuantityAccepted()
Returns whether the bidder will accept a partial quantity.
|
boolean | isReadyToCallExecute()
Verifies that the this command is ready to be executed.
|
protected boolean | isValidAddress(java.lang.Long addressRefNum)
Sets the billing address reference key for which a bid is being submitted.
|
protected boolean | isValidShippingMode()
Determines if the specified merchant shipping mode is valid.
|
void | performExecute()
Executes a bid submit task.
|
void | reset()
Resets the output properties to the values they had prior to calling the execute method.
|
protected void | saveRequestProp(TypedProperty reqProp)
Saves current request properties
|
protected void | setAccessVector(AccessVector accessVector)
Sets the AccessVector object.
|
protected void | setAuction(AuctionAccessBean abAuction)
Sets the bidding auction object.
|
protected void | setAuctionReferenceNumber(java.lang.String auctionReferenceKey)
Sets the auction reference number for which a bid is being submitted.
|
protected void | setBestAutoBid(AutoBidAccessBean abBestAutoBid)
Sets the best auto bid object of current auction.
|
protected void | setBestBid(BidAccessBean abBestBid)
Sets the best bid object of current auction.
|
protected void | setBestBidValue(java.math.BigDecimal bestBidVal)
Sets the current auction best bid value
|
protected void | setBid(BidAccessBean abBid)
Sets the new bid object.
|
protected void | setBidActionType(java.lang.String type)
Sets the current bid action type
|
protected void | setBidActionValue(java.lang.String value)
Sets the current action to be performed on the bid.
|
protected void | setBidCreateTime(java.lang.String bidCreateTime)
Sets the bid create time.
|
protected void | setBidQuantity(java.lang.String bidQuantity)
Sets the quantity being bid for.
|
protected void | setBidReferenceKey(java.lang.String bidReferenceKey)
Sets the reference key for the bid being submitted.
|
protected void | setBidType(java.lang.String bidType)
Sets the type of the bid being submitted.
|
protected void | setBidValue(java.math.BigDecimal bidValue)
Sets a new value for the bid.
|
protected void | setBidValue(java.lang.String bidValue)
Sets the value of the bid being submitted.
|
protected void | setBillAddrReferenceKey(java.lang.String billAddrRefKey)
Determines if the bidder's shipping/billing address is valid.
|
protected void | setDeductionAuthorized(java.lang.String flag)
Sets the bidder's deduction authorization flag.
|
protected void | setEncryptedPaymentInfo(java.lang.String encryptedDeviceNumber)
Sets the bidder payment encrypted device number.
|
protected void | setEvaluateType(java.lang.String evaluateType)
Sets the evaluate type.
|
protected void | setLocalErrorTaskName(java.lang.String errorTaskName)
Sets this command's error task name
|
void | setNVPairs(java.util.Hashtable newNVPairs)
Stores the incoming hashtable of name-value pairs.
|
protected void | setPartialQuantityAccepted(java.lang.String flag)
Sets the bidder's partial quantity flag (optional).
|
void | setPaymentInfoString(java.lang.String newPaymentInfoString)
Sets payment info string.
|
void | setPaymentSelectionIndex(java.lang.String newPaymentSelectionIndex)
Stores the incoming value of the payment selection index.
|
protected void | setRedirectUrl(java.lang.String url)
Sets the value for redirect url called upon successful bid submit.
|
void | setRequestProperties(TypedProperty requestParam)
Saves the Mandatory and optional command parameter values.
|
protected void | setShipAddrReferenceKey(java.lang.String shipAddrRefKey)
Sets the Shipping Address reference key for which a bid is being submitted.
|
protected void | setShipModeReferenceKey(java.lang.String shipModeRefKey)
Sets the Shipping Mode reference key for which a bid is being submitted.
|
protected void | updateAuctionGallery()
Adds the auction being bid on to the auction gallery, if not already there.
|
protected void | validateBidReferenceNumber()
Validates that the current bid reference number are valid.
|
protected void | validateCreditCard()
Validates the user's Credit Card number and expiration date.
|
void | validateParameters()
This is where parameter checking is done.
|
protected boolean | validBidderStatus()
Checks that the bidder status is valid for the current auction.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EC_BID_SUBMIT_ERROR_VIEW_CMD
public static final java.lang.String EC_BID_EVALUATED
protected AccessVector getAccessVector()
protected void setAccessVector(AccessVector accessVector)
protected AuctionAccessBean getAuction()
protected void setAuction(AuctionAccessBean abAuction)
protected BidAccessBean getBid()
protected void setBid(BidAccessBean abBid)
protected BidAccessBean getBestBid()
protected void setBestBid(BidAccessBean abBestBid)
protected AutoBidAccessBean getBestAutoBid()
protected void setBestAutoBid(AutoBidAccessBean abBestAutoBid)
protected java.lang.String getEvaluateType()
protected void setEvaluateType(java.lang.String evaluateType)
protected void checkBidControlRules(AuctionAccessBean auction, java.math.BigDecimal value) throws java.lang.Exception
protected void deductBidDeposit(java.math.BigDecimal auctionDeposit, BidAccessBean bid) throws java.lang.Exception
protected java.lang.String encryptPaymentInfo() throws ECException
protected java.lang.Long getAuctionReferenceNumber()
protected java.math.BigDecimal getBestBidBigDeciaml()
protected java.lang.String getBestBidValue()
protected java.lang.String getBidActionType()
protected java.lang.String getBidActionValue()
protected java.lang.String getBidCreateTime()
protected java.lang.Double getBidQuantity()
protected java.lang.String getBidReferenceKey()
protected java.lang.String getBidType()
protected java.math.BigDecimal getBidValue()
protected java.lang.Long getBillAddrReferenceNumber()
public int getDeviceExpirationPeriod()
protected java.lang.String getDeviceNumber()
protected java.lang.String getEncryptedPaymentInfo()
public java.lang.String getFormattedMonetaryAmountValue(java.math.BigDecimal amt) throws ECException
protected java.lang.String getLocalErrorTaskName()
protected java.util.Hashtable getNVPairs()
protected java.lang.String getPartialDeviceNumber(java.lang.String aNum)
public java.lang.String getPaymentInfoString()
public java.lang.String getPaymentSelectionIndex()
protected java.lang.String getRedirectUrl()
protected TypedProperty getRequestProp()
public AccessVector getResources() throws ECException
protected java.lang.Long getShipAddrReferenceNumber()
protected java.lang.Integer getShipModeReferenceNumber()
protected void handleException(java.lang.Exception e) throws ECException
protected void initBidData(BidAccessBean bid) throws ECException
protected boolean isBidderQualified() throws ECException
protected boolean isDeductionAuthorized()
protected boolean isPartialQuantityAccepted()
public boolean isReadyToCallExecute()
protected boolean isValidAddress(java.lang.Long addressRefNum) throws ECException
protected boolean isValidShippingMode() throws ECException
public void performExecute() throws ECException
protected void saveRequestProp(TypedProperty reqProp)
protected void setAuctionReferenceNumber(java.lang.String auctionReferenceKey) throws InvalidParameterValueException
protected void setBestBidValue(java.math.BigDecimal bestBidVal)
protected void setBidActionType(java.lang.String type)
protected void setBidActionValue(java.lang.String value)
protected void setBidCreateTime(java.lang.String bidCreateTime)
protected void setBidQuantity(java.lang.String bidQuantity) throws InvalidParameterValueException
protected void setBidReferenceKey(java.lang.String bidReferenceKey) throws InvalidParameterValueException
protected void setBidType(java.lang.String bidType)
protected void setBidValue(java.lang.String bidValue) throws InvalidParameterValueException
protected void setBidValue(java.math.BigDecimal bidValue)
protected void setBillAddrReferenceKey(java.lang.String billAddrRefKey) throws InvalidParameterValueException
protected void setDeductionAuthorized(java.lang.String flag) throws InvalidParameterValueException
protected void setEncryptedPaymentInfo(java.lang.String encryptedDeviceNumber)
protected void setLocalErrorTaskName(java.lang.String errorTaskName)
public void setNVPairs(java.util.Hashtable newNVPairs)
protected void setPartialQuantityAccepted(java.lang.String flag)
public void setPaymentInfoString(java.lang.String newPaymentInfoString) throws InvalidParameterValueException
public void setPaymentSelectionIndex(java.lang.String newPaymentSelectionIndex)
protected void setRedirectUrl(java.lang.String url) throws InvalidParameterValueException
public void setRequestProperties(TypedProperty requestParam) throws ECApplicationException
protected void setShipAddrReferenceKey(java.lang.String shipAddrRefKey) throws InvalidParameterValueException
protected void setShipModeReferenceKey(java.lang.String shipModeRefKey) throws InvalidParameterValueException
protected void updateAuctionGallery() throws ECException
protected void validateBidReferenceNumber() throws ECException
protected void validateCreditCard() throws ECException
protected boolean validBidderStatus() throws ECException
public void reset()
public void validateParameters() throws ECException