java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.negotiation.commands.BidUpdateFormCmdImpl
Displays the Bid Update Form page after completing the following tasks:
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright statement. |
static java.lang.String |
EC_BID_FORM_UPDATE_ERROR_VIEW_CMD The default Error View for this command. |
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. BidUpdateFormCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
BidUpdateFormCmdImpl() BidUpdateFormCmdImpl default constructor. |
Method Summary | |
---|---|
protected
java.lang.Long |
getBidId() Returns the bid id for which a bid is to be updated. |
protected
java.lang.String |
getBidType() Returns this bid type. |
protected
java.lang.String |
getLocalErrorTaskName() Returns this command's error task name. |
AccessVector |
getResources() This method returns the resources accessed by this command It will return null if no resource if being accessed by this command. |
protected
void |
handleException(java.lang.Exception e) Formats an ECException based on the input exception value. |
protected
boolean |
isBidderQualified() Checks if current Bidder (user) is qualified to Bid on the current auction. |
boolean |
isReadyToCallExecute() Verifies that the this command is ready to be executed. |
void |
performExecute() Executes a bid form update task. |
protected
void |
saveRequestProp(
TypedProperty reqProp) Saves current request properties |
protected
void |
setBidId(java.lang.String bidId) Sets the bid id for which a bid is to be updated. |
protected
void |
setBidType(java.lang.String bidType) Sets this bid type. |
protected
void |
setLocalErrorTaskName(java.lang.String errorTaskName) Sets this command's error task name |
void |
setRequestProperties(
TypedProperty requestParam) Saves the Mandatory and optional command parameter values. |
protected
boolean |
validBidderStatus(java.lang.String auctionRefKey) Checks that the bidder status is valid for the current auction. |
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,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
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,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EC_BID_FORM_UPDATE_ERROR_VIEW_CMD
Constructor Detail |
---|
public BidUpdateFormCmdImpl()
Method Detail |
---|
protected java.lang.Long getBidId()
protected java.lang.String getBidType()
protected java.lang.String getLocalErrorTaskName()
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
- is raised with messge ERR_INVALID_BID_REF_NUM and the class name when the
resources associated with this command are invalid.protected void handleException(java.lang.Exception e) throws ECException
e
- Exception - The exception instance to be formatted.ECException
- - could be one of many diffrenet exceptions: ECApplicationException.
RemoteException, CreateException, FinderException, or
NamingException.protected boolean isBidderQualified() throws ECException
ECException
- - thorws an exception if an error occurred whilr executing the bidder
qualification task.public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- -protected void saveRequestProp(TypedProperty reqProp)
reqProp
-
com.ibm.commerce.datatype.TypedPropertyprotected void setBidId(java.lang.String bidId) throws InvalidParameterValueException
bidId
- String - String representation for bid id
InvalidParameterValueException
- - Throws an exception if the bid id
is not numeric.protected void setBidType(java.lang.String bidType)
bidType
- java.lang.String - Regular or Auto bid
type.protected void setLocalErrorTaskName(java.lang.String errorTaskName)
errorTaskName
- java.lang.Stringpublic void setRequestProperties(TypedProperty requestParam) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
requestParam
- TypedProperty - Request parameters table.ECApplicationException:
- An exception is returned if the
mandatory parameter (bid id) is missing, or invalid
ECApplicationException
protected boolean validBidderStatus(java.lang.String auctionRefKey) throws ECException
auctionRefKey
- String - Auction Reference KeyECException
- - Error creating CheckBidderStatusCmd command instance, or excuting the
created command.