com.ibm.commerce.utf.commands
Class OfferingBaseCmdImpl

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, Protectable, ToolsControllerCommand, UTFConstants
Direct Known Subclasses:
RFQCreateCmdImpl, RFQModifyCmdImpl

public class OfferingBaseCmdImpl
extends ToolsControllerCommandImpl
implements OfferingBaseCmd, UTFConstants

The base implementation class for Offerings.


Field Summary
 java.lang.Long accountid
           
 int closingrule
           
 java.lang.String documentdesc
           
 java.lang.String documentURL
           
 java.lang.String domain
           
 java.lang.String enddate
           
 int endresult
           
 java.lang.String endtime
           
 java.sql.Timestamp endtimestamp
           
 java.lang.String longdesc
           
 java.lang.String mimeencoding
           
 java.lang.String mimetype
           
 java.lang.String name
           
 int numbids
           
 java.lang.Long offeringid
           
 java.lang.Long ownerid
           
 java.util.Vector participantList
           
 java.util.Vector prodattrList
           
 java.util.Vector prodComments
           
 java.util.Vector prodList
           
 java.lang.String shortdesc
           
 java.lang.String startdate
           
 java.lang.String starttime
           
 java.sql.Timestamp starttimestamp
           
 java.lang.Integer state
           
 java.lang.Long statemachine
           
 java.util.Vector TcElements
           
 java.util.Vector tcList
           
 java.lang.Long tradingengine
           
 java.lang.Integer versionid
           
 
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.utf.utils.UTFConstants
CONTENT_SECTION, EC_ACCOUNT_ID, EC_ADDRESS_ID, EC_ALGO_ALLOCATION, EC_ALGO_CLASS, EC_ALGO_DESC, EC_ALGO_EXP_DATE, EC_ALGO_EXP_TIME, EC_ALGO_ID, EC_ALGO_MATCHING, EC_ALGO_NAME, EC_ALGO_PRICING, EC_ALGO_TYPE, EC_APPROVED_STRING, EC_ATTR_ATTRGROUP, EC_ATTR_ATTRID, EC_ATTR_ATTRTYPE, EC_ATTR_CHANGEABLE, EC_ATTR_DATE, EC_ATTR_FLOAT, EC_ATTR_ID, EC_ATTR_INTEGER, EC_ATTR_MANDATORY, EC_ATTR_NAME, EC_ATTR_OPERATOR, EC_ATTR_PATTRID, EC_ATTR_STRING, EC_ATTR_TCID, EC_ATTR_TYPE_ID, EC_ATTR_UNIT, EC_ATTR_USERDEF, EC_ATTR_VALUE, EC_ATTR_VALUEDELIM, EC_ATTRDICT_DESC, EC_ATTRDICT_NAME, EC_ATTRTYPE_BIGINT, EC_ATTRTYPE_BIGINT_AB, EC_ATTRTYPE_DATE_AB, EC_ATTRTYPE_DATETIME, EC_ATTRTYPE_FLOAT, EC_ATTRTYPE_FLOAT_AB, EC_ATTRTYPE_FREEFORM, EC_ATTRTYPE_FREEFORM_AB, EC_ATTRTYPE_INTEGER, EC_ATTRTYPE_INTEGER_AB, EC_ATTRTYPE_STRING, EC_ATTRTYPE_STRING_AB, EC_AUC_VIEWTASKNAME, EC_BASE_TIME, EC_BILL_ADDRESS_ID, EC_BILLING_ADDRESS, EC_BUYABLE_ITEM, EC_BUYER_ROLE, EC_CARD_BRAND, EC_CARD_EXP_MONTH, EC_CARD_EXP_YEAR, EC_CATENTRY_ID, EC_CHARGE_TYPE, EC_DEFAULT_PRICELIST_PRECEDENCE, EC_DEFAULT_STRING, EC_FALSE_VALUE, EC_FORWARD_VIEW_CMD, EC_MARK_FOR_DELETE_AFTER_NUMBER_OF_DAYS, EC_NICKNAME, EC_NOT_BUYABLE_ITEM, EC_OFFERING_CATENTRYID, EC_OFFERING_CLOSINGRULE, EC_OFFERING_CURRENCY, EC_OFFERING_DELETEMARK, EC_OFFERING_DOCDESC, EC_OFFERING_DOCURL, EC_OFFERING_DOMAIN, EC_OFFERING_EMPTYPRODLIST, EC_OFFERING_EMPTYTCLIST, EC_OFFERING_ENDDATE, EC_OFFERING_ENDRESULT, EC_OFFERING_ENDTIME, EC_OFFERING_FIRSTVERSION, EC_OFFERING_ID, EC_OFFERING_LONGDESC, EC_OFFERING_MIMEENCODING, EC_OFFERING_MIMETYPE, EC_OFFERING_NAME, EC_OFFERING_NODELETEMARK, EC_OFFERING_NUMBIDS, EC_OFFERING_PRICE, EC_OFFERING_PRODATTRLIST, EC_OFFERING_PRODCOMMENTS, EC_OFFERING_PRODLIST, EC_OFFERING_QTYUNIT, EC_OFFERING_QUANTITY, EC_OFFERING_SHORTDESC, EC_OFFERING_STARTDATE, EC_OFFERING_STARTTIME, EC_OFFERING_STATEMACHINE, EC_OFFERING_TCLIST, EC_OFFERING_TITLE, EC_OFFERING_TRADINGENGINE, EC_OPERATOR_ENUMERATION, EC_OPERATOR_EQUAL, EC_OPERATOR_EXCLUSIVE_RANGE, EC_OPERATOR_GREATER_THAN, EC_OPERATOR_GREATER_THAN_AND_EQUAL, EC_OPERATOR_INCLUSIVE_RANGE, EC_OPERATOR_LESS_THAN, EC_OPERATOR_LESS_THAN_AND_EQUAL, EC_OPERATOR_NOT, EC_ORG_BEAN, EC_PARTICIPANT_ID, EC_PARTICIPANT_ROLE, EC_PAYMENT_METHOD, EC_PAYMENT_TC_ID, EC_PO_NUMBER, EC_POLICY_ID, EC_POLICY_TYPE, EC_PRODUCT_NAME, EC_PRODUCT_SHORTDESC, EC_REDIRECT_VIEW_CMD, EC_RESPONSE_ID, EC_RETURN_APPROVAL_POLICY, EC_RETURN_APPROVAL_POLICY_TYPE, EC_RETURN_CHARGE, EC_RETURN_CHARGE_LIST, EC_RETURN_CHARGE_POLICY, EC_RETURN_CHARGE_POLICY_TYPE, EC_RETURN_PAYMENT, EC_RETURN_PAYMENT_LIST, EC_RETURN_PAYMENT_POLICY, EC_RFQ_CLOSE_MESSAGE_ID, EC_RFQ_CLOSEVIEW_CMD, EC_RFQ_COMPLETE_MESSAGE_ID, EC_RFQ_COMPLETEVIEW_CMD, EC_RFQ_NOTIFICATION_MONITOR_JOB_REF_NUM, EC_RFQ_RESPONSE_ID, EC_RFQ_RFQID, EC_RFQ_STRING, EC_RFQ_SUBMIT_MESSAGE_ID, EC_RFQ_SUBMITVIEW_CMD, EC_SELLER_ROLE, EC_SHIP_ADDRESS, EC_SHIP_MODE, EC_SHIP_MODE_ID, EC_SHIPPING_ADDRESS, EC_SHIPPING_CHARGE, EC_SHIPPING_CHARGE_LIST, EC_SHIPPING_MODE, EC_STORE_ID, EC_TA_ACTIVE, EC_TA_INACTIVE, EC_TC_BEGIN_TAG, EC_TC_CUSTOM_PRICELIST, EC_TC_CUSTOM_PRICELIST_TYPE, EC_TC_END_TAG, EC_TC_HEADER, EC_TC_OFFER, EC_TC_OFFERPRICE, EC_TC_PURCHASELIMITS_BY_QUANTITY, EC_TOOL_CANCELRFQ_VIEWCMD, EC_TOOL_CLOSERFQ_VIEWCMD, EC_TOOL_DIALOG_NAV_VIEW_CMD, EC_TOOL_NOTEBOOK_NAV_VIEW_CM, EC_TOOL_NOTEBOOK_NAV_VIEW_CMD, EC_TOOL_SUBMITRFQ_VIEWCMD, EC_TOOL_WIZARD_NAV_VIEW_CMD, EC_TRADENG_ALGO, EC_TRADENG_DOMAIN, EC_TRADENG_ENDDATE, EC_TRADENG_ENDTIME, EC_TRADENG_HANDLER, EC_TRADENG_ID, EC_TRADENG_LONGDESC, EC_TRADENG_NAME, EC_TRADENG_NUMSTAGES, EC_TRADENG_SHORTDESC, EC_TRADENG_STAGE, EC_TRADENG_STAGEINFO, EC_TRADENG_STARTDATE, EC_TRADENG_STARTTIME, EC_TRADENG_STATEMACHINE, EC_TRADENG_SUBDOMAIN, EC_TRADENG_TRADENTLIMIT, EC_TRUE_VALUE, EC_USER_BEAN, EC_UTF_ACKPAGE, EC_UTF_ACTION_CREATE, EC_UTF_ACTION_DELETE, EC_UTF_ACTION_UPDATE, EC_UTF_CHANGEABLE, EC_UTF_DOMAIN, EC_UTF_ENCRYPTION_FLAG, EC_UTF_ENDRESULT_CONTRACT, EC_UTF_ENDRESULT_ORDER, EC_UTF_ERROR_CODE, EC_UTF_ERRORPAGE, EC_UTF_LANGUAGE_ID, EC_UTF_MANDATORY, EC_UTF_NON_CHANGEABLE, EC_UTF_OPTIONAL, EC_UTF_OWNER_ID, EC_UTF_PERSONALIZED, EC_UTF_SEQUENCE, EC_UTF_STANDARD, EC_UTF_VISIBILITY, EC_VALUETYPE_ENUMERATION, EC_VALUETYPE_EXCLUSIVE_RANGE, EC_VALUETYPE_INCLUSIVE_RANGE, EC_VALUETYPE_SINGLEVALUE, MSG_SECTION, ParticipantRoles, SUBJECT_SECTION
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
OfferingBaseCmdImpl()
           
 
Method Summary
 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.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.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 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 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 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
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
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.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

