com.ibm.commerce.negotiation.commands
Class DeleteAuctionTaskCmdImpl

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

public class DeleteAuctionTaskCmdImpl
extends TaskCommandImpl
implements DeleteAuctionTaskCmd

Delete Auction Command. This command retracts auctions.
This command calls the following Commands:

This command uses the following AccessBeans:
See Also:
Serialized Form

Field Summary
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. DeleteAuctionTaskCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
DeleteAuctionTaskCmdImpl()
          DeleteAuctionCmdImpl constructor comment.
 
Method Summary
 java.util.Vector getAuctionIdList()
          Returns the list of auction identifiers.
 java.util.Hashtable getErrorContent()
          Returns a hashtable of error codes.
 java.lang.Integer getFulfillmentCenterId()
          Gets the fullfillment center identifier.
protected  boolean inventoryUpdate(AuctionAccessBean abean, java.lang.Double qua)
          Check inventory update or not.
 boolean isReadyToCallExecute()
          Determine if the command can be executed.
 void performExecute()
          Implementation for DeleteAuctionCmd.
 void setAuctionIdList(java.util.Vector newAuctionIdList)
          Stores the incoming list of auction identifiers.
 void setErrorContent(java.util.Hashtable newErrorContent)
          Stores the incoming hashtable containing error codes.
 
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
Constructor Detail

DeleteAuctionTaskCmdImpl

public DeleteAuctionTaskCmdImpl()
DeleteAuctionCmdImpl constructor comment.
Method Detail

getAuctionIdList

public java.util.Vector getAuctionIdList()
Returns the list of auction identifiers.
Returns:
The list of auction identifiers.

getErrorContent

public java.util.Hashtable getErrorContent()
Returns a hashtable of error codes.
Specified by:
getErrorContent in interface DeleteAuctionTaskCmd
Returns:
The hashtable of error codes.

getFulfillmentCenterId

public java.lang.Integer getFulfillmentCenterId()
Gets the fullfillment center identifier.
Returns:
The fullfillment center identifier.

inventoryUpdate

protected boolean inventoryUpdate(AuctionAccessBean abean,
                                  java.lang.Double qua)
                           throws ECException
Check inventory update or not.
Parameters:
abean - AuctionAccessBean.
qua - The quantity.
Returns:
true if the inventory was sucessfully updated, false otherwise.
Throws:
ECException - if any problems are encountered.

isReadyToCallExecute

public boolean isReadyToCallExecute()
Determine if the command can be executed.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Returns:
true if the command can be executed, false otherwise.

performExecute

public void performExecute()
                    throws ECException
Implementation for DeleteAuctionCmd. It will update the product for auction and pay back money if necessary, then auction is retracted.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - if any problems are encountered.

setAuctionIdList

public void setAuctionIdList(java.util.Vector newAuctionIdList)
Stores the incoming list of auction identifiers.
Specified by:
setAuctionIdList in interface DeleteAuctionTaskCmd
Parameters:
newAuctionIdList - The list of auction identifiers.

setErrorContent

public void setErrorContent(java.util.Hashtable newErrorContent)
Stores the incoming hashtable containing error codes.
Parameters:
newErrorContent - The hashtable containing error codes.