com.ibm.commerce.utf.commands
Class OfferingBaseCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
                          |
                          +--com.ibm.commerce.utf.commands.OfferingBaseCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OfferingBaseCmd, ToolsControllerCommand
Direct Known Subclasses:
RFQCreateCmdImpl, RFQModifyCmdImpl

public class OfferingBaseCmdImpl
extends ToolsControllerCommandImpl
implements OfferingBaseCmd

This is the default implementation of the OfferingBaseCmd.

This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
 java.lang.Integer accessType
          Access Type.
 java.lang.Long accountid
          Account Id.
 int closingrule
          Closing Rule.
 java.lang.String documentdesc
          Document Description.
 java.lang.String documentURL
          Document URL.
 java.lang.String domain
          Domain.
 java.lang.String enddate
          End Date.
 int endresult
          End Result.
 java.lang.String endtime
          End Time.
 java.sql.Timestamp endtimestamp
          End Timestamp.
 java.lang.String longdesc
          Long Description.
 java.lang.String mimeencoding
          Document Mime Coding.
 java.lang.String mimetype
          Document Mime Type.
 java.lang.String name
          Name.
 int numbids
          Number of Bids.
 java.lang.Integer numResponses
          Number of Responses.
 java.lang.Long offeringid
          Offering Id.
 java.lang.Long ownerid
          Owner Id.
 java.util.Vector participantList
          Participant List.
 java.util.Vector prodattrList
          Product Attribute List.
 java.util.Vector prodComments
          Product Comments.
 java.util.Vector prodList
          Product List.
 java.lang.Integer ruleType
          Rule Type.
 java.lang.String shortdesc
          Short Description.
 java.lang.String startdate
          Start Date.
 java.lang.String starttime
          Start Time.
 java.sql.Timestamp starttimestamp
          Start Timestamp.
 java.lang.Integer state
          State.
 java.lang.Long statemachine
          State Machine.
 java.util.Vector TcElements
          Term and Condition Elements.
 java.util.Vector tcList
          Term and Condition List.
 java.lang.Long tradingengine
          Trading Engine.
 java.lang.Integer versionid
          Version ID.
 
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.utf.commands. OfferingBaseCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Constructor Summary
OfferingBaseCmdImpl()
           
 
Method Summary
 java.lang.Integer getAccessType()
          Gets the accessType
 java.lang.Long getAccountid()
          Retrieves the account Id.
 int getClosingrule()
          Returns the closing rule.
 java.lang.String getDocumentdesc()
          Returns the document description.
 java.lang.String getDocumentURL()
          Returns the URL for the attachment.
 java.lang.String getDomain()
          Returns the domain of trade.
 java.lang.String getEnddate()
          Returns the ending date for the offering.
 int getEndresult()
          Returns an integer value that indicates the offering's end result: 0 - Contract, 1 - Order ,...
 java.lang.String getEndtime()
          Returns the ending time for the offering.
 java.sql.Timestamp getEndtimestamp()
          Returns the offering's end date and time as a java timestamp.
 java.util.Hashtable getErrorContent()
          Returns the hashtable containing error codes and parameters.
 boolean getErrorFlag()
          Returns the value of the error flag.
 java.lang.String getLongdesc()
          Returns the long description for the offering.
 java.lang.String getMimeencoding()
          Returns the mime encoding for the offering attachment.
 java.lang.String getMimetype()
          Returns the mime type for the offering attachment.
 java.lang.String getName()
          Returns the name of the offering.
 int getNumbids()           Returns the number of responses needed for offering to close automatically. An offering could be set up to close automatically after a certain number of responses have been received.
 java.lang.Integer getNumResponses()
          Gets the numResponses
 java.lang.Long getOfferingid()
          Returns the identifier for the Offering.
 java.lang.Long getOwnerid()
          Returns the member identifier for the owner of the offering.
 java.util.Vector getParticipantList()
          Returns the list of participants for the offering.
 java.util.Vector getProdattrList()
          Returns the list of product attributes for the offering.
 java.util.Vector getProdComments()
          Returns the lisr of product comments for the offering.
 java.util.Vector getProdList()
          Returns the list of products for the offering.
 java.lang.Integer getRuleType()
          Gets the ruleType
 java.lang.String getShortdesc()
          Returns the short description for the offering.
 java.lang.String getStartdate()
          Returns the start date for the offering.
 java.lang.String getStarttime()
          Returns the start time for the offering.
 java.sql.Timestamp getStarttimestamp()
          Returns the start date and time for the offering as a java timestamp.
 java.lang.Integer getState()
          Returns the integer value for the Offering's state.
 java.lang.Long getStatemachine()
          Returns the state machine for the offering.
 java.util.Vector getTcList()
          Returns the list of TCs for the offering.
 java.util.Hashtable getToolXMLObject()
          Returns the hastable which represents tools framework's XML object.
 java.lang.Long getTradingengine()
          Returns the identifier of the trading engine that manages the offering.
 java.lang.Integer getVersionid()
          Returns the version number of the offering.
 void reset()
          Reset the command.
 void setAccessType(java.lang.Integer accessType)
          Sets the accessType
 void setAccountid(java.lang.Long newAccountid)
          Stores the incoming account ID.
 void setAccountIdFromUrl(java.lang.String s, boolean isReq)
          Retrieves the account identifier from the tools XML object and stores it in a member variable.
 void setClosingrule(int newClosingrule)           Sets the closing rule for the offering.
 void setClosingRuleFromUrl(java.lang.String s, boolean isReq)
          Retrieves the closing rule identifier from the tools XML object and stores it in a member variable.
 void setDocumentdesc(java.lang.String newDocumentdesc)           Sets the attachment description.
 void setDocumentDescriptionFromUrl(java.lang.String s, boolean isReq)
          Retrieves the attachment description from the tools XML object and stores it in a member variable.
 void setDocumentURL(java.lang.String newDocumentURL)           Sets the attachment URL.
 void setDocumentURLFromUrl(java.lang.String s, boolean isReq)
          Retrieves the attachment URL from the tools XML object and stores it in a member variable.
 void setDomain(java.lang.String newDomain)           Sets the trading domain.
 void setDomainFromUrl(java.lang.String s, boolean isReq)
          Retrieves the trading domain from the tools XML object and stores it in a member variable.
 void setEnddate(java.lang.String newEnddate)           Sets the offering end date.
 void setEndDateFromUrl(java.lang.String s, boolean isReq)
          Retrieves the offering end date from the tools XML object and stores it in a member variable.
 void setEndresult(int newEndresult)           Sets the end result of the offering.
 void setEndResultFromUrl(java.lang.String s, boolean isReq)
          Retrieves the offering end result from the tools XML object and stores it in a member variable.
 void setEndtime(java.lang.String newEndtime)           Sets the end time of the offering.
 void setEndTimeFromUrl(java.lang.String s, boolean isReq)
          Retrieves the offering end time from the tools XML object and stores it in a member variable.
 void setEndtimestamp(java.sql.Timestamp newEndtimestamp)           Sets the end date and time of the offering in a java timestamp.
 void setErrorContent(java.util.Hashtable newErrorContent)           Sets the hashtable containing error codes.
 void setErrorFlag(boolean newErrorFlag)           Sets the error flag.
 void setLongdesc(java.lang.String newLongdesc)           Sets the long description of the offering.
 void setLongDescFromUrl(java.lang.String s, boolean isReq)
          Retrieves the long description from the tools XML object and stores it in a member variable.
 void setMarketFromUrl(java.lang.String s, boolean isReq)
          Retrieves the market/store identifier from the tools XML object and stores it in a member variable.
 void setMimeencoding(java.lang.String newMimeencoding)           Sets the mime encoding of the offering attachment.
 void setMimetype(java.lang.String newMimetype)           Sets the mime type of the offering attachment.
 void setMimeTypeEncodingFromUrl(java.lang.String s, boolean isReq)
          Retrieves the mime type encoding of the attachment from the tools XML object and stores it in a member variable.
 void setMimeTypeFromUrl(java.lang.String s, boolean isReq)
          Retrieves the mime type of the attachment from the tools XML object and stores it in a member variable.
 void setName(java.lang.String newName)           Sets the name of the offering.
 void setNameFromUrl(java.lang.String s, boolean isReq)
          Retrieves the offering name from the tools XML object and stores it in a member variable.
 void setNumbids(int newNumbids)           Sets the response count for the offering. Once this response count is reached, the offering may be set up to close automatically.
 void setNumBidsFromUrl(java.lang.String s, boolean isReq)
          Retrieves the offering's response count from the tools XML object and stores it in a member variable.
 void setNumResponses(java.lang.Integer numResponses)
          Sets the numResponses
 void setOfferAttrListFromUrl(java.lang.String s, boolean isReq)
          Retrieves the list of attributes for the offeringfrom the tools XML object and stores it in a member variable.
 void setOfferIdFromUrl(java.lang.String s, boolean isReq)
          Retrieves the offering identifier from the tools XML object and stores it in a member variable.
 void setOfferingid(java.lang.Long newOfferingid)
          Sets the ID of the offering.
 void setOwnerid(java.lang.Long newOwnerid)
          Sets the member ID of the offering owner.
 void setOwnerIdFromUrl(java.lang.String s, boolean isReq)
          Retrieves the member identifier of the offering owner from the tools XML object and stores it in a member variable.
 void setParticipantList(java.util.Vector newParticipantList)
          Sets the participant list for the offering.
 void setParticipantListFromUrl(java.lang.String s, boolean isReq)
          Retrieves the list of participants from the tools XML object and stores it in a member variable.
 void setProdattrList(java.util.Vector newProdattrList)
          Sets the product attributes list for the offering.
 void setProdAttrListFromUrl(java.lang.String s, boolean isReq)
          Retrieves the list of product attributes from the tools XML object and stores it in a member variable.
 void setProdComments(java.util.Vector newProdComments)
          Sets the product comments list for the offering.
 void setProdCommentsFromUrl(java.lang.String s, boolean isReq)
          Retrieves the list of product comments from the tools XML object and stores it in a member variable.
 void setProdList(java.util.Vector newProdList)
          Sets the product list for the offering.
 void setProdListFromUrl(java.lang.String s, boolean isReq)
          Retrieves the list of products from the tools XML object and stores it in a member variable.
 void setRequestProperties( TypedProperty paramTable)
          Extracts the Hashtable of name-value pairs that have been sent up from the Tools UI and saves the hashtable in a private member(toolXMLObject)
 void setRuleType(java.lang.Integer ruleType)
          Sets the ruleType
 void setShortdesc(java.lang.String newShortdesc)
          Sets the offering short description.
 void setShortDescFromUrl(java.lang.String s, boolean isReq)
          Retrieves the short description from the tools XML object and stores it in a member variable.
 void setStartdate(java.lang.String newStartdate)
          Sets the offering start date.
 void setStartDateFromUrl(java.lang.String s, boolean isReq)
          Retrieves the offering start date from the tools XML object and stores it in a member variable.
 void setStarttime(java.lang.String newStarttime)
          Sets the offering start time.
 void setStartTimeFromUrl(java.lang.String s, boolean isReq)
          Retrieves the offering start time from the tools XML object and stores it in a member variable.
 void setStarttimestamp(java.sql.Timestamp newStarttimestamp)
          Sets the timestamp representing the start date and time of the offering.
 void setState(java.lang.Integer newState)
          Sets the state of the offering.
 void setStatemachine(java.lang.Long newStatemachine)
          Sets the identifier of the state machine for the offering.
 void setStateMachineFromUrl(java.lang.String s, boolean isReq)
          Retrieves the state machine identifier from the tools XML object and stores it in a member variable.
 void setTcList(java.util.Vector newTcList)
          Sets the list of TCs the offering.
 void setTcListFromUrl(java.lang.String s, boolean isReq)
          Retrieves the list of TCs from the tools XML object and stores it in a member variable.
 void setToolXMLObject(java.util.Hashtable newToolXMLObject)
          Sets the XML Object composed by the tools framework.
 void setTradingengine(java.lang.Long newTradingengine)
          Sets the identifier of the trading engine the manages the offering.
 void setTradingEngineFromUrl(java.lang.String s, boolean isReq)
          Retrieves the trading engine identifier from the tools XML object and stores it in a member variable.
 void setVersionid(java.lang.Integer newVersionid)
          Sets the version number of the offering.
 
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, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, 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, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 

