com.ibm.commerce.negotiation.commands
Class BidSubmitCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.ControllerCommandImpl
-
- com.ibm.commerce.negotiation.commands.BidSubmitCmdImpl
-
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, BidSubmitCmd, com.ibm.commerce.negotiation.util.AuctionConstants, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
- Direct Known Subclasses:
- AutoBidSubmitCmdImpl
public class BidSubmitCmdImpl extends ControllerCommandImpl implements BidSubmitCmd, com.ibm.commerce.negotiation.util.AuctionConstants
Bid Submit implementation Redirect to URL when executed completely Otherwise to Error View BidSubmitErrorView. This command calls the following TaskCommands:CheckBidControlCmd
DoDepositPaymentCmd
DataCryptCmd
CheckBidderQualificationCmd
EvaluateOpenCryBidCmd
CheckGenBidRefCmd
CheckCCNumberCmd
CheckBidderStatusCmd
CheckBidUpdateAuthorizationCmd
- See Also:
- Serialized Form
-
-
Field Summary
Fields 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 evaluatedstatic java.lang.String
EC_BID_SUBMIT_ERROR_VIEW_CMD
BidSubmitCmd default error view-
Fields inherited from interface com.ibm.commerce.negotiation.commands.BidSubmitCmd
defaultCommandClassName, NAME
-
Fields inherited from interface com.ibm.commerce.negotiation.util.AuctionConstants
AUCTION_DEPOSIT_KEY, AUCTION_DURATION_KEY, AUCTION_END_TIME_KEY, AUCTION_INV_KEY, AUCTION_ITEM_KEY, AUCTION_QUANTITY_KEY, AUCTION_REF_NUM_KEY, AUCTION_START_TIME_KEY, AUCTION_STATUS_KEY, AUCTION_TYPE_KEY, AUTOBID_ID_KEY, AUTOBID_REF_NUM_KEY, AUTOBID_STATUS_KEY, AUTOBID_UPPR_LIMIT_KEY, BEST_BID_REF_NUM_KEY, BEST_BID_VAL_KEY, BID_DATA_KEY, BID_ID_KEY, BID_PAYMENT_ACTION_TYPE_KEY, BID_QUANT_KEY, BID_REF_NUM_KEY, BID_RULE_KEY, BID_STATUS_KEY, BID_TIME_STAMP_KEY, BID_TYPE_KEY, BID_VAL_KEY, BILL_ADDR_REF_NUM_KEY, COMMAND_NAME_KEY, CRYPT_KEY_KEY, CRYPT_MODE_KEY, CRYPT_VAL_KEY, DEDUCT_AUTH_KEY, DEVICE_EXP_MON_KEY, DEVICE_EXP_YEAR_KEY, DEVICE_NUM_KEY, DEVICE_TYPE_KEY, EC_ADMIN_BID_DELETE_ACK_VIEW_CMD, EC_AUC_ACKPAGE, EC_AUC_ACTION_CREATE, EC_AUC_ACTION_DELETE, EC_AUC_ACTION_TYPE, EC_AUC_ACTION_UPDATE, EC_AUC_AUCTION_THREAD_POOL, EC_AUC_CC_ENCRYPTED, EC_AUC_CC_NOT_ENCRYPTED, EC_AUC_DATA_DECRYPTION_MODE, EC_AUC_DATA_ENCRYPTION_MODE, EC_AUC_ERROR_CODE, EC_AUC_ERRORPAGE, EC_AUC_PAYMENT_CREATE, EC_AUC_PAYMENT_TYPE_DEPOSIT, EC_AUC_PAYMENT_TYPE_ORDER, EC_AUC_PAYMENT_UPDATE, EC_AUC_PROCESS_THREAD_COUNT, EC_AUC_SUPERSEDED_STATUS, EC_AUC_THREAD_TIMEOUT, EC_AUC_VIEWTASKNAME, EC_AUCTION_ACK_VIEW_CMD, EC_AUCTION_ACTION, EC_AUCTION_BASE_TIME, EC_AUCTION_BID_RULE, EC_AUCTION_CALLER, EC_AUCTION_CLOSE_RULE_DISC, EC_AUCTION_CLOSE_RULE_NONDISC, EC_AUCTION_CURRENCY, EC_AUCTION_CURRENT_ASK_PRICE, EC_AUCTION_CURRENT_AVAILABLE_QUANTITY, EC_AUCTION_DAY_DURATION, EC_AUCTION_DEPOSIT, EC_AUCTION_DESCRIPTION, EC_AUCTION_DUTCH_TYPE, EC_AUCTION_END_DATE, EC_AUCTION_END_TIME, EC_AUCTION_ERR_VIEW_CMD, EC_AUCTION_IS_OFF, EC_AUCTION_IS_ON, EC_AUCTION_LDESCRIPTION, EC_AUCTION_LIST_VIEW_CMD, EC_AUCTION_LOCALE, EC_AUCTION_LOCALE_ID, EC_AUCTION_LOCKFLAG_LOCKED, EC_AUCTION_LOCKFLAG_UNLOCKED, EC_AUCTION_MIN_BID, EC_AUCTION_OPEN_CRY_TYPE, EC_AUCTION_OWNERID, EC_AUCTION_PRICE, EC_AUCTION_PRODUCT_PAGE, EC_AUCTION_QUANTITY, EC_AUCTION_REF_CODE, EC_AUCTION_REF_NUM, EC_AUCTION_REFERENCE_NUM, EC_AUCTION_RULE_PAGE, EC_AUCTION_RULE_TYPE, EC_AUCTION_RULES_VIEW_CMD, EC_AUCTION_SDESCRIPTION, EC_AUCTION_SEALED_BID_TYPE, EC_AUCTION_START_DATE, EC_AUCTION_START_PRICE, EC_AUCTION_START_TIME, EC_AUCTION_STATE_AVAILABLE, EC_AUCTION_STATE_BUSY, EC_AUCTION_STATUS_CLOSE_BIDDING, EC_AUCTION_STATUS_CLOSE_COMPLETE, EC_AUCTION_STATUS_FUTURE, EC_AUCTION_STATUS_PRESENT, EC_AUCTION_STATUS_RETRACTED, EC_AUCTION_STATUS_SUPERSEDED, EC_AUCTION_TIME_DURATION, EC_AUCTION_TYPE, EC_AUCTION_TYPE_HIDDEN, EC_AUCTSTYLE_END_DAY, EC_AUCTSTYLE_NAME, EC_AUCTSTYLE_START_DAY, EC_AUTOBID_ACTION, EC_AUTOBID_CREATE_FORM_VIEW_CMD, EC_AUTOBID_ID, EC_AUTOBID_MAX_BID_LIMIT, EC_AUTOBID_REF_NUM, EC_AUTOBID_STATUS_ACTIVE, EC_AUTOBID_STATUS_RETRACTED, EC_AUTOBID_TYPE, EC_AUTOBID_UPDATE_FORM_VIEW_CMD, EC_BID_ACTION, EC_BID_BILL_ADDR_REF_NUM, EC_BID_CREATE_FORM_VIEW_CMD, EC_BID_CREATE_TIME, EC_BID_DEDUCT_AUTH, EC_BID_DEDUCT_AUTH_FLAG, EC_BID_ID, EC_BID_ORDER_STATUS_COMPLETED, EC_BID_ORDER_STATUS_FAILED, EC_BID_ORDER_STATUS_PENDING, EC_BID_PARTIAL_QUANT, EC_BID_PAY_INFO_STR, EC_BID_PAY_SELECTION_INDEX, EC_BID_QUANTITY, EC_BID_QUANTITY_FLAG, EC_BID_REF_NUM, EC_BID_SHIP_ADDR_REF_NUM, EC_BID_SHIP_MODE_REF_NUM, EC_BID_STATUS_ACTIVE, EC_BID_STATUS_DELETED, EC_BID_STATUS_RETRACTED, EC_BID_STATUS_SUPERSEDED, EC_BID_STATUS_WINNING, EC_BID_TYPE, EC_BID_UPDATE_FORM_VIEW_CMD, EC_BID_VAL_WINOPT_FULL, EC_BID_VAL_WINOPT_PARTIAL, EC_BID_VALUE, EC_CONTRLRULE_CLASS_ID, EC_CONTRLRULE_FIELD1, EC_CONTRLRULE_FIELD2, EC_CONTRLRULE_FIELD3, EC_CONTRLRULE_MIN_QTY, EC_CONTRLRULE_MIN_VAL, EC_CONTRLRULE_OWNER_ID, EC_CONTRLRULE_RULE_DESC, EC_CONTRLRULE_RULE_ID, EC_CONTRLRULE_RULE_NAME, EC_CONTRLRULE_RULE_TEXT, EC_CONTRLRULE_RULE_TYPE, EC_DIALOG_NAVIGATION_VIEW_CMD, EC_EVALUATE_FULL_ACCEPT, EC_EVALUATE_PARTIAL_ACCEPT, EC_EVALUATE_TYPE, EC_FORUM_ID, EC_FORUMMSG_ACTION, EC_FORUMMSG_ACTREMARK, EC_FORUMMSG_BODY, EC_FORUMMSG_MSG_ID, EC_FORUMMSG_MSGACTION, EC_FORUMMSG_NO_ADMINACT, EC_FORUMMSG_PARENT_ID, EC_FORUMMSG_POSTER_ID, EC_FORUMMSG_POSTTIME, EC_FORUMMSG_PRIVATE_VIEW, EC_FORUMMSG_PUBLIC_ADMINACT, EC_FORUMMSG_PUBLIC_VIEW, EC_FORUMMSG_RESPOND_ADMINACT, EC_FORUMMSG_ROOT_ID, EC_FORUMMSG_STATUS, EC_FORUMMSG_STATUS_ACTIVE, EC_FORUMMSG_STATUS_DELETED, EC_FORUMMSG_SUBJECT, EC_FORUMMSG_TARGET_ID, EC_FORUMMSG_VIEW, EC_FORWARD_VIEW_CMD, EC_MEMBERAUCTION_TYPE_GALLERY, EC_MEMBERAUCTION_TYPE_VIEWRULE, EC_MESSAGE_BIDOVERRIDE_VIEW_CMD, EC_MESSAGE_BIDOVERRIDESUBJECT_VIEW_CMD, EC_MESSAGE_COMPLETEORDER_VIEW_CMD, EC_MESSAGE_COMPLETEORDERSUBJECT_VIEW_CMD, EC_MESSAGE_REF_NUM, EC_MESSAGE_STARTAUCTION_VIEW_CMD, EC_MESSAGE_STARTAUCTIONSUBJEC_VIEW_CMDT, EC_MESSAGE_STATUS, EC_MESSAGE_STATUS_DELETED, EC_MESSAGE_STATUS_NEW, EC_MESSAGE_STATUS_NOT_YET_SUBMITTED, EC_MESSAGE_STATUS_OPENED, EC_MESSAGE_STATUS_SUBMITTED, EC_MESSAGE_TYPE_AUC_LOST, EC_MESSAGE_TYPE_AUC_STARTED, EC_MESSAGE_TYPE_AUC_WON, EC_MESSAGE_TYPE_BID_OVERRIDDEN, EC_MESSAGE_TYPE_BIDOVERRIDE, EC_MESSAGE_TYPE_BIDOVERRIDE_NAME, EC_MESSAGE_TYPE_BIDOVERRIDESUBJECT, EC_MESSAGE_TYPE_BIDOVERRIDESUBJECT_NAME, EC_MESSAGE_TYPE_COMPLETEORDER, EC_MESSAGE_TYPE_COMPLETEORDER_NAME, EC_MESSAGE_TYPE_COMPLETEORDERSUBJECT, EC_MESSAGE_TYPE_COMPLETEORDERSUBJECT_NAME, EC_MESSAGE_TYPE_ORDER_COMPLETED, EC_MESSAGE_TYPE_STARTAUCTION, EC_MESSAGE_TYPE_STARTAUCTION_NAME, EC_MESSAGE_TYPE_STARTAUCTIONSUBJECT, EC_MESSAGE_TYPE_STARTAUCTIONSUBJECT_NAME, EC_MESSAGE_TYPE_WINNER, EC_MESSAGE_TYPE_WINNER_NAME, EC_MESSAGE_TYPE_WINNERSUBJECT, EC_MESSAGE_TYPE_WINNERSUBJECT_NAME, EC_MESSAGE_WINNER_VIEW_CMD, EC_MESSAGE_WINNERSUBJECT_VIEW_CMD, EC_NOTEBOOK_NAVIGATION_VIEW_CMD, EC_REDIRECT_VIEW_CMD, EC_REQUEST_PROPS, EC_SHOPPER_AUCTION_LIST_VIEW_CMD, EC_TOOL_ADMINBIDDELETE_NAV_VIEW_CMD, EC_TOOL_CLOSEBIDDING_NAV_VIEW_CMD, EC_TOOL_DELETEAUCTION_NAV_VIEW_CMD, EC_TOOL_DELETEAUCTIONSTYLE_NAV_VIEW_CMD, EC_TOOL_DELETEBIDRULE_NAV_VIEW_CMD, EC_TOOL_NOTEBOOK_NAV_VIEW_CMD, EC_TOOL_WIZARD_NAV_VIEW_CMD, EC_WIZARD_NAVIGATION_VIEW_CMD, ERROR_TASK_NAME_KEY, PROCESS_THREAD_COUNT_KEY, REDIR_URL_KEY, SHIP_ADDR_REF_NUM_KEY, SHIP_MODE_REF_NUM_KEY, THREAD_TIMEOUT_KEY, USER_NUM_KEY
-
-
Constructor Summary
Constructors Constructor and Description BidSubmitCmdImpl()
BidSubmitImpl default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getDeviceExpirationPeriod()
Gets the Device (credit card) maximum expiration period.java.lang.String
getFormattedMonetaryAmountValue(java.math.BigDecimal amt)
Formatting amount of currency.java.lang.String
getPaymentInfoString()
Returns the payment information.java.lang.String
getPaymentSelectionIndex()
Returns the payment selection index.AccessVector
getResources()
Returns the 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 a bid submit task.void
reset()
Resets the output properties to the values they had prior to calling the execute method.void
setNVPairs(java.util.Hashtable newNVPairs)
Stores the incoming hashtable of name-value pairs.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.void
setRequestProperties(TypedProperty requestParam)
Saves the Mandatory and optional command parameter values.void
validateParameters()
This is where parameter checking is done.-
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, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
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.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
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, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
EC_BID_SUBMIT_ERROR_VIEW_CMD
public static final java.lang.String EC_BID_SUBMIT_ERROR_VIEW_CMD
BidSubmitCmd default error view- See Also:
- Constant Field Values
-
EC_BID_EVALUATED
public static final java.lang.String EC_BID_EVALUATED
Constant to indicate bid has been evaluated- See Also:
- Constant Field Values
-
-
Method Detail
-
getDeviceExpirationPeriod
public int getDeviceExpirationPeriod()
Gets the Device (credit card) maximum expiration period.- Returns:
- int - The maximum number of years a given device can be valid.
-
getFormattedMonetaryAmountValue
public java.lang.String getFormattedMonetaryAmountValue(java.math.BigDecimal amt) throws ECException
Formatting amount of currency.- Parameters:
amt
- java.math.BigDecimal- Returns:
- java.lang.String
- Throws:
ECApplicationException
- The exception description.ECException
-
getPaymentInfoString
public java.lang.String getPaymentInfoString()
Returns the payment information.- Returns:
- java.lang.String
-
getPaymentSelectionIndex
public java.lang.String getPaymentSelectionIndex()
Returns the payment selection index.- Returns:
- int
-
getResources
public AccessVector getResources() throws ECException
Returns the resources accessed by this command It will return null if no resource if being accessed by this command.- Specified by:
getResources
in interfaceECCommand
- Overrides:
getResources
in classAbstractECTargetableCommand
- Returns:
- AccessVector - an array of protectable resources
- Throws:
ECException
-
isReadyToCallExecute
public boolean isReadyToCallExecute()
Verifies that the this command is ready to be executed.- Specified by:
isReadyToCallExecute
in interfacecom.ibm.websphere.command.Command
- Overrides:
isReadyToCallExecute
in classAbstractECTargetableCommand
- Returns:
- boolean = true if command is ready, otherwise false.
-
performExecute
public void performExecute() throws ECException
Executes a bid submit task.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
- is thrown if anything goes wrong.
-
setNVPairs
public void setNVPairs(java.util.Hashtable newNVPairs)
Stores the incoming hashtable of name-value pairs.- Parameters:
newNVPairs
- java.util.Hashtable
-
setPaymentInfoString
public void setPaymentInfoString(java.lang.String newPaymentInfoString) throws InvalidParameterValueException
Sets payment info string. This is a string contains name/value pairs delimited by semicolon.- Parameters:
newPaymentInfoString
- java.lang.String- Throws:
InvalidParameterValueException
- - if newPaymentInfoString is null or is an empty string
-
setPaymentSelectionIndex
public void setPaymentSelectionIndex(java.lang.String newPaymentSelectionIndex)
Stores the incoming value of the payment selection index.- Parameters:
newPaymentSelectionIndex
- int
-
setRequestProperties
public void setRequestProperties(TypedProperty requestParam) throws ECApplicationException
Saves the Mandatory and optional command parameter values.- Specified by:
setRequestProperties
in interfaceControllerCommand
- Overrides:
setRequestProperties
in classControllerCommandImpl
- Parameters:
TypedPropery
- requestParam - Request properties- Throws:
ECApplicationException:
- An exception is returned if any of the mandatory parameters are missing, or invalidECApplicationException
-
reset
public void reset()
Resets the output properties to the values they had prior to calling the execute method. Then the get methods no longer work but the isReadyToCallExecute returns true. It provides a convenient and efficient way to reuse the same command instance with changes in some input properties or in the CommandTarget.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
validateParameters
public void validateParameters() throws ECException
This is where parameter checking is done. This method replaces checkParameters() in 5.1. The default implementation of validateParameters() is a no op. It is the responsibility of the command writers to implements this method if they want to perform server side parameter checking.- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException.
ECException
-
-