com.ibm.commerce.negotiation.commands
Class DeleteAuctionCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- 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, ECCommand, ECTargetableCommand, DeleteAuctionCmd, Protectable, ToolsControllerCommand, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
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
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM copyright notice field.-
Fields inherited from interface com.ibm.commerce.negotiation.commands.DeleteAuctionCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description DeleteAuctionCmdImpl()
DeleteAuctionCmdImpl constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description 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)
Sets request properties for view command.-
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties
-
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, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
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.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
-
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
-
isReadyToCallExecute
public boolean isReadyToCallExecute()
isReadyToCallExecute method comment.- Specified by:
isReadyToCallExecute
in interfacecom.ibm.websphere.command.Command
- Overrides:
isReadyToCallExecute
in classAbstractECTargetableCommand
- Returns:
- true if ready to call execute, 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 interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
-
setAuctionIdList
public void setAuctionIdList(java.util.Vector newAuctionIdList)
Stores a list of auction identifiers.- Specified by:
setAuctionIdList
in interfaceDeleteAuctionCmd
- 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 class:ToolsControllerCommandImpl
Sets request properties for view command.In the default implementation, this method simply saves the request properties.
- Specified by:
setRequestProperties
in interfaceControllerCommand
- Overrides:
setRequestProperties
in classToolsControllerCommandImpl
- 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 interfaceECCommand
- Overrides:
getResources
in classAbstractECTargetableCommand
- Returns:
- AccessVector - a vector of resource action pairs
- Throws:
ECApplicationException
- is raised with message ERR_BAD_PARMS when the auction parameters are invalid.ECException
-
-