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 bidder is not authorized to Delete the bid
- The auction rule forbid a Delete operation
- The bid being updated is the best bid
The current implementation will ONLY check whether the bidder is
authorized to Delete the bid.
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 |
bidderAuthorized
protected boolean bidderAuthorized
COPYRIGHT
public static final java.lang.String COPYRIGHT
CheckBidDeleteAuthorizationCmdImpl
public CheckBidDeleteAuthorizationCmdImpl()
- CheckBidDeleteAuthorizationImpl default constructor.
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.