com.ibm.commerce.negotiation.commands
Class CloseBiddingCmdImpl

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.CloseBiddingCmdImpl
All Implemented Interfaces:
AccCommand, CloseBiddingCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand

public class CloseBiddingCmdImpl
extends ToolsControllerCommandImpl
implements CloseBiddingCmd

Close Bidding Implemetation. closes the bidding for an auction when the auction end time occurs. This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
Copyright statement.
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.CloseBiddingCmd
defaultCommandClassName, NAME
Constructor Summary
CloseBiddingCmdImpl()
Close Bidding command.
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)
Sets the request properties.
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, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, 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.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, 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
Copyright statement.
See Also:
Constant Field Values
Constructor Detail

CloseBiddingCmdImpl

public CloseBiddingCmdImpl()
Close Bidding command. This command is executed when an administrator performs close biddings for specific auctions.
Method Detail

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
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
AccessVector - a vector of resource action pairs
Throws:
ECException
ECApplicationException - is raised with message ERR_BAD_PARMS when the paremeters are invalid.

performExecute

public void performExecute()
                    throws ECException
Action to close auction
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECApplicationException - is thrown with message ERR_AUCTION_NOT_CURRENT when the auction is not current.
ECException

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
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.

Feedback