com.ibm.commerce.negotiation.commands
Class CheckAutoBidDeleteAuthorizationCmdImpl

com.ibm.commerce.negotiation.commands.CheckAutoBidDeleteAuthorizationCmdImpl
All Implemented Interfaces:
CheckAutoBidDeleteAuthorizationCmd, ECCommand, TaskCommand

public class CheckAutoBidDeleteAuthorizationCmdImpl
implements CheckAutoBidDeleteAuthorizationCmd

Determines if the bidder is allowed to delete the autobid. There could be many reasons to disallowing autobid delete operation:

The current implementation will ONLY check whether the bidder is authorized to Delete the autobid.


Field Summary
protected  boolean bidderAuthorized
           
static java.lang.String COPYRIGHT
           
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.CheckAutoBidDeleteAuthorizationCmd
defaultCommandClassName, NAME
 
Constructor Summary
CheckAutoBidDeleteAuthorizationCmdImpl()
          CheckBidDeleteAuthorizationImpl default constructor.
 
Method Summary
 java.lang.String getAutoBidId()
          Gets the auto bid identifier.
 boolean isBidderAuthorized()
          Gets the bidder authorized status.
 boolean isReadyToCallExecute()
          Verifies that the this command is ready to be executed.
 void performExecute()
          Determine if current bidder is authorized to Delete the autobid specified by the autobid id.
 void setAutoBidId(java.lang.String newAutoBidId)
          Sets the auto bid identifier.
protected  void setBidderAuthorized(boolean newBidderAuthorized)
          Sets the bidder authorized status.
 
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

bidderAuthorized

protected boolean bidderAuthorized

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

CheckAutoBidDeleteAuthorizationCmdImpl

public CheckAutoBidDeleteAuthorizationCmdImpl()
CheckBidDeleteAuthorizationImpl default constructor.
Method Detail

getAutoBidId

public java.lang.String getAutoBidId()
Gets the auto bid identifier.
Returns:
The auto bid identifier.

isBidderAuthorized

public boolean isBidderAuthorized()
Gets the bidder authorized status.
Specified by:
isBidderAuthorized in interface CheckAutoBidDeleteAuthorizationCmd
Returns:
true if the bidder is authorized, false otherwise.

isReadyToCallExecute

public boolean isReadyToCallExecute()
Verifies that the this command is ready to be executed.
Returns:
true if command is ready, otherwise false.

performExecute

public void performExecute()
                    throws ECException
Determine if current bidder is authorized to Delete the autobid specified by the autobid id.
Specified by:
performExecute in interface ECCommand
Throws:
ECException - if any problems are encountered.

setAutoBidId

public void setAutoBidId(java.lang.String newAutoBidId)
Sets the auto bid identifier.
Specified by:
setAutoBidId in interface CheckAutoBidDeleteAuthorizationCmd
Parameters:
newAutoBidId - The auto bid identifier.

setBidderAuthorized

protected void setBidderAuthorized(boolean newBidderAuthorized)
Sets the bidder authorized status.
Parameters:
newBidderAuthorized - The bidder authorized status.