com.ibm.commerce.negotiation.commands
Class AuctionBaseCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              |
              +--com.ibm.commerce.negotiation.commands.AuctionBaseCmdImpl
All Implemented Interfaces:
AccCommand, AuctionBaseCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand
Direct Known Subclasses:
CreateAuctionCmdImpl, CreateAuctionStyleCmdImpl, ModifyAuctionCmdImpl, ModifyAuctionStyleCmdImpl

public class AuctionBaseCmdImpl
extends ToolsControllerCommandImpl
implements AuctionBaseCmd

Base commnd for an auction creation and modification.


Field Summary
protected  java.lang.String bidRule
           
protected  java.lang.String currency
           
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.sql.Timestamp durationTimeStamp
           
protected  java.lang.String endDate
           
protected  java.lang.String endTime
           
protected  java.sql.Timestamp endTimeStamp
           
protected  java.lang.Integer languageId
           
protected  java.lang.String longDescription
           
protected  java.math.BigDecimal minBid
           
protected  java.lang.Long ownerid
           
protected  java.lang.String pricerule
           
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 startTime
           
protected  java.sql.Timestamp startTimeStamp
           
protected  java.lang.String status
           
protected  java.lang.String timeDuration
           
protected  java.lang.String 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
COPYRIGHT, defaultCommandClassName
 
Fields inherited from interface com.ibm.commerce.tools.command.ToolsControllerCommand
NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
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.
 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.
 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
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, 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, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, 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, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

bidRule

protected java.lang.String bidRule

currency

protected java.lang.String currency

currentAskPrice

protected java.math.BigDecimal currentAskPrice

currentAvailableQuantity

protected java.lang.String currentAvailableQuantity

dayDuration

protected java.lang.String dayDuration

deposit

protected java.lang.String deposit

description

protected java.lang.String description

durationTimeStamp

protected java.sql.Timestamp durationTimeStamp

endDate

protected java.lang.String endDate

endTime

protected java.lang.String endTime

endTimeStamp

protected java.sql.Timestamp endTimeStamp

languageId

protected java.lang.Integer languageId

longDescription

protected java.lang.String longDescription

minBid

protected java.math.BigDecimal minBid

ownerid

protected java.lang.Long ownerid

pricerule

protected java.lang.String pricerule

productMacro

protected java.lang.String productMacro

productNumber

protected java.lang.String productNumber

quantity

protected java.lang.String quantity

ruleMacro

protected java.lang.String ruleMacro

ruleType

protected java.lang.String ruleType

startDate

protected java.lang.String startDate

startPrice

protected java.math.BigDecimal startPrice

startTime

protected java.lang.String startTime

startTimeStamp

protected java.sql.Timestamp startTimeStamp

status

protected java.lang.String status

timeDuration

protected java.lang.String timeDuration

type

protected java.lang.String type
Constructor Detail

AuctionBaseCmdImpl

public AuctionBaseCmdImpl()
AuctionBaseCmdImpl default constructor.
Method Detail

addTimestamp

protected static java.sql.Timestamp addTimestamp(java.sql.Timestamp t1,
                                                 java.sql.Timestamp t2)
Utility method to add two timestamps
Parameters:
t1 - java.sql.Timestamp
t2 - java.sql.Timestamp
Returns:
java.sql.Timestamp

checkBidRule

protected int checkBidRule()
                    throws ECApplicationException
Validates the bid rule for this auction.
Returns:
0 not exist; 1 is checked; otherwise exception
Throws:
ECApplicationException - is thrown when any problem occurs.

compareTimestamp

protected int compareTimestamp(java.sql.Timestamp t1,
                               java.sql.Timestamp t2)
Utility method to compare two timestamps at the seconds level, not milliseconds level.
Parameters:
t1 - java.sql.Timestamp
t2 - java.sql.Timestamp
Returns:
int 0 for equal and -1 for not equal

dayChangeInTimestamp

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.
Parameters:
t1 - java.sql.Timestamp
dayChanged - int
Returns:
The new time stamp.

getAuctionReferenceNumber

public java.lang.Long getAuctionReferenceNumber()
Gets auction reference number.
Returns:
Auction reference number.

getBaseTimeStamp