Field Detail

domain

public java.lang.String domain
Domain.

starttime

public java.lang.String starttime
Start Time.

endtime

public java.lang.String endtime
End Time.

longdesc

public java.lang.String longdesc
Long Description.

shortdesc

public java.lang.String shortdesc
Short Description.

startdate

public java.lang.String startdate
Start Date.

enddate

public java.lang.String enddate
End Date.

starttimestamp

public java.sql.Timestamp starttimestamp
Start Timestamp.

endtimestamp

public java.sql.Timestamp endtimestamp
End Timestamp.

numbids

public int numbids
Number of Bids.

closingrule

public int closingrule
Closing Rule.

tradingengine

public java.lang.Long tradingengine
Trading Engine.

ownerid

public java.lang.Long ownerid
Owner Id.

statemachine

public java.lang.Long statemachine
State Machine.

name

public java.lang.String name
Name.

documentdesc

public java.lang.String documentdesc
Document Description.

documentURL

public java.lang.String documentURL
Document URL.

mimetype

public java.lang.String mimetype
Document Mime Type.

mimeencoding

public java.lang.String mimeencoding
Document Mime Coding.

offeringid

public java.lang.Long offeringid
Offering Id.

TcElements

public java.util.Vector TcElements
Term and Condition Elements.

versionid

