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.AuctionBaseCmdImpl
Base commnd for an auction creation and modification.
Field Summary | |
---|---|
protected
java.lang.String |
bidRule The bid rule for the auction. |
static java.lang.String |
COPYRIGHT Copyright statement. |
protected
java.lang.String |
currency The currency string for the auction. |
protected
java.math.BigDecimal |
currentAskPrice The current asking price. |
protected
java.lang.String |
currentAvailableQuantity The quantity currently available. |
protected
java.lang.String |
dayDuration The duration of the auction in days. |
protected
java.lang.String |
deposit The deposit amount required for the auction. |
protected
java.lang.String |
description The short description of the auction. |
protected
java.sql.Timestamp |
durationTimeStamp The the timestamp that represents the auction's duration |
protected
java.lang.String |
endDate The ending date for the auction. |
protected
java.lang.String |
endTime The ending time for the auction. |
protected
java.sql.Timestamp |
endTimeStamp The the timestamp that represents the auction's end time. |
protected
java.lang.Integer |
languageId The language ID. |
protected
java.lang.String |
longDescription The long description of the auction. |
protected
java.math.BigDecimal |
minBid The minimum bid for the auction. |
protected
java.lang.Long |
ownerid The auction's owner Id. |
protected
java.lang.String |
pricerule The pricing policy type that is used to determine the winner's final winning price. |
protected
java.lang.String |
productMacro The product display page. |
protected
java.lang.String |
productNumber The product number. |
protected
java.lang.String |
quantity The quantity of the product up for auction. |
protected
java.lang.String |
ruleMacro The rule display page name for the auction. |
protected
java.lang.String |
ruleType The rule type. |
protected
java.lang.String |
startDate The start date for the auction. |
protected
java.math.BigDecimal |
startPrice The Dutch auction's open price. |
protected
java.lang.String |
startTime The timestamp that represents the auction's start time. |
protected
java.sql.Timestamp |
startTimeStamp The the timestamp that represents the auction's start time. |
protected
java.lang.String |
status The status of the auction. |
protected
java.lang.String |
timeDuration The auction's time duration in format of 00:00:00 (hour:min:sec). |
protected
java.lang.String |
type The auction type |
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. AuctionBaseCmd |
defaultCommandClassName |
Fields inherited from interface com.ibm.commerce.tools.command. ToolsControllerCommand |
NAME |
Constructor Summary | |
---|---|
AuctionBaseCmdImpl() AuctionBaseCmdImpl default constructor. |
Method Summary | |
---|---|
protected
static java.sql.Timestamp |
addTimestamp(java.sql.Timestamp t1, java.sql.Timestamp t2) Utility method to add two timestamps |
protected
int |
checkBidRule() Validates the bid rule for this auction. |
protected
int |
compareTimestamp(java.sql.Timestamp t1,
java.sql.Timestamp t2) Utility method to compare two timestamps at the seconds level, not milliseconds level. |
protected
java.sql.Timestamp |
dayChangeInTimestamp(java.sql.Timestamp t1,
int dayChanged) Returns the timestamp that is original timestamp with increment by a number of days. |
java.lang.Long |
getAuctionReferenceNumber() Gets auction reference number. |
protected
java.sql.Timestamp |
getBaseTimeStamp() Gets base time stamp which is "1900-01-01 00:00:00" |
java.lang.String |
getBidRule() Gets Bid rule id. |
java.lang.String |
getCurrency() Gets the currency string for the auction. |
java.math.BigDecimal |
getCurrentAskPrice() Gets current Dutch auction price. |
java.lang.String |
getCurrentAvailableQuantity() Gets current available quantity for the auction. |
protected
java.sql.Timestamp |
getCurrentTimeStamp() Gets current time stamp. |
java.lang.String |
getDayDuration() Gets the days for the duration. |
java.lang.String |
getDeposit() Gets the desposit amount required by the auction. |
protected
java.sql.Timestamp |
getDurationTimeStamp() Gets the timestamp that represents the duration. |
java.lang.String |
getEndDate() Gets auction's end date. |
java.lang.String |
getEndTime() Gets auction's end time. |
protected
java.sql.Timestamp |
getEndTimeStamp() Gets the timestamp that represents the end date and time. |
java.util.Hashtable |
getErrorContent() Gets error content. |
boolean |
getErrorFlag() Gets error flag. |
protected
ECException |
getException() Gets the exception |
java.lang.Integer |
getFulfillmentCenterId() Gets fulfillment Center Id. |
protected
java.lang.Integer |
getFulfillmentCenterId(java.lang.Long catId,
java.lang.Double quantity) Retrieves the fulfillment center Id based on the catalog entry id and requested quantity. |
java.lang.Integer |
getLanguageId() Gets language ID. |
java.lang.String |
getLongDescription() Gets auction's long description. |
protected
java.lang.String |
getMerchantCurrency(java.lang.Integer anMerchantNum) Gets the currency string for the given store. |
java.math.BigDecimal |
getMinBid() Gets reserve price for the auction. |
java.lang.Long |
getOwnerId() Gets auction's owner Id. |
java.lang.String |
getPrice() Gets pricing policy type that is used to determine the winner's final winning price. |
java.lang.String |
getProductMacro() Gets product display page name for auction. |
java.lang.String |
getProductNumber() Gets the ID for the product that is being put on auction. |
java.lang.String |
getQuantity() Gets quantity of the product being put on auction. |
java.lang.Long |
getReservationId() Gets the product reservation Id for the auction. |
TypedProperty |
getResponseProperties() Gets response properties. |
java.lang.String |
getRuleMacro() Gets rule display page name for the auction. |
java.lang.String |
getRuleType() Get Auction closing type. |
java.lang.String |
getShortDescription() Gets short description for the auction. |
java.lang.String |
getStartDate() Gets auction's start date. |
java.math.BigDecimal |
getStartPrice() Gets Dutch auction's open price. |
java.lang.String |
getStartTime() Gets auction start time. |
protected
java.sql.Timestamp |
getStartTimeStamp() Gets the timestamp that represents the auction's start time. |
protected
java.lang.String |
getStatus() Gets Auction status |
java.lang.String |
getTimeDuration() Gets auction's time duration in format of 00:00:00 (hour:min:sec) |
java.util.Hashtable |
getToolXMLObject() Gets Tools framework XML object. |
java.lang.String |
getType() Auction type |
protected
java.sql.Timestamp |
getUpdatedEndTimestamp() Calculates what is the ending time based on auction closing rule type. |
java.lang.String |
getViewTaskName() Gets the auction view task name |
java.lang.String |
getWizardNavagationFile() Gets tools frame wizard navigation file. |
protected
boolean |
isBidRuleExist() Check the given bid rule existence for the auction. |
boolean |
isErrorFlag() Check to see if any error ocurred. |
protected
boolean |
isPageExist(java.lang.String pagename) Check if a page exists on the file system. |
boolean |
isReadyToCallExecute() isReadyToCallExecute method comment. |
protected
boolean |
isValidCurrencyValueForAuction(java.lang.String currency) Determines if the incoming currency is valid for the auction. |
void |
performExecute() performExecute |
void |
reset() reset method comment. |
void |
setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber) Set Auction Reference Number |
void |
setAuctionReferenceNumberUrlName(java.lang.String name,
boolean isReq) Set Auction Reference Number (aka Auction Id) |
void |
setBidRuleUrlName(java.lang.String name, boolean isReq) Get bid rule id from Tools Framework's XML Object, and set it for the command. |
void |
setCurrency(java.lang.String newCurrency) set auction's currency string. |
void |
setCurrencyUrlName(java.lang.String urlName,
boolean isReq) Get the currency string from Tools Framework's XML Object, and set it for the command. |
void |
setCurrentAskPriceUrlName(java.lang.String name,
boolean isReq) Get current ask price from Tools Framework's XML Object, and set it for the command. |
void |
setCurrentAvailableQuantity(java.lang.String q) Set current quantity. |
void |
setCurrentAvailableQuantityUrlName(java.lang.String name,
boolean isReq) Get current available quantity from Tools Framework's XML Object, and set it for the command. |
void |
setDayDurationUrlName(java.lang.String name,
boolean isReq) Get duration days from Tools Framework's XML Object, and set it for the command. |
void |
setDepositUrlName(java.lang.String name, boolean isReq) Get deposit amount from Tools Framework's XML Object, and set it for the command. |
protected
void |
setDurationTimeStamp(java.sql.Timestamp newDurationTimeStamp) Set duration timestamp |
void |
setEndDateUrlName(java.lang.String name, boolean isReq) Get auction's end date from Tools Framework's XML Object, and set it for the command. |
protected
void |
setEndTimeStamp(java.sql.Timestamp newEndTimeStamp) Set auction end date timestamp. |
void |
setEndTimeUrlName(java.lang.String name, boolean isReq) Get auction's end time from Tools Framework's XML Object, and set it for the command. |
void |
setErrorContent(java.util.Hashtable newErrorContent) Set error contect |
void |
setErrorFlag(boolean newErrorFlag) Set error flag. |
protected
void |
setException(
ECException exception) Sets the exception |
void |
setFulfillmentCenterIdUrlName(java.lang.String name,
boolean isReq) Get fulfillment center id from Tools Framework's XML Object, and set it for the command. |
void |
setLanguageIdUrlName(java.lang.String name, boolean isReq) Get language id from Tools Framework's XML Object, and set it for the command. |
void |
setLongDescriptionUrlName(java.lang.String urlName,
boolean isReq) Get auction's long description from Tools Framework's XML Object, and set it for the command. |
void |
setMinBidUrlName(java.lang.String name, boolean isReq) Get auction's reserve price from Tools Framework's XML Object, and set it for the command. |
void |
setOwnerId(java.lang.Long id) Sets auction owner id |
void |
setOwnerIdUrlName(java.lang.String name, boolean isReq) Get auction's owner id from Tools Framework's XML Object, and set it for the command. |
void |
setPriceUrlName(java.lang.String name, boolean isReq) Get auction's close pricing policy type(discriminative or non-discriminative) from Tools Framework's XML Object, and set it for the command. |
void |
setProductMacroUrlName(java.lang.String name,
boolean isReq) Get auction's product display page name from Tools Framework's XML Object, and set it for the command. |
void |
setProductNumberUrlName(java.lang.String name,
boolean isReq) Get auction's product (aka catalog entry) id from Tools Framework's XML Object, and set it for the command. |
void |
setQuantity(java.lang.String q) Set auction quantity |
void |
setQuantityUrlName(java.lang.String name, boolean isReq) Get auction's quantity from Tools Framework's XML Object, and set it for the command. |
void |
setRequestProperties(
TypedProperty paramTable) Set request properties. |
void |
setReservationId(java.lang.Long newReservationId) Sets reservation identifier. |
void |
setResponseProperties(
TypedProperty paramHash) Set response properties. |
void |
setRuleMacroUrlName(java.lang.String name, boolean isReq) Get auction's rule display page name from Tools Framework's XML Object, and set it for the command. |
void |
setRuleTypeUrlName(java.lang.String name, boolean isReq) Get auction's closing type (fixed time closing, etc.) from Tools Framework's XML Object, and set it for the command. |
void |
setShortDescriptionUrlName(java.lang.String name,
boolean isReq) Get auction's short description from Tools Framework's XML Object, and set it for the command. |
void |
setStartDateUrlName(java.lang.String name, boolean isReq) Get auction's start date from Tools Framework's XML Object, and set it for the command. |
void |
setStartPrice(java.math.BigDecimal newStartPrice) Sets start price for a Dutch auction. |
void |
setStartPriceUrlName(java.lang.String name, boolean isReq) Get auction's start date from Tools Framework's XML Object, and set it for the command. |
protected
void |
setStartTimeStamp(java.sql.Timestamp newStartTimeStamp) Set auction start timestamp |
void |
setStartTimeUrlName(java.lang.String name, boolean isReq) Get auction's start time from Tools Framework's XML Object, and set it for the command. |
protected
void |
setStatus(java.lang.String newStatus) set auction status |
void |
setTimeDurationUrlName(java.lang.String name,
boolean isReq) Get duration time string (in hh:mm:ss format) from Tools Framework's XML Object, and set it for the command. |
void |
setToolXMLObject(java.util.Hashtable newToolXMLObject) Set Tools framework XML object |
void |
setTypeUrlName(java.lang.String name, boolean isReq) Get auction type string from Tools Framework's XML Object, and set it for the command. |
void |
setViewTaskName(java.lang.String newViewTaskName) Set auction creation view task name. |
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,
getRetriable,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
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,
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,
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,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.String bidRule
protected java.math.BigDecimal currentAskPrice
protected java.lang.String currentAvailableQuantity
protected java.lang.String dayDuration
protected java.lang.String deposit
protected java.lang.String description
protected java.lang.String endDate
protected java.lang.String endTime
protected java.math.BigDecimal minBid
protected java.lang.String productMacro
protected java.lang.String productNumber
protected java.lang.String quantity
protected java.lang.String ruleMacro
protected java.lang.String ruleType
protected java.lang.String startDate
protected java.math.BigDecimal startPrice
protected java.lang.String timeDuration
protected java.lang.String type
protected java.lang.String startTime
protected java.sql.Timestamp startTimeStamp
protected java.sql.Timestamp endTimeStamp
protected java.sql.Timestamp durationTimeStamp
protected java.lang.String status
protected java.lang.String currency
protected java.lang.String pricerule
protected java.lang.String longDescription
protected java.lang.Long ownerid
protected java.lang.Integer languageId
Constructor Detail |
---|
public AuctionBaseCmdImpl()
Method Detail |
---|
protected static java.sql.Timestamp addTimestamp(java.sql.Timestamp t1, java.sql.Timestamp t2)
t1
- java.sql.Timestampt2
- java.sql.Timestampprotected int checkBidRule() throws ECApplicationException
ECApplicationException
- is thrown when any problem
occurs.protected int compareTimestamp(java.sql.Timestamp t1, java.sql.Timestamp t2)
t1
- java.sql.Timestampt2
- java.sql.Timestampprotected java.sql.Timestamp dayChangeInTimestamp(java.sql.Timestamp t1, int dayChanged)
t1
- java.sql.TimestampdayChanged
- intpublic java.lang.Long getAuctionReferenceNumber()
protected java.sql.Timestamp getBaseTimeStamp()
public java.lang.String getBidRule()
public java.lang.String getCurrency()
public java.math.BigDecimal getCurrentAskPrice()
public java.lang.String getCurrentAvailableQuantity()
protected java.sql.Timestamp getCurrentTimeStamp()
public java.lang.String getDayDuration()
public java.lang.String getDeposit()
protected java.sql.Timestamp getDurationTimeStamp()
public java.lang.String getEndDate()
public java.lang.String getEndTime()
protected java.sql.Timestamp getEndTimeStamp()
public java.util.Hashtable getErrorContent()
public boolean getErrorFlag()
public java.lang.Integer getFulfillmentCenterId()
protected java.lang.Integer getFulfillmentCenterId(java.lang.Long catId, java.lang.Double quantity)
catId
- is catalog Id.quantity
- is the quantity.public java.lang.Integer getLanguageId()
public java.lang.String getLongDescription()
protected java.lang.String getMerchantCurrency(java.lang.Integer anMerchantNum)
anMerchantNum
- is the store id.public java.math.BigDecimal getMinBid()
public java.lang.Long getOwnerId()
public java.lang.String getPrice()
D for discriminative, ND for non-discriminative.
public java.lang.String getProductMacro()
public java.lang.String getProductNumber()
public java.lang.String getQuantity()
public java.lang.Long getReservationId()
public TypedProperty getResponseProperties()
getResponseProperties
in interface
ControllerCommand
getResponseProperties
in class
ControllerCommandImpl
public java.lang.String getRuleMacro()
public java.lang.String getRuleType()
Auction closing rule has the following valid values:
public java.lang.String getShortDescription()
public java.lang.String getStartDate()
public java.math.BigDecimal getStartPrice()
public java.lang.String getStartTime()
protected java.sql.Timestamp getStartTimeStamp()
protected java.lang.String getStatus()
public java.lang.String getTimeDuration()
public java.util.Hashtable getToolXMLObject()
public java.lang.String getType()
protected java.sql.Timestamp getUpdatedEndTimestamp()
public java.lang.String getViewTaskName()
public java.lang.String getWizardNavagationFile()
protected boolean isBidRuleExist()
public boolean isErrorFlag()
protected boolean isPageExist(java.lang.String pagename) throws ECException
pagename
- java.lang.StringECException
- raised with message _WRN_FILE_NOT_FOUND when the file is not found for a page
in the file system.public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand
protected boolean isValidCurrencyValueForAuction(java.lang.String currency) throws java.lang.ClassCastException
currency
- java.lang.Stringjava.lang.ClassCastException
- is thrown if currency string is
not valid.public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
newAuctionReferenceNumber
-public void setAuctionReferenceNumberUrlName(java.lang.String name, boolean isReq)
name
- The URL name for the auction Id.isReq
- Whether is parameter is required.public void setBidRuleUrlName(java.lang.String name, boolean isReq) throws ECApplicationException
setBidRuleUrlName
in interface
AuctionBaseCmd
name
- The URL name for the bid rule id.isReq
- Whether is parameter is required.
ECApplicationException
- is raised with mesage
ERR_TOOLS_AUCTION_REQUIRE when the bid rule is invalid and is required. Raised
with mesage _ERR_TOOLS_AUCTION_BAD_PARAMETER when the bid rule is invalid.java.lang.NumberFormatException
- is raised with message
_ERR_TOOLS_AUCTION_INVALID_NUMBER when the format of the bid rule is
invalid.public void setCurrency(java.lang.String newCurrency) throws ECApplicationException
newCurrency
-
ECApplicationException
- is thrown when the currency is
invalid.public void setCurrencyUrlName(java.lang.String urlName, boolean isReq)
setCurrencyUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.urlName
- The name for currency string.public void setCurrentAskPriceUrlName(java.lang.String name, boolean isReq)
setCurrentAskPriceUrlName
in interface
AuctionBaseCmd
name
- The name for the current ask price.isReq
- Whether is parameter is required.public void setCurrentAvailableQuantity(java.lang.String q)
q
- is the current available quantity.public void setCurrentAvailableQuantityUrlName(java.lang.String name, boolean isReq)
setCurrentAvailableQuantityUrlName
in interface
AuctionBaseCmd
name
- The name for the current available quantity.isReq
- Whether is parameter is required.public void setDayDurationUrlName(java.lang.String name, boolean isReq)
setDayDurationUrlName
in interface
AuctionBaseCmd
name
- The name for duration days.isReq
- Whether is parameter is required.public void setDepositUrlName(java.lang.String name, boolean isReq)
setDepositUrlName
in interface
AuctionBaseCmd
name
- The name for deposit.isReq
- Whether is parameter is required.protected void setDurationTimeStamp(java.sql.Timestamp newDurationTimeStamp) throws ECApplicationException
newDurationTimeStamp
-
ECApplicationException
- thrown when the timestamp is not
valid.public void setEndDateUrlName(java.lang.String name, boolean isReq)
Format is yyyy-mm-dd.
setEndDateUrlName
in interface
AuctionBaseCmd
name
- The name for the end date.isReq
- Whether is parameter is required.protected void setEndTimeStamp(java.sql.Timestamp newEndTimeStamp) throws ECApplicationException
newEndTimeStamp
-
ECApplicationException
- is thrown when the end timestamp is not
valid.public void setEndTimeUrlName(java.lang.String name, boolean isReq)
The format is hh:mm:ss.
setEndTimeUrlName
in interface
AuctionBaseCmd
name
- The name for the end time.isReq
- Whether is parameter is required.public void setErrorContent(java.util.Hashtable newErrorContent)
newErrorContent
- java.util.Hashtablepublic void setErrorFlag(boolean newErrorFlag)
newErrorFlag
-public void setFulfillmentCenterIdUrlName(java.lang.String name, boolean isReq)
The current implementation is to resolve the fulfillment center based on product id and quantity instead of setting directly.
setFulfillmentCenterIdUrlName
in interface
AuctionBaseCmd
name
- The name for the fulfillment center id.isReq
- Whether is parameter is required.public void setLanguageIdUrlName(java.lang.String name, boolean isReq)
setLanguageIdUrlName
in interface
AuctionBaseCmd
name
- The name for the language id.isReq
- Whether is parameter is required.public void setLongDescriptionUrlName(java.lang.String urlName, boolean isReq) throws ECApplicationException
setLongDescriptionUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.urlName
- The name for the long description.
ECApplicationException
- is thrown when the URL is
invalid.public void setMinBidUrlName(java.lang.String name, boolean isReq)
setMinBidUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.name
- The name for the end date.public void setOwnerId(java.lang.Long id)
public void setOwnerIdUrlName(java.lang.String name, boolean isReq)
setOwnerIdUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.name
- The name for the owner id.public void setPriceUrlName(java.lang.String name, boolean isReq)
ND for nondiscriminative, D for discriminative.
setPriceUrlName
in interface
AuctionBaseCmd
name
- The name for the close pricing policy type.isReq
- Whether is parameter is required.public void setProductMacroUrlName(java.lang.String name, boolean isReq)
setProductMacroUrlName
in interface
AuctionBaseCmd
name
- The name for the product display page name.isReq
- Whether is parameter is required.public void setProductNumberUrlName(java.lang.String name, boolean isReq)
setProductNumberUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.name
- The name for the product id (Catalog Entry
id).public void setQuantity(java.lang.String q)
q
- is the quantity.public void setQuantityUrlName(java.lang.String name, boolean isReq)
setQuantityUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.name
- The name for the quantity.public void setRequestProperties(TypedProperty paramTable) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ToolsControllerCommandImpl
paramTable
- is the request properties.
ECApplicationException
- is thrown when a parameter is
missing.public void setReservationId(java.lang.Long newReservationId)
newReservationId
-public void setResponseProperties(TypedProperty paramHash)
setResponseProperties
in class
ControllerCommandImpl
paramHash
- is the response properties.public void setRuleMacroUrlName(java.lang.String name, boolean isReq)
setRuleMacroUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.name
- The name for the rule display page
name.public void setRuleTypeUrlName(java.lang.String name, boolean isReq)
Auction closing rule has the following valid values:
setRuleTypeUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.name
- The name for the auction closing
type.public void setShortDescriptionUrlName(java.lang.String name, boolean isReq) throws ECApplicationException
setShortDescriptionUrlName
in interface
AuctionBaseCmd
name
- The name for the short description.isReq
- Whether is parameter is required.
ECApplicationException
- is thrown with messge
_ERR_TOOLS_AUCTION_REQUIRED when the short description is missing and is
required.public void setStartDateUrlName(java.lang.String name, boolean isReq) throws ECApplicationException
setStartDateUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.name
- The name for the start date.
ECApplicationException
- is thrown with message
_ERR_TOOLS_AUCTION_REQUIRED when the start date is missing and is
required.public void setStartPrice(java.math.BigDecimal newStartPrice)
newStartPrice
- java.math.BigDecimalpublic void setStartPriceUrlName(java.lang.String name, boolean isReq)
setStartPriceUrlName
in interface
AuctionBaseCmd
name
- The name for the start date.isReq
- Whether is parameter is required.protected void setStartTimeStamp(java.sql.Timestamp newStartTimeStamp) throws ECApplicationException
newStartTimeStamp
-
ECApplicationException
- is thrown when the start timestamp is not
valid.public void setStartTimeUrlName(java.lang.String name, boolean isReq)
The format is hh:mm:ss.
setStartTimeUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.name
- The name for the start time.protected void setStatus(java.lang.String newStatus)
newStatus
- java.lang.Stringpublic void setTimeDurationUrlName(java.lang.String name, boolean isReq)
setTimeDurationUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.name
- The name for duration time.public void setToolXMLObject(java.util.Hashtable newToolXMLObject)
newToolXMLObject
-public void setTypeUrlName(java.lang.String name, boolean isReq) throws ECApplicationException
setTypeUrlName
in interface
AuctionBaseCmd
isReq
- Whether is parameter is required.name
- The name for auction type.
ECApplicationException
- is raised with message
_ERR_TOOLS_AUCTION_REQUIRED if the name is missing and is required. Raised with
message _ERR_TOOLS_AUCTION_INVALID_TYPE is the auction type is
invalid.public void setViewTaskName(java.lang.String newViewTaskName)
newViewTaskName
-protected ECException getException()
protected void setException(ECException exception)
exception
- The exception to set