com.ibm.commerce.negotiation.commands
Class CheckAutoBidDeleteAuthorizationCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.negotiation.commands.CheckAutoBidDeleteAuthorizationCmdImpl
All Implemented Interfaces:
CheckAutoBidDeleteAuthorizationCmd, ECCommand, ECTargetableCommand, TaskCommand

public class CheckAutoBidDeleteAuthorizationCmdImpl
extends TaskCommandImpl
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. This command uses the following AccessBeans:
See Also:
Serialized Form

Field Summary
protected  boolean bidderAuthorized
          The authorization status of the bidder.
static java.lang.String COPYRIGHT
          Copyright statement.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands. CheckAutoBidDeleteAuthorizationCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
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 class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
Copyright statement.
See Also:
Constant Field Values

bidderAuthorized

protected boolean bidderAuthorized
The authorization status of the bidder.
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.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
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
Overrides:
performExecute in class AbstractECTargetableCommand
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.