public java.lang.Integer versionid
Version ID.

prodattrList

public java.util.Vector prodattrList
Product Attribute List.

prodList

public java.util.Vector prodList
Product List.

ruleType

public java.lang.Integer ruleType
Rule Type.

numResponses

public java.lang.Integer numResponses
Number of Responses.

accessType

public java.lang.Integer accessType
Access Type.

endresult

public int endresult
End Result.

participantList

public java.util.Vector participantList
Participant List.

state

public java.lang.Integer state
State.

prodComments

public java.util.Vector prodComments
Product Comments.

tcList

public java.util.Vector tcList
Term and Condition List.

accountid

public java.lang.Long accountid
Account Id.
Constructor Detail

OfferingBaseCmdImpl

public OfferingBaseCmdImpl()
Method Detail

reset

public void reset()
Reset the command.
Overrides:
reset in class AbstractECTargetableCommand

getAccountid

public java.lang.Long getAccountid()
Retrieves the account Id.
Returns:
The account Id.

getClosingrule

public int getClosingrule()
Returns the closing rule.
Returns:
The closing rule number.

getDocumentdesc

public java.lang.String getDocumentdesc()
Returns the document description.
Returns:
The document description.

getDocumentURL

public java.lang.String getDocumentURL()
Returns the URL for the attachment.
Returns:
The attachment URL.

