com.ibm.commerce.negotiation.commands
Class ModifyBidRuleCmdImpl
- 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.tools.command.ToolsControllerCommandImpl
-
- com.ibm.commerce.negotiation.commands.BidRuleBaseCmdImpl
-
- com.ibm.commerce.negotiation.commands.ModifyBidRuleCmdImpl
-
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, BidRuleBaseCmd, ModifyBidRuleCmd, com.ibm.commerce.negotiation.util.AuctionConstants, Protectable, ToolsControllerCommand, 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
public class ModifyBidRuleCmdImpl extends BidRuleBaseCmdImpl implements ModifyBidRuleCmd, com.ibm.commerce.negotiation.util.AuctionConstants
Modifies a bid control rule.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM copyright notice field.-
Fields inherited from interface com.ibm.commerce.negotiation.commands.ModifyBidRuleCmd
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 ModifyBidRuleCmdImpl()
ModifyBidRuleCmdImpl constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AccessVector
getResources()
Gets the access vector accessed by this command.boolean
isReadyToCallExecute()
Verifies that the this command is ready to be executed.void
modifyBidRuleRequestProperties()
Updates request properties to reflect the modified bid rule.void
performExecute()
Creates a bid rule.void
setRequestProperties(TypedProperty param)
Copies key-value input data into member fields.void
validateParameters()
Validates parameters.-
Methods inherited from class com.ibm.commerce.negotiation.commands.BidRuleBaseCmdImpl
getErrorContent, getErrorFlag, getToolXMLObject, setErrorContent, setErrorFlag, setToolXMLObject
-
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties
-
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, 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, reset, 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
-
-
Constructor Detail
-
ModifyBidRuleCmdImpl
public ModifyBidRuleCmdImpl()
ModifyBidRuleCmdImpl constructor.
-
-
Method Detail
-
getResources
public AccessVector getResources() throws ECException
Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.- Specified by:
getResources
in interfaceECCommand
- Overrides:
getResources
in classAbstractECTargetableCommand
- Returns:
- AccessVector - a vector of resource action pairs
- Throws:
ECApplicationException
- is raised with message _ERR_BAD_PARMS and the class name.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 classBidRuleBaseCmdImpl
- Returns:
- boolean true if command is ready, otherwise false.
-
modifyBidRuleRequestProperties
public void modifyBidRuleRequestProperties()
Updates request properties to reflect the modified bid rule.
-
performExecute
public void performExecute() throws ECException
Creates a bid rule.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classBidRuleBaseCmdImpl
- Throws:
ECException
-
setRequestProperties
public void setRequestProperties(TypedProperty param) throws ECApplicationException
Copies key-value input data into member fields.- Specified by:
setRequestProperties
in interfaceControllerCommand
- Overrides:
setRequestProperties
in classBidRuleBaseCmdImpl
- Parameters:
param
- com.ibm.commerce.datatype.TypedProperty- Throws:
ECApplicationException
-
validateParameters
public void validateParameters() throws ECApplicationException
Validates parameters.- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECApplicationException
-
-