protected java.sql.Timestamp getBaseTimeStamp()
Gets base time stamp which is "1900-01-01 00:00:00"
Returns:
The base time stamp.

getBidRule

public java.lang.String getBidRule()
Gets Bid rule id.
Returns:
The bid rule id as a String.

getCurrency

public java.lang.String getCurrency()
Gets the currency string for the auction.
Returns:
The three characters currency string. (e.g. USD )

getCurrentAskPrice

public java.math.BigDecimal getCurrentAskPrice()
Gets current Dutch auction price.
Returns:
The current ask price.

getCurrentAvailableQuantity

public java.lang.String getCurrentAvailableQuantity()
Gets current available quantity for the auction.
Returns:
The current quantity as a string.

getCurrentTimeStamp

protected java.sql.Timestamp getCurrentTimeStamp()
Gets current time stamp.
Returns:
The time stamp.

getDayDuration

public java.lang.String getDayDuration()
Gets the days for the duration.
Returns:
The days

getDeposit

public java.lang.String getDeposit()
Gets the desposit amount required by the auction.
Returns:
The deposit

getDurationTimeStamp

protected java.sql.Timestamp getDurationTimeStamp()
Gets the timestamp that represents the duration.
Returns:
The time stamp.

getEndDate

public java.lang.String getEndDate()
Gets auction's end date.
Returns:
The end date as a string in format of yyyy-mm-dd.

getEndTime

public java.lang.String getEndTime()
Gets auction's end time.
Returns:
The end time as a string in format of hh:mm:ss

getEndTimeStamp

protected java.sql.Timestamp getEndTimeStamp()
Gets the timestamp that represents the end date and time.
Returns:
The time stamp object.

getErrorContent

public java.util.Hashtable getErrorContent()
Gets error content.
Returns:
The hashtable contains error codes.

getErrorFlag

public boolean getErrorFlag()
Gets error flag.
Parameters:
the - error flag.

getFulfillmentCenterId

public java.lang.Integer getFulfillmentCenterId()
Gets fulfillment Center Id.
Returns:
The fulfillment Center Id.

getFulfillmentCenterId

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.
Returns:
The fulfillment center Id.

getLanguageId

public java.lang.Integer getLanguageId()
Gets language ID.
Returns:
the language ID.

getLongDescription

public java.lang.String getLongDescription()
Gets auction's long description.
Returns:
The long description.

getMerchantCurrency

protected java.lang.String getMerchantCurrency(java.lang.Integer anMerchantNum)
Gets the currency string for the given store.
Parameters:
anMerchantNum - is the store id.
Returns:
the currency string.

getMinBid

public java.math.BigDecimal getMinBid()
Gets reserve price for the auction.
Returns:
the price.

getOwnerId

public java.lang.Long getOwnerId()
Gets auction's owner Id.
Returns:
The member Id.

getPrice

public java.lang.String getPrice()
Gets pricing policy type that is used to determine the winner's final winning price.

D for discriminative, ND for non-discriminative.

Returns:
the string.

getProductMacro

public java.lang.String getProductMacro()
Gets product display page name for auction.
Returns:
the page path and name.

getProductNumber

public java.lang.String getProductNumber()
Gets the ID for the product that is being put on auction.
Returns:
The catalog entry ID.

getQuantity

public java.lang.String getQuantity()
Gets quantity of the product being put on auction.
Returns:
the quantity as a string.

getReservationId

public java.lang.Long getReservationId()
Gets the product reservation Id for the auction.
Returns:
reservation Id.

getResponseProperties

public TypedProperty getResponseProperties()
Gets response properties.
Specified by:
getResponseProperties in interface ControllerCommand
Overrides:
getResponseProperties in class ControllerCommandImpl
Returns:
com.ibm.commerce.datatype.TypedProperty

getRuleMacro

public java.lang.String getRuleMacro()
Gets rule display page name for the auction.
Returns:
The rule page name and path.

getRuleType

public java.lang.String getRuleType()
Get Auction closing type.

Auction closing rule has the following valid values:

  1. 1=at a fixed end time.
  2. 2=if a specified amount of time has elapsed since the last bid.
  3. 3=based on logical OR 1 and 2.
  4. 4=based on logical AND 1 and 2.
Returns:
the rule type.

getShortDescription

