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
           
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.CheckGenBidRefCmd
defaultCommandClassName, NAME
 
Constructor Summary
CheckGenBidRefCmdImpl()
          CheckBidReferenceNumberImpl default constructor.
 
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
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

CheckGenBidRefCmdImpl

public CheckGenBidRefCmdImpl()
CheckBidReferenceNumberImpl default constructor.
Method Detail

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
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