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 bidder is not authorized to delete the autobid.
- The auction rule forbids 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 autobid.
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 |
bidderAuthorized
protected boolean bidderAuthorized
COPYRIGHT
public static final java.lang.String COPYRIGHT
CheckAutoBidDeleteAuthorizationCmdImpl
public CheckAutoBidDeleteAuthorizationCmdImpl()
- CheckBidDeleteAuthorizationImpl default constructor.
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.