com.ibm.commerce.negotiation.commands
Class CheckBidderQualificationCmdImpl
com.ibm.commerce.negotiation.commands.CheckBidderQualificationCmdImpl
- All Implemented Interfaces:
- CheckBidderQualificationCmd, ECCommand
- public class CheckBidderQualificationCmdImpl
- implements CheckBidderQualificationCmd
Checks if the Bidder is qualified to Bid on an Auction.
There are many things which can be checked:
- Shopper is a Registed shopper.
- Shopper's Credit history
- Last dealings with the shopper ; preferred shopper, shoppers's group etc.
In current implementation we check for the Shopper Registration condition.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
protected void |
handleException(java.lang.Exception e)
Formats an ECException based on the input exception value. |
boolean |
isReadyToCallExecute()
Verifies that the this command is ready to be executed. |
void |
performExecute()
Checks if the bidder is registered. |
void |
setErrorTaskName(java.lang.String errorTaskName)
Set error task name that will be returned by the exceptions. |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
CheckBidderQualificationCmdImpl
public CheckBidderQualificationCmdImpl()
- CheckBidderQualificationImpl constructor.
handleException
protected void handleException(java.lang.Exception e)
throws ECException
- Formats an ECException based on the input exception value.
- Parameters:
e
- Exception - The exception instance to be formatted.- Throws:
com.ibm.commerce.command.CommandException
- - could be one of many diffrenet exceptions:
ECApplicationException. RemoteException, NullPointerException,
CreateException, FinderException, or NamingException.
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Verifies that the this command is ready to be executed.
- Returns:
- boolean =true if command is ready, otherwise false.
performExecute
public void performExecute()
throws ECException
- Checks if the bidder is registered.
- Specified by:
performExecute
in interface ECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setErrorTaskName
public void setErrorTaskName(java.lang.String errorTaskName)
- Set error task name that will be returned by the exceptions.
- Specified by:
setErrorTaskName
in interface CheckBidderQualificationCmd
- Parameters:
errorTaskName
- java.lang.String