com.ibm.commerce.negotiation.commands
Class CloseBiddingCmdImpl
com.ibm.commerce.negotiation.commands.CloseBiddingCmdImpl
- All Implemented Interfaces:
- AccCommand, CloseBiddingCmd, ControllerCommand, ECCommand, Protectable, ToolsControllerCommand
- public class CloseBiddingCmdImpl
- implements CloseBiddingCmd
Close Bidding Implemetation.
closes the bidding for an auction when the auction end time occurs.
Method Summary |
java.util.Hashtable |
getErrorContent()
Returns a hashtable of error codes. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
void |
performExecute()
Action to close auction |
void |
setAuctionIdList(java.util.Vector newAuctionList)
Sets the incoming vector of auction identifiers. |
void |
setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
Mutation method to set auction reference number |
void |
setErrorContent(java.util.Hashtable newErrorContent)
Stores 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 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.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
CloseBiddingCmdImpl
public CloseBiddingCmdImpl()
- Close Bidding command. This command is executed when an administrator performs close biddings for specific auctions.
getErrorContent
public java.util.Hashtable getErrorContent()
- Returns a hashtable of 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
- Returns:
- AccessVector - a vector of resource action pairs
performExecute
public void performExecute()
throws ECException
- Action to close auction
- Specified by:
performExecute
in interface ECCommand
- 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 newAuctionList)
- Description copied from interface:
CloseBiddingCmd
- Sets the incoming vector of auction identifiers.
- Specified by:
setAuctionIdList
in interface CloseBiddingCmd
- Parameters:
newAuctionList
- java.util.Vector
setAuctionReferenceNumber
public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
- Mutation method to set auction reference number
- Parameters:
newAuctionReferenceNumber
- java.lang.Long
setErrorContent
public void setErrorContent(java.util.Hashtable newErrorContent)
- Stores 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
- Parameters:
paramTable
- com.ibm.commerce.datatype.TypedProperty- Throws:
ECApplicationException
- The exception description.