com.ibm.commerce.negotiation.commands
Class DeleteAuctionCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--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,
ToolsControllerCommand
- public class DeleteAuctionCmdImpl
- extends
ToolsControllerCommandImpl
- implements
DeleteAuctionCmd
Delete Auction Command. This command retracts auctions. This command
calls the following TaskCommands:
This command uses the following AccessBeans:
- See Also:
- Serialized
Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright statement. |
Methods inherited from class
com.ibm.commerce.command.
ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class
com.ibm.commerce.command.
AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
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 |
Methods inherited from interface
com.ibm.commerce.command.
ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface
com.ibm.commerce.command.
ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright statement.
- See Also:
-
Constant Field Values
DeleteAuctionCmdImpl
public DeleteAuctionCmdImpl()
- DeleteAuctionCmdImpl constructor comment.
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
isReadyToCallExecute
public boolean isReadyToCallExecute()
- isReadyToCallExecute method comment.
-
- Overrides:
-
isReadyToCallExecute
in class
AbstractECTargetableCommand
-
- Returns:
- true if ready to call execute, false otherwise.
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
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
- Sets the request properties. 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.
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
- Throws:
-
ECApplicationException
- is raised with message ERR_BAD_PARMS when
the auction parameters are invalid.
-
ECException