getDomain

public java.lang.String getDomain()
Returns the domain of trade.
Returns:
The trading domain.

getEnddate

public java.lang.String getEnddate()
Returns the ending date for the offering.
Returns:
The offering end date.

getEndresult

public int getEndresult()
Returns an integer value that indicates the offering's end result: 0 - Contract, 1 - Order ,...
Returns:
The end result for the offering.

getEndtime

public java.lang.String getEndtime()
Returns the ending time for the offering.
Returns:
The offering end time.

getEndtimestamp

public java.sql.Timestamp getEndtimestamp()
Returns the offering's end date and time as a java timestamp.
Returns:
The offering's end date and time.

getErrorContent

public java.util.Hashtable getErrorContent()
Returns the hashtable containing error codes and parameters.
Returns:
The hashtable of error codes.

getErrorFlag

public boolean getErrorFlag()
Returns the value of the error flag.
Returns:
true if error has occured, false otherwise

getLongdesc

public java.lang.String getLongdesc()
Returns the long description for the offering.
Returns:
The offering's long description.

getMimeencoding

public java.lang.String getMimeencoding()
Returns the mime encoding for the offering attachment.
Returns:
The mime encoding for the offering attachment.

getMimetype

public java.lang.String getMimetype()
Returns the mime type for the offering attachment.
Returns:
The offering attachment's mime type.

