|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.negotiation.commands.BidCreateFormCmdImpl
Displays the Bid Create Form page after completing the following tasks:
Field Summary | |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
EC_BID_FORM_CREATE_ERROR_VIEW_CMD
|
Fields inherited from interface com.ibm.commerce.negotiation.commands.BidCreateFormCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
BidCreateFormCmdImpl()
BidCreateFormImpl default constructor. |
Method Summary | |
protected java.lang.String |
genBidReferenceKey()
Generates and returns a unique bid reference key. |
protected java.lang.Long |
getAuctionReferenceNumber()
Returns the auction reference number for which a bid is to be created. |
protected java.lang.String |
getBidType()
Returns this bid type. |
protected java.lang.String |
getLocalErrorTaskName()
Returns this command's error task name. |
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 create task. |
protected void |
setAuctionReferenceNumber(java.lang.String auctionReferenceKey)
Sets the auction reference number for which a bid is to be created. |
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()
Checks that the bidder status is valid for the current auction. |
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.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String EC_BID_FORM_CREATE_ERROR_VIEW_CMD
Constructor Detail |
public BidCreateFormCmdImpl()
Method Detail |
protected java.lang.String genBidReferenceKey() throws ECException
ECException
- - throws an exception if encountered
during GenBidReferenceKey command execution.protected java.lang.Long getAuctionReferenceNumber()
protected java.lang.String getBidType()
protected java.lang.String getLocalErrorTaskName()
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 while
executing the bidder qualification task.public boolean isReadyToCallExecute()
public void performExecute() throws ECException
performExecute
in interface ECCommand
ECException
- -protected void setAuctionReferenceNumber(java.lang.String auctionReferenceKey) throws InvalidParameterValueException
auctionReferenceKey
- String - String representation for auction reference numberInvalidParameterValueException
- - Throws an exception if the auction reference number 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
ECApplicationException:
- An exception is returned
if the mandatory parameter (auction reference number) is missing, or invalidprotected boolean validBidderStatus() throws ECException
ECException
- - An exception is thrown if encountered an
while showing the bidder the auction rules.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |