com.ibm.commerce.negotiation.commands
Class CheckBidDeleteAuthorizationCmdImpl

com.ibm.commerce.negotiation.commands.CheckBidDeleteAuthorizationCmdImpl
All Implemented Interfaces:
CheckBidDeleteAuthorizationCmd, ECCommand, TaskCommand

public class CheckBidDeleteAuthorizationCmdImpl
implements CheckBidDeleteAuthorizationCmd

Determines if a bidder is allowed to Delete a bid. There are several reasons to disallow bid Delete operation:

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


Field Summary
protected  boolean bidderAuthorized
           
static java.lang.String COPYRIGHT
           
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.CheckBidDeleteAuthorizationCmd
defaultCommandClassName, NAME
 
Constructor Summary
CheckBidDeleteAuthorizationCmdImpl()
          CheckBidDeleteAuthorizationImpl default constructor.
 
Method Summary
 java.lang.String getBidId()
          Gets the bid identifier field.
 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 bid specified by the bid ID.
protected  void setBidderAuthorized(boolean newBidderAuthorized)
          Sets the bidder authorized status.
 void setBidId(java.lang.String newBidId)
          Sets the bid identifier field.
 
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

CheckBidDeleteAuthorizationCmdImpl

public CheckBidDeleteAuthorizationCmdImpl()
CheckBidDeleteAuthorizationImpl default constructor.
Method Detail

getBidId

public java.lang.String getBidId()
Gets the bid identifier field.
Returns:
The bid identifier.

isBidderAuthorized

public boolean isBidderAuthorized()
Gets the bidder authorized status.
Specified by:
isBidderAuthorized in interface CheckBidDeleteAuthorizationCmd
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 bid specified by the bid ID.
Specified by:
performExecute in interface ECCommand
Throws:
ECException - if any problems are encountered.

setBidderAuthorized

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

setBidId

public void setBidId(java.lang.String newBidId)
Sets the bid identifier field.
Specified by:
setBidId in interface CheckBidDeleteAuthorizationCmd
Parameters:
newBidId - The bid identifier.