getName

public java.lang.String getName()
Returns the name of the offering.
Returns:
The offering name.

getNumbids

public int getNumbids()
Returns the number of responses needed for offering to close automatically. An offering could be set up to close automatically after a certain number of responses have been received.
Returns:
The offering response count, which once reached could trigger automatic close of the offering.

getOfferingid

public java.lang.Long getOfferingid()
Returns the identifier for the Offering.
Returns:
The Offering ID.

getOwnerid

public java.lang.Long getOwnerid()
Returns the member identifier for the owner of the offering.
Returns:
The offering owner's member ID.

getParticipantList

public java.util.Vector getParticipantList()
Returns the list of participants for the offering.
Returns:
The participant list.

getProdattrList

public java.util.Vector getProdattrList()
Returns the list of product attributes for the offering.
Returns:
The product attribute list.

getProdComments

public java.util.Vector getProdComments()
Returns the lisr of product comments for the offering.
Returns:
The list of product comments.

getProdList

public java.util.Vector getProdList()
Returns the list of products for the offering.
Returns:
The offering's product list.

getShortdesc

public java.lang.String getShortdesc()
Returns the short description for the offering.
Returns:
The offering's short description.

getStartdate

public java.lang.String getStartdate()
Returns the start date for the offering.
Returns:
The offering start date.

getStarttime

public java.lang.String getStarttime()
Returns the start time for the offering.
Returns:
The offering start time.

getStarttimestamp

public java.sql.Timestamp getStarttimestamp()
Returns the start date and time for the offering as a java timestamp.
Returns:
The offering start date and time.

getState

public java.lang.Integer getState()
Returns the integer value for the Offering's state.
Returns:
The offering's state.

getStatemachine

public java.lang.Long getStatemachine()
Returns the state machine for the offering.
Returns:
The offering's state machine.

getTcList

public java.util.Vector getTcList()
Returns the list of TCs for the offering.
Returns:
The TC list for the offering.

getToolXMLObject

public java.util.Hashtable getToolXMLObject()
Returns the hastable which represents tools framework's XML object.
Returns:
The tool framework's XML object.

getTradingengine

public java.lang.Long getTradingengine()
Returns the identifier of the trading engine that manages the offering.
Returns:
The trading engine identifier.

getVersionid

public java.lang.Integer getVersionid()
Returns the version number of the offering.
Returns:
The offering version.

setAccountid

public void setAccountid(java.lang.Long newAccountid)
Stores the incoming account ID.
Parameters:
newAccountid - The account Id.

setAccountIdFromUrl

public void setAccountIdFromUrl(java.lang.String s,
                                boolean isReq)
Retrieves the account identifier from the tools XML object and stores it in a member variable.
Specified by:
setAccountIdFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setClosingrule

public void setClosingrule(int newClosingrule)
Sets the closing rule for the offering.
Parameters:
newClosingrule - The closing rule for the offering.

setClosingRuleFromUrl