accountid

public java.lang.Long accountid

closingrule

public int closingrule

documentdesc

public java.lang.String documentdesc

documentURL

public java.lang.String documentURL

domain

public java.lang.String domain

enddate

public java.lang.String enddate

endresult

public int endresult

endtime

public java.lang.String endtime

endtimestamp

public java.sql.Timestamp endtimestamp

longdesc

public java.lang.String longdesc

mimeencoding

public java.lang.String mimeencoding

mimetype

public java.lang.String mimetype

name

public java.lang.String name

numbids

public int numbids

offeringid

public java.lang.Long offeringid

ownerid

public java.lang.Long ownerid

participantList

public java.util.Vector participantList

prodattrList

public java.util.Vector prodattrList

prodComments

public java.util.Vector prodComments

prodList

public java.util.Vector prodList

shortdesc

public java.lang.String shortdesc

startdate

public java.lang.String startdate

starttime

public java.lang.String starttime

starttimestamp

public java.sql.Timestamp starttimestamp

state

public java.lang.Integer state

statemachine

public java.lang.Long statemachine

TcElements

public java.util.Vector TcElements

tcList

public java.util.Vector tcList

tradingengine

public java.lang.Long tradingengine

versionid

public java.lang.Integer versionid
Constructor Detail

OfferingBaseCmdImpl

public OfferingBaseCmdImpl()
Method Detail

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.
Parameters:
newLongdesc - The offering end time.

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.
Parameters:
newLongdesc - The hash table containing error codes.

setErrorFlag

public void setErrorFlag(boolean newErrorFlag)
Sets the error flag.
Parameters:
newLongdesc - 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 -  

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.
Parameters:
newTradingengine - The list of TCs.

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.