com.ibm.commerce.negotiation.commands
Class CheckGenBidRefCmdImpl
com.ibm.commerce.negotiation.commands.CheckGenBidRefCmdImpl
- All Implemented Interfaces:
- CheckGenBidRefCmd, ECCommand
- public class CheckGenBidRefCmdImpl
- implements CheckGenBidRefCmd
Validates the integrity of a bid reference key.
The bid reference key will be unpacked and checks will be
performed on each of its parts (user reference number,
time stamp, ...)
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
boolean |
isReadyToCallExecute()
Verifies that the this command is ready to be executed. |
void |
performExecute()
Unpacks and validates the bid reference key. |
void |
setBidReferenceKey(java.lang.String bidReferenceKey)
Sets the Bid Reference key. |
void |
setBidType(java.lang.String bidType)
Sets this bid type. |
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
CheckGenBidRefCmdImpl
public CheckGenBidRefCmdImpl()
- CheckBidReferenceNumberImpl default constructor.
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
Unpacks and validates the bid reference key.
- Check if user reference number matches the current user number.
- Check if time stamp is later than current time stamp.
- Check for proper length of the last subkey.
- Specified by:
performExecute
in interface ECCommand
- Throws:
ECException
- - Case of invalid bid reference key..
setBidReferenceKey
public void setBidReferenceKey(java.lang.String bidReferenceKey)
- Sets the Bid Reference key.
- Specified by:
setBidReferenceKey
in interface CheckGenBidRefCmd
- Parameters:
bidReferenceKey
- String - Bid reference key.
setBidType
public void setBidType(java.lang.String bidType)
- Sets this bid type.
- Specified by:
setBidType
in interface CheckGenBidRefCmd
- Parameters:
bidType
- java.lang.String - Regular or Auto bid type.
setErrorTaskName
public void setErrorTaskName(java.lang.String errorTaskName)
- Set error task name that will be returned by the exceptions.
- Specified by:
setErrorTaskName
in interface CheckGenBidRefCmd
- Parameters:
errorTaskName
- java.lang.String