public class BidDeleteHelper extends java.lang.Object implements com.ibm.commerce.negotiation.util.AuctionConstants, ECConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
BidDeleteHelper()
BidDeleteCmdImpl constructor comment.
|
Modifier and Type | Method and Description |
---|---|
void | adminDeleteBids()
Performs necessary validations and updates for an administrator to delete a batch of bids.
|
boolean | bidAppliesToAuction(BidAccessBean bab, java.lang.String bidId)
Verifies that the incoming bid exists for the auction that it refers to.
|
protected boolean | checkBidDeleteAuthorization(java.lang.String bidId)
checkBidDeleteAuthorization Executes CheckBidDeleteAuthorizationCmd task.
|
void | checkParameters()
checkParameters Validates parameters.
|
protected BidAccessBean | deleteBidIfAuthorized(java.lang.String bidId)
deleteBidIfAuthorized Validates a bidId, marks bid as deleted.
|
void | doDepositPayment(BidAccessBean bab, java.lang.String bidId)
doDepositPayment Executes DoAuctionPayment task to refund deposits.
|
java.lang.String | getAuctionId()
Returns the auction identifier.
|
int | getBidCount()
getBidCount Returns the number of bids specified by the input.
|
java.lang.String[] | getBidIdArray()
getBidIdArray Gets the array of bid IDs.
|
CommandContext | getCommandContext()
Returns command context.
|
java.lang.Object[] | getErrmsgParams()
Gets error parameters of message.
|
java.lang.String | getErrorKey()
getErrorKey Returns the NLV key to the last error detected.
|
java.lang.String | getErrorTaskName()
Returns task name that handles the error.
|
java.lang.String | getUrl()
getUrl Gets the URL that will be used if deleting bids are successful.
|
boolean | isAutoBid()
Is autobid or not.
|
boolean | isErrorStatus()
Is there error occuring .
|
void | markAsDeleted(BidAccessBean bab, java.lang.String bidId)
markAsDeleted Sets the status of a bid to deleted.
|
void | markAsRetracted(BidAccessBean bab, java.lang.String bidId)
markAsRetracted Sets the status of a bid to retracted.
|
void | markAutobidAsDeleted(BidAccessBean bab, java.lang.String bidId)
Sets the status of the autobid, on behalf of which the incoming bid was submitted,to deleted.
|
void | setAuctionId(java.lang.String newAuctionId)
Sets the auction ID.
|
void | setBidIdArray(java.lang.String[] newBidIdArray)
setBidIdArray Sets the array of bid IDs.
|
void | setBidIdArrayFromList(java.lang.String list)
setBidIdArrayFromList Parses a comma-delimited list of bid IDs into an array of strings.
|
void | setCommandContext(CommandContext newCommandContext)
Stores the incoming command context in a member variable.
|
protected void | setErrmsgParams(java.lang.Object[] newErrmsgParams)
Sets parameters used to generate error text.
|
void | setErrorKey(java.lang.String newErrorKey)
setErrorKey Saves the most recent NLV error message key.
|
protected void | setErrorStatus(boolean newErrorStatus)
setErrorStatus Indicates whether an error occured during the last operation.
|
void | setErrorTaskName(java.lang.String newErrorTaskName)
Sets the taskname that handles errors.
|
void | setUrl(java.lang.String newUrl)
Sets URL that will be used if deleting bids are successful..
|
void | shopperDeleteBids()
Performs necessary validations and updates for a shopper-side bid-delete operation.
|
AuctionAccessBean | validateAuctionId()
validateAuctionId Determines whether an auction exists, is current, and is not Dutch.
|
BidAccessBean | validateBidId(java.lang.String bidId)
validateBidId Determines whether a bid exists.
|
public static final java.lang.String COPYRIGHT
public void adminDeleteBids() throws ECApplicationException, ECSystemException
public boolean bidAppliesToAuction(BidAccessBean bab, java.lang.String bidId) throws ECApplicationException, ECSystemException
protected boolean checkBidDeleteAuthorization(java.lang.String bidId) throws ECApplicationException, ECSystemException
public void checkParameters() throws ECApplicationException
protected BidAccessBean deleteBidIfAuthorized(java.lang.String bidId) throws ECApplicationException, ECSystemException
public void doDepositPayment(BidAccessBean bab, java.lang.String bidId) throws ECApplicationException, ECSystemException
public java.lang.String getAuctionId()
public int getBidCount()
public java.lang.String[] getBidIdArray()
public CommandContext getCommandContext()
public java.lang.Object[] getErrmsgParams()
public java.lang.String getErrorKey()
public java.lang.String getErrorTaskName()
public java.lang.String getUrl()
public boolean isAutoBid()
public boolean isErrorStatus()
public void markAsDeleted(BidAccessBean bab, java.lang.String bidId) throws ECApplicationException, ECSystemException
public void markAsRetracted(BidAccessBean bab, java.lang.String bidId) throws ECApplicationException, ECSystemException
public void markAutobidAsDeleted(BidAccessBean bab, java.lang.String bidId) throws ECApplicationException, ECSystemException
public void setAuctionId(java.lang.String newAuctionId)
public void setBidIdArray(java.lang.String[] newBidIdArray)
public void setBidIdArrayFromList(java.lang.String list)
public void setCommandContext(CommandContext newCommandContext)
protected void setErrmsgParams(java.lang.Object[] newErrmsgParams)
public void setErrorKey(java.lang.String newErrorKey)
protected void setErrorStatus(boolean newErrorStatus)
public void setErrorTaskName(java.lang.String newErrorTaskName)
public void setUrl(java.lang.String newUrl)
public void shopperDeleteBids() throws ECApplicationException, ECSystemException
public AuctionAccessBean validateAuctionId() throws ECApplicationException, ECSystemException
public BidAccessBean validateBidId(java.lang.String bidId) throws ECSystemException