public void setClosingRuleFromUrl(java.lang.String s,
                                  boolean isReq)
Retrieves the closing rule identifier from the tools XML object and stores it in a member variable.
Specified by:
setClosingRuleFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setDocumentdesc

public void setDocumentdesc(java.lang.String newDocumentdesc)
Sets the attachment description.
Parameters:
newDocumentdesc - The attachment description.

setDocumentDescriptionFromUrl

public void setDocumentDescriptionFromUrl(java.lang.String s,
                                          boolean isReq)
Retrieves the attachment description from the tools XML object and stores it in a member variable.
Specified by:
setDocumentDescriptionFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setDocumentURL

public void setDocumentURL(java.lang.String newDocumentURL)
Sets the attachment URL.
Parameters:
newDocumentURL - The attachment URL.

setDocumentURLFromUrl

public void setDocumentURLFromUrl(java.lang.String s,
                                  boolean isReq)
Retrieves the attachment URL from the tools XML object and stores it in a member variable.
Specified by:
setDocumentURLFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setDomain

public void setDomain(java.lang.String newDomain)
Sets the trading domain.
Parameters:
newDomain - The trading domain identifier.

setDomainFromUrl

public void setDomainFromUrl(java.lang.String s,
                             boolean isReq)
Retrieves the trading domain from the tools XML object and stores it in a member variable.
Specified by:
setDomainFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setEnddate

public void setEnddate(java.lang.String newEnddate)
Sets the offering end date.
Parameters:
newEnddate - The end date of the offering.

setEndDateFromUrl

public void setEndDateFromUrl(java.lang.String s,
                              boolean isReq)
Retrieves the offering end date from the tools XML object and stores it in a member variable.
Specified by:
setEndDateFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setEndresult

public void setEndresult(int newEndresult)
Sets the end result of the offering.
Parameters:
newEndresult - The offering end result.

setEndResultFromUrl

public void setEndResultFromUrl(java.lang.String s,
                                boolean isReq)
Retrieves the offering end result from the tools XML object and stores it in a member variable.
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setEndtime

public void setEndtime(java.lang.String newEndtime)
Sets the end time of the offering.

setEndTimeFromUrl

public void setEndTimeFromUrl(java.lang.String s,
                              boolean isReq)
Retrieves the offering end time from the tools XML object and stores it in a member variable.
Specified by:
setEndTimeFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setEndtimestamp

public void setEndtimestamp(java.sql.Timestamp newEndtimestamp)
Sets the end date and time of the offering in a java timestamp.
Parameters:
newEndtimestamp - The offering end date and time.

setErrorContent

public void setErrorContent(java.util.Hashtable newErrorContent)
Sets the hashtable containing error codes.

setErrorFlag

public void setErrorFlag(boolean newErrorFlag)
Sets the error flag.

setLongdesc

public void setLongdesc(java.lang.String newLongdesc)
Sets the long description of the offering.
Parameters:
newLongdesc - The long description.

setLongDescFromUrl

public void setLongDescFromUrl(java.lang.String s,
                               boolean isReq)
Retrieves the long description from the tools XML object and stores it in a member variable.
Specified by:
setLongDescFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setMarketFromUrl

public void setMarketFromUrl(java.lang.String s,
                             boolean isReq)
Retrieves the market/store identifier from the tools XML object and stores it in a member variable.
Specified by:
setMarketFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setMimeencoding

public void setMimeencoding(java.lang.String newMimeencoding)
Sets the mime encoding of the offering attachment.
Parameters:
newMimeencoding - The attachment mime encoding.

setMimetype

public void setMimetype(java.lang.String newMimetype)
Sets the mime type of the offering attachment.
Parameters:
newMimetype - The attachment mime type.

setMimeTypeEncodingFromUrl

public void setMimeTypeEncodingFromUrl(java.lang.String s,
                                       boolean isReq)