public java.lang.String getShortDescription()
Gets short description for the auction.
Returns:
the string.

getStartDate

public java.lang.String getStartDate()
Gets auction's start date.
Returns:
the date as a string in the format of yyyy-mm-dd.

getStartPrice

public java.math.BigDecimal getStartPrice()
Gets Dutch auction's open price.
Returns:
the price.

getStartTime

public java.lang.String getStartTime()
Gets auction start time.
Returns:
the start time as a string in the format of hh:mm:ss

getStartTimeStamp

protected java.sql.Timestamp getStartTimeStamp()
Gets the timestamp that represents the auction's start time.
Returns:
the timestamp object.

getStatus

protected java.lang.String getStatus()
Gets Auction status
Returns:
the string of status.

getTimeDuration

public java.lang.String getTimeDuration()
Gets auction's time duration in format of 00:00:00 (hour:min:sec)
Returns:
java.lang.String

getToolXMLObject

public java.util.Hashtable getToolXMLObject()
Gets Tools framework XML object.
Returns:
java.util.Hashtable

getType

public java.lang.String getType()
Auction type
Returns:
java.lang.String

getUpdatedEndTimestamp

protected java.sql.Timestamp getUpdatedEndTimestamp()
Calculates what is the ending time based on auction closing rule type.
Returns:
java.sql.Timestamp

getViewTaskName

public java.lang.String getViewTaskName()
Gets the auction view task name
Returns:
java.lang.String

getWizardNavagationFile

public java.lang.String getWizardNavagationFile()
Gets tools frame wizard navigation file.
Returns:
java.lang.String

isBidRuleExist

protected boolean isBidRuleExist()
Check the given bid rule existence for the auction.
Returns:
boolean

isErrorFlag

public boolean isErrorFlag()
Check to see if any error ocurred.
Returns:
true if error occured, false otherwise.

isPageExist

protected boolean isPageExist(java.lang.String pagename)
                       throws ECException
Check if a page exists on the file system. Writes out a warning message if it doesn't exist.
Parameters:
pagename - java.lang.String
Returns:
true if the page exists, false otherwise.

isReadyToCallExecute

public boolean isReadyToCallExecute()
isReadyToCallExecute method comment.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Returns:
true if it is ready, false otherwise.

isValidCurrencyValueForAuction

protected boolean isValidCurrencyValueForAuction(java.lang.String currency)
                                          throws java.lang.ClassCastException
Determines if the incoming currency is valid for the auction.
Parameters:
currency - java.lang.String
Returns:
true if it is a valid currency, false otherwise.

performExecute

public void performExecute()
                    throws ECException
performExecute
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

reset

public void reset()
reset method comment.
Overrides:
reset in class AbstractECTargetableCommand

setAuctionReferenceNumber

public void setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
Set Auction Reference Number
Parameters:
newAuctionReferenceNumber -  

setAuctionReferenceNumberUrlName

public void setAuctionReferenceNumberUrlName(java.lang.String name,
                                             boolean isReq)
Set Auction Reference Number (aka Auction Id)
Parameters:
name - The URL name for the auction Id.
isReq - Whether is parameter is required.

setBidRuleUrlName

public void setBidRuleUrlName(java.lang.String name,
                              boolean isReq)
                       throws ECApplicationException
Get bid rule id from Tools Framework's XML Object, and set it for the command.
Specified by:
setBidRuleUrlName in interface AuctionBaseCmd
Parameters:
name - The URL name for the bid rule id.
isReq - Whether is parameter is required.

setCurrency

public void setCurrency(java.lang.String newCurrency)
                 throws ECApplicationException
set auction's currency string.
Parameters:
newCurrency -  

setCurrencyUrlName

public void setCurrencyUrlName(java.lang.String urlName,
                               boolean isReq)
Get the currency string from Tools Framework's XML Object, and set it for the command.
Specified by:
setCurrencyUrlName in interface AuctionBaseCmd
Parameters:
name - The name for currency string.
isReq - Whether is parameter is required.

setCurrentAskPriceUrlName

public void setCurrentAskPriceUrlName(java.lang.String name,
                                      boolean isReq)
Get current ask price from Tools Framework's XML Object, and set it for the command.
Specified by:
setCurrentAskPriceUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the current ask price.
isReq - Whether is parameter is required.

