com.ibm.commerce.negotiation.commands
Class DeleteAuctionStyleCmdImpl

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

public class DeleteAuctionStyleCmdImpl
extends ToolsControllerCommandImpl
implements DeleteAuctionStyleCmd

Deletes one or more auction styles.


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.DeleteAuctionStyleCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
DeleteAuctionStyleCmdImpl()
          DeleteAuctionStyleCmdImpl constructor.
 
Method Summary
 java.util.Vector getAuctionStyleList()
          Gets the list of auction styles.
 java.util.Hashtable getErrorContent()
          Returns a hashtable of error codes.
 AccessVector getResources()
          Gets the access vector accessed by this command.
 void performExecute()
          Loops through the list of auction styles and deletes them.
 void setAuctionStyleList(java.util.Vector newAuctionStyleList)
          Sets the list of auction styles.
 void setErrorContent(java.util.Hashtable newErrorContent)
          Stores the hashtable of error codes.
 void setRequestProperties(TypedProperty prop)
          Copies key-value input data into member fields.
 
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, isReadyToCallExecute, 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

DeleteAuctionStyleCmdImpl

public DeleteAuctionStyleCmdImpl()
DeleteAuctionStyleCmdImpl constructor.
Method Detail

getAuctionStyleList

public java.util.Vector getAuctionStyleList()
Gets the list of auction styles.
Returns:
A vector containing the list of auction styles.

getErrorContent

public java.util.Hashtable getErrorContent()
Returns a hashtable of error codes.
Returns:
The hashtable of error codes.

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:
The vector of resource action pairs.
Throws:
ECException - if any problems are encountered.

performExecute

public void performExecute()
                    throws ECException
Loops through the list of auction styles and deletes them.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - if any errors are encountered.

setAuctionStyleList

public void setAuctionStyleList(java.util.Vector newAuctionStyleList)
Sets the list of auction styles.
Specified by:
setAuctionStyleList in interface DeleteAuctionStyleCmd
Parameters:
newAuctionStyleList - A vector containing the list of auction styles.

setErrorContent

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

setRequestProperties

public void setRequestProperties(TypedProperty prop)
                          throws ECApplicationException
Copies key-value input data into member fields.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ToolsControllerCommandImpl
Throws:
ECApplicationException - if any error are encountered.