com.ibm.commerce.negotiation.commands
Class CheckBidDeleteAuthorizationCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.negotiation.commands.CheckBidDeleteAuthorizationCmdImpl
All Implemented Interfaces:
CheckBidDeleteAuthorizationCmd, ECCommand, ECTargetableCommand, TaskCommand

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

Field Summary
protected boolean bidderAuthorized
The bidder authorization status.
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.CheckBidDeleteAuthorizationCmd
defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
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 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

COPYRIGHT

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

bidderAuthorized

protected boolean bidderAuthorized
The bidder authorization status.
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.
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 bid specified by the bid ID.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
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.

Feedback