setCurrentAvailableQuantity

public void setCurrentAvailableQuantity(java.lang.String q)
Set current quantity. This quantity is used by Dutch auction type only.
Parameters:
q - is the current available quantity.

setCurrentAvailableQuantityUrlName

public void setCurrentAvailableQuantityUrlName(java.lang.String name,
                                               boolean isReq)
Get current available quantity from Tools Framework's XML Object, and set it for the command.
Specified by:
setCurrentAvailableQuantityUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the current available quantity.
isReq - Whether is parameter is required.

setDayDurationUrlName

public void setDayDurationUrlName(java.lang.String name,
                                  boolean isReq)
Get duration days from Tools Framework's XML Object, and set it for the command.
Specified by:
setDayDurationUrlName in interface AuctionBaseCmd
Parameters:
name - The name for duration days.
isReq - Whether is parameter is required.

setDepositUrlName

public void setDepositUrlName(java.lang.String name,
                              boolean isReq)
Get deposit amount from Tools Framework's XML Object, and set it for the command.
Specified by:
setDepositUrlName in interface AuctionBaseCmd
Parameters:
name - The name for deposit.
isReq - Whether is parameter is required.

setDurationTimeStamp

protected void setDurationTimeStamp(java.sql.Timestamp newDurationTimeStamp)
                             throws ECApplicationException
Set duration timestamp
Parameters:
newDurationTimeStamp -  

setEndDateUrlName

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

Format is yyyy-mm-dd.

Specified by:
setEndDateUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the end date.
isReq - Whether is parameter is required.

setEndTimeStamp

protected void setEndTimeStamp(java.sql.Timestamp newEndTimeStamp)
                        throws ECApplicationException
Set auction end date timestamp.
Parameters:
newEndTimeStamp -  

setEndTimeUrlName

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

The format is hh:mm:ss.

Specified by:
setEndTimeUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the end time.
isReq - Whether is parameter is required.

setErrorContent

public void setErrorContent(java.util.Hashtable newErrorContent)
Set error contect
Parameters:
newErrorContent - java.util.Hashtable

setErrorFlag

public void setErrorFlag(boolean newErrorFlag)
Set error flag.
Parameters:
newErrorFlag -  

setFulfillmentCenterIdUrlName

public void setFulfillmentCenterIdUrlName(java.lang.String name,
                                          boolean isReq)
Get fulfillment center id from Tools Framework's XML Object, and set it for the command.

The current implementation is to resolve the fulfillment center based on product id and quantity instead of setting directly.

Specified by:
setFulfillmentCenterIdUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the fulfillment center id.
isReq - Whether is parameter is required.

setLanguageIdUrlName

public void setLanguageIdUrlName(java.lang.String name,
                                 boolean isReq)
Get language id from Tools Framework's XML Object, and set it for the command.
Specified by:
setLanguageIdUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the language id.
isReq - Whether is parameter is required.

setLongDescriptionUrlName

public void setLongDescriptionUrlName(java.lang.String urlName,
                                      boolean isReq)
                               throws ECApplicationException
Get auction's long description from Tools Framework's XML Object, and set it for the command.
Specified by:
setLongDescriptionUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the long description.
isReq - Whether is parameter is required.

setMinBidUrlName

public 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.
Specified by:
setMinBidUrlName in interface AuctionBaseCmd
Parameters:
s - The name for the end date.
isReq - Whether is parameter is required.

setOwnerId

public void setOwnerId(java.lang.Long id)
Sets auction owner id
Parameters:
name - java.lang.Long

setOwnerIdUrlName

public 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.
Specified by:
setOwnerIdUrlName in interface AuctionBaseCmd
Parameters:
s - The name for the owner id.
isReq - Whether is parameter is required.

setPriceUrlName

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

ND for nondiscriminative, D for discriminative.

Specified by:
setPriceUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the close pricing policy type.
isReq - Whether is parameter is required.

setProductMacroUrlName

public 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.
Specified by:
setProductMacroUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the product display page name.
isReq - Whether is parameter is required.

setProductNumberUrlName

public 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.
Specified by:
setProductNumberUrlName in interface AuctionBaseCmd
Parameters:
s - The name for the product id (Catalog Entry id).
isReq - Whether is parameter is required.

