com.ibm.commerce.negotiation.commands
Class DeleteAuctionCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              |
              +--com.ibm.commerce.negotiation.commands.DeleteAuctionCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, DeleteAuctionCmd, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand

public class DeleteAuctionCmdImpl
extends ToolsControllerCommandImpl
implements DeleteAuctionCmd

Delete Auction Command. This command retracts auctions.


Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.DeleteAuctionCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
DeleteAuctionCmdImpl()
          DeleteAuctionCmdImpl constructor comment.
 
Method Summary
 java.util.Vector getAuctionIdList()
          Returns a list of auction identifiers.
 java.util.Hashtable getErrorContent()
          Returns the hashtable containing error codes.
 AccessVector getResources()
          Gets the access vector accessed by this command.
 boolean isReadyToCallExecute()
          isReadyToCallExecute method comment.
 void performExecute()
          Implementation for DeleteAuctionCmd.
 void setAuctionIdList(java.util.Vector newAuctionIdList)
          Stores a list of auction identifiers.
 void setErrorContent(java.util.Hashtable newErrorContent)
          Sets the incoming hashtable of error codes.
 void setRequestProperties(TypedProperty paramTable)
          The WebController calls this method before invoking the execute method in this command to set the request properties for this command.
 
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Constructor Detail

DeleteAuctionCmdImpl

public DeleteAuctionCmdImpl()
DeleteAuctionCmdImpl constructor comment.
Method Detail

getAuctionIdList

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

getErrorContent

public java.util.Hashtable getErrorContent()
Returns the hashtable containing error codes.
Returns:
java.util.Hashtable

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.

Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
AccessVector - a vector of resource action pairs

isReadyToCallExecute

public boolean isReadyToCallExecute()
isReadyToCallExecute method comment.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Following copied from class: com.ibm.commerce.command.AbstractECTargetableCommand
Returns:
boolean - true if we can execute the command false if we canot execute the command

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
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setAuctionIdList

public void setAuctionIdList(java.util.Vector newAuctionIdList)
Stores a list of auction identifiers.
Specified by:
setAuctionIdList in interface DeleteAuctionCmd
Parameters:
newAuctionIdList - java.util.Vector

setErrorContent

public void setErrorContent(java.util.Hashtable newErrorContent)
Sets the incoming hashtable of error codes.
Parameters:
newErrorContent - java.util.Hashtable

setRequestProperties

public void setRequestProperties(TypedProperty paramTable)
                          throws ECApplicationException
Description copied from interface: ControllerCommand
The WebController calls this method before invoking the execute method in this command to set the request properties for this command. It is the responsibility of the implementer of the ControllerCommand to extract the required input parameters from the request properties and perform parameter checking.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ToolsControllerCommandImpl
Parameters:
paramTable - com.ibm.commerce.datatype.TypedProperty
Throws:
ECApplicationException - The exception description.