com.ibm.commerce.negotiation.commands
Class CheckBidUpdateAuthorizationCmdImpl

com.ibm.commerce.negotiation.commands.CheckBidUpdateAuthorizationCmdImpl
All Implemented Interfaces:
CheckBidUpdateAuthorizationCmd, ECCommand

public class CheckBidUpdateAuthorizationCmdImpl
implements CheckBidUpdateAuthorizationCmd

Determines if a the bidder is allowed to update the bid. There could be many reasons to disallowing bid update operation: The bidder is not authorized to update the bid. The auction rule forbid an update operation. The bid being updated is the best bid. The current implementation will ONLY check whether the bidder is authorized to update the bid.


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.CheckBidUpdateAuthorizationCmd
defaultCommandClassName, NAME
 
Constructor Summary
CheckBidUpdateAuthorizationCmdImpl()
          CheckBidUpdateAuthorizationImpl default constructor.
 
Method Summary
 java.lang.String getBidReferenceKey()
          Returns bid reference key
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()
          Determine if current bidder is authorized to update the bid specified by the reference key.
 void setBidReferenceKey(java.lang.String bidReferenceKey)
          Sets the bid reference key
 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

CheckBidUpdateAuthorizationCmdImpl

public CheckBidUpdateAuthorizationCmdImpl()
CheckBidUpdateAuthorizationImpl default constructor.
Method Detail

getBidReferenceKey

public java.lang.String getBidReferenceKey()
Returns bid reference key
Returns:
String - Bid reference key

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:
ECException - - could be one of many diffrenet exceptions: ECApplicationException. RemoteException, 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
Determine if current bidder is authorized to update the bid specified by the reference key.
Specified by:
performExecute in interface ECCommand
Throws:
ECException - -

setBidReferenceKey

public void setBidReferenceKey(java.lang.String bidReferenceKey)
Sets the bid reference key
Specified by:
setBidReferenceKey in interface CheckBidUpdateAuthorizationCmd
Parameters:
bidReferenceKey - String - Bid reference key

setErrorTaskName

public void setErrorTaskName(java.lang.String errorTaskName)
Set error task name that will be returned by the exceptions.
Specified by:
setErrorTaskName in interface CheckBidUpdateAuthorizationCmd
Parameters:
errorTaskName - java.lang.String