setQuantity

public void setQuantity(java.lang.String q)
Set auction quantity
Parameters:
q - is the quantity.

setQuantityUrlName

public void setQuantityUrlName(java.lang.String name,
                               boolean isReq)
Get auction's quantity from Tools Framework's XML Object, and set it for the command.
Specified by:
setQuantityUrlName in interface AuctionBaseCmd
Parameters:
s - The name for the quantity.
isReq - Whether is parameter is required.

setRequestProperties

public void setRequestProperties(TypedProperty paramTable)
                          throws ECApplicationException
Set request properties.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ToolsControllerCommandImpl
Parameters:
paramTable - is the request properties.

setReservationId

public void setReservationId(java.lang.Long newReservationId)
Sets reservation identifier.
Parameters:
newReservationId -  

setResponseProperties

public void setResponseProperties(TypedProperty paramHash)
Set response properties.
Overrides:
setResponseProperties in class ControllerCommandImpl
Parameters:
paramHash - is the response properties.

setRuleMacroUrlName

public 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.
Specified by:
setRuleMacroUrlName in interface AuctionBaseCmd
Parameters:
s - The name for the rule display page name.
isReq - Whether is parameter is required.

setRuleTypeUrlName

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

Auction closing rule has the following valid values:

  1. 1=at a fixed end time.
  2. 2=if a specified amount of time has elapsed since the last bid.
  3. 3=based on logical OR 1 and 2.
  4. 4=based on logical AND 1 and 2.
Specified by:
setRuleTypeUrlName in interface AuctionBaseCmd
Parameters:
s - The name for the auction closing type.
isReq - Whether is parameter is required.

setShortDescriptionUrlName

public void setShortDescriptionUrlName(java.lang.String name,
                                       boolean isReq)
                                throws ECApplicationException
Get auction's short description from Tools Framework's XML Object, and set it for the command.
Specified by:
setShortDescriptionUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the short description.
isReq - Whether is parameter is required.

setStartDateUrlName

public void setStartDateUrlName(java.lang.String name,
                                boolean isReq)
                         throws ECApplicationException
Get auction's start date from Tools Framework's XML Object, and set it for the command.
Specified by:
setStartDateUrlName in interface AuctionBaseCmd
Parameters:
s - The name for the start date.
isReq - Whether is parameter is required.

setStartPrice

public void setStartPrice(java.math.BigDecimal newStartPrice)
Sets start price for a Dutch auction.
Parameters:
newStartPrice - java.math.BigDecimal

setStartPriceUrlName

public 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.
Specified by:
setStartPriceUrlName in interface AuctionBaseCmd
Parameters:
name - The name for the start date.
isReq - Whether is parameter is required.

setStartTimeStamp

protected void setStartTimeStamp(java.sql.Timestamp newStartTimeStamp)
                          throws ECApplicationException
Set auction start timestamp
Parameters:
newStartTimeStamp -  

setStartTimeUrlName

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

The format is hh:mm:ss.

Specified by:
setStartTimeUrlName in interface AuctionBaseCmd
Parameters:
s - The name for the start time.
isReq - Whether is parameter is required.

setStatus

protected void setStatus(java.lang.String newStatus)
set auction status
Parameters:
newStatus - java.lang.String

setTimeDurationUrlName

public 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.
Specified by:
setTimeDurationUrlName in interface AuctionBaseCmd
Parameters:
s - The name for duration time.
isReq - Whether is parameter is required.

setToolXMLObject

public void setToolXMLObject(java.util.Hashtable newToolXMLObject)
Set Tools framework XML object
Parameters:
newToolXMLObject -  

setTypeUrlName

public void setTypeUrlName(java.lang.String name,
                           boolean isReq)
                    throws ECApplicationException
Get auction type string from Tools Framework's XML Object, and set it for the command.
  1. O for open cry auction type.
  2. SB for sealed bid auction type.
  3. D for Dutch auction type.
Specified by:
setTypeUrlName in interface AuctionBaseCmd
Parameters:
s - The name for auction type.
isReq - Whether is parameter is required.

setViewTaskName

public void setViewTaskName(java.lang.String newViewTaskName)
Set auction creation view task name. The view task name specifies what view to execute when create auction completes.
Parameters:
newViewTaskName -