Retrieves the mime type encoding of the attachment from the tools XML object and stores it in a member variable.
Specified by:
setMimeTypeEncodingFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setMimeTypeFromUrl

public void setMimeTypeFromUrl(java.lang.String s,
                               boolean isReq)
Retrieves the mime type of the attachment from the tools XML object and stores it in a member variable.
Specified by:
setMimeTypeFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setName

public void setName(java.lang.String newName)
Sets the name of the offering.
Parameters:
newName - The offering name.

setNameFromUrl

public void setNameFromUrl(java.lang.String s,
                           boolean isReq)
Retrieves the offering name from the tools XML object and stores it in a member variable.
Specified by:
setNameFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setNumbids

public void setNumbids(int newNumbids)
Sets the response count for the offering. Once this response count is reached, the offering may be set up to close automatically.
Parameters:
newNumbids - The response count.

setNumBidsFromUrl

public void setNumBidsFromUrl(java.lang.String s,
                              boolean isReq)
Retrieves the offering's response count from the tools XML object and stores it in a member variable.
Specified by:
setNumBidsFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setOfferAttrListFromUrl

public void setOfferAttrListFromUrl(java.lang.String s,
                                    boolean isReq)
Retrieves the list of attributes for the offeringfrom the tools XML object and stores it in a member variable.
Specified by:
setOfferAttrListFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setOfferIdFromUrl

public void setOfferIdFromUrl(java.lang.String s,
                              boolean isReq)
Retrieves the offering identifier from the tools XML object and stores it in a member variable.
Specified by:
setOfferIdFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setOfferingid

public void setOfferingid(java.lang.Long newOfferingid)
Sets the ID of the offering.
Parameters:
newOfferingid - The offering ID.

setOwnerid

public void setOwnerid(java.lang.Long newOwnerid)
Sets the member ID of the offering owner.
Parameters:
newOwnerid - The offering owner's member ID.

setOwnerIdFromUrl

public void setOwnerIdFromUrl(java.lang.String s,
                              boolean isReq)
Retrieves the member identifier of the offering owner from the tools XML object and stores it in a member variable.
Specified by:
setOwnerIdFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setParticipantList

public void setParticipantList(java.util.Vector newParticipantList)
Sets the participant list for the offering.
Parameters:
newParticipantList - The pariticipant list for the offering.

setParticipantListFromUrl

public void setParticipantListFromUrl(java.lang.String s,
                                      boolean isReq)
Retrieves the list of participants from the tools XML object and stores it in a member variable.
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setProdattrList

public void setProdattrList(java.util.Vector newProdattrList)
Sets the product attributes list for the offering.
Parameters:
newProdattrList - The product attributes for the offering.

setProdAttrListFromUrl

public void setProdAttrListFromUrl(java.lang.String s,
                                   boolean isReq)
Retrieves the list of product attributes from the tools XML object and stores it in a member variable.
Specified by:
setProdAttrListFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setProdComments

public void setProdComments(java.util.Vector newProdComments)
Sets the product comments list for the offering.
Parameters:
newProdComments - The product comments for the offering.

setProdCommentsFromUrl

public void setProdCommentsFromUrl(java.lang.String s,
                                   boolean isReq)
Retrieves the list of product comments from the tools XML object and stores it in a member variable.
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setProdList

public void setProdList(java.util.Vector newProdList)
Sets the product list for the offering.
Parameters:
newProdList - The product list for the offering.

setProdListFromUrl

public void setProdListFromUrl(java.lang.String s,
                               boolean isReq)
Retrieves the list of products from the tools XML object and stores it in a member variable.
Specified by:
setProdListFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setRequestProperties

public void setRequestProperties(TypedProperty paramTable)
                          throws ECApplicationException
Extracts the Hashtable of name-value pairs that have been sent up from the Tools UI and saves the hashtable in a private member(toolXMLObject)
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ToolsControllerCommandImpl
Parameters:
paramTable - TypedProperty of request parameters
Throws:
ECApplicationException
See Also:
ControllerCmd#setRequestProperties(TypedProperty)

setShortdesc

public void setShortdesc(java.lang.String newShortdesc)
Sets the offering short description.
Parameters:
newShortdesc - The offering short description.

setShortDescFromUrl

public void setShortDescFromUrl(java.lang.String s,
                                boolean isReq)
Retrieves the short description from the tools XML object and stores it in a member variable.
Specified by:
setShortDescFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setStartdate

public void setStartdate(java.lang.String newStartdate)
Sets the offering start date.
Parameters:
newStartdate - The offering start date.

setStartDateFromUrl

public void setStartDateFromUrl(java.lang.String s,
                                boolean isReq)
Retrieves the offering start date from the tools XML object and stores it in a member variable.
Specified by:
setStartDateFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setStarttime

public void setStarttime(java.lang.String newStarttime)
Sets the offering start time.
Parameters:
newStarttime - The offering start time.

setStartTimeFromUrl

public void setStartTimeFromUrl(java.lang.String s,
                                boolean isReq)
Retrieves the offering start time from the tools XML object and stores it in a member variable.
Specified by:
setStartTimeFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setStarttimestamp

public void setStarttimestamp(java.sql.Timestamp newStarttimestamp)
Sets the timestamp representing the start date and time of the offering.
Parameters:
newStarttimestamp - The offering start date and time.

setState

public void setState(java.lang.Integer newState)
Sets the state of the offering.
Parameters:
newState - The offering state.

setStatemachine

public void setStatemachine(java.lang.Long newStatemachine)
Sets the identifier of the state machine for the offering.
Parameters:
newStatemachine - The state machine identifier.

setStateMachineFromUrl

public void setStateMachineFromUrl(java.lang.String s,
                                   boolean isReq)
Retrieves the state machine identifier from the tools XML object and stores it in a member variable.
Specified by:
setStateMachineFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setTcList

public void setTcList(java.util.Vector newTcList)
Sets the list of TCs the offering.

setTcListFromUrl

public void setTcListFromUrl(java.lang.String s,
                             boolean isReq)
Retrieves the list of TCs from the tools XML object and stores it in a member variable.
Specified by:
setTcListFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setToolXMLObject

public void setToolXMLObject(java.util.Hashtable newToolXMLObject)
Sets the XML Object composed by the tools framework.
Parameters:
newToolXMLObject - The tools framework's XML object.

setTradingengine

public void setTradingengine(java.lang.Long newTradingengine)
Sets the identifier of the trading engine the manages the offering.
Parameters:
newTradingengine - The trading engine identifier.

setTradingEngineFromUrl

public void setTradingEngineFromUrl(java.lang.String s,
                                    boolean isReq)
Retrieves the trading engine identifier from the tools XML object and stores it in a member variable.
Specified by:
setTradingEngineFromUrl in interface OfferingBaseCmd
Parameters:
s - The parameter name to look for in the tools XML object.
isReq - true if it is a mandatory parameter, false otherwise.

setVersionid

public void setVersionid(java.lang.Integer newVersionid)
Sets the version number of the offering.
Parameters:
newVersionid - The offering version.

getRuleType

public java.lang.Integer getRuleType()
Gets the ruleType
Returns:
Returns a java.lang.Integer

setRuleType

public void setRuleType(java.lang.Integer ruleType)
Sets the ruleType
Parameters:
ruleType - The ruleType to set

getNumResponses

public java.lang.Integer getNumResponses()
Gets the numResponses
Returns:
Returns a java.lang.Integer

setNumResponses

public void setNumResponses(java.lang.Integer numResponses)
Sets the numResponses
Parameters:
numResponses - The numResponses to set

getAccessType

public java.lang.Integer getAccessType()
Gets the accessType
Returns:
Returns a java.lang.Integer

setAccessType

public void setAccessType(java.lang.Integer accessType)
Sets the accessType
Parameters:
accessType - The accessType to set