public class AuctionBaseCmdImpl extends ToolsControllerCommandImpl implements AuctionBaseCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName
NAME
Constructor and Description |
---|
AuctionBaseCmdImpl()
AuctionBaseCmdImpl default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAuctionReferenceNumber()
Gets auction reference number.
|
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.
|
java.lang.String |
getDayDuration()
Gets the days for the duration.
|
java.lang.String |
getDeposit()
Gets the deposit amount required by the auction.
|
java.lang.String |
getEndDate()
Gets auction's end date.
|
java.lang.String |
getEndTime()
Gets auction's end time.
|
java.util.Hashtable |
getErrorContent()
Gets error content.
|
boolean |
getErrorFlag()
Gets error flag.
|
java.lang.Integer |
getFulfillmentCenterId()
Gets fulfillment Center ID.
|
java.lang.Integer |
getLanguageId()
Gets language ID.
|
java.lang.String |
getLongDescription()
Gets auction's long description.
|
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()
Gets 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.
|
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()
Gets auction type
|
java.lang.String |
getViewTaskName()
Gets the auction view task name
|
java.lang.String |
getWizardNavagationFile()
Gets tools frame wizard navigation file.
|
boolean |
isErrorFlag()
Check to see if any error occured.
|
boolean |
isReadyToCallExecute()
isReadyToCallExecute method comment.
|
void |
performExecute()
performExecute
|
void |
reset()
reset method comment.
|
void |
setAuctionReferenceNumber(java.lang.Long newAuctionReferenceNumber)
Sets auction reference number
|
void |
setAuctionReferenceNumberUrlName(java.lang.String name,
boolean isReq)
Sets auction reference number (also known as auction ID)
|
void |
setBidRuleUrlName(java.lang.String name,
boolean isReq)
Gets bid rule ID from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setCurrency(java.lang.String newCurrency)
Sets auction's currency string.
|
void |
setCurrencyUrlName(java.lang.String urlName,
boolean isReq)
Gets the currency string from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setCurrentAskPriceUrlName(java.lang.String name,
boolean isReq)
Gets current ask price from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setCurrentAvailableQuantity(java.lang.String q)
Sets current quantity.
|
void |
setCurrentAvailableQuantityUrlName(java.lang.String name,
boolean isReq)
Gets current available quantity from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setDayDurationUrlName(java.lang.String name,
boolean isReq)
Gets duration days from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setDepositUrlName(java.lang.String name,
boolean isReq)
Gets deposit amount from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setEndDateUrlName(java.lang.String name,
boolean isReq)
Gets auction's end date from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setEndTimeUrlName(java.lang.String name,
boolean isReq)
Gets auction's end time from the WebSphere Commerce tools framework XML objects, and sets it for the command.
|
void |
setErrorContent(java.util.Hashtable newErrorContent)
Sets error content
|
void |
setErrorFlag(boolean newErrorFlag)
Sets error flag.
|
void |
setFulfillmentCenterIdUrlName(java.lang.String name,
boolean isReq)
Gets fulfillment center ID from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setLanguageIdUrlName(java.lang.String name,
boolean isReq)
Gets language ID from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setLongDescriptionUrlName(java.lang.String urlName,
boolean isReq)
Gets auction's long description from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setMinBidUrlName(java.lang.String name,
boolean isReq)
Gets auction's reserve price from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setOwnerId(java.lang.Long id)
Sets auction owner ID
|
void |
setOwnerIdUrlName(java.lang.String name,
boolean isReq)
Gets auction's owner ID from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setPriceUrlName(java.lang.String name,
boolean isReq)
Gets auction's close pricing policy type(discriminative or non-discriminative) from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setProductMacroUrlName(java.lang.String name,
boolean isReq)
Gets auction's product display page name from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setProductNumberUrlName(java.lang.String name,
boolean isReq)
Gets auction's product (also known as catalog entry) ID from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setQuantity(java.lang.String q)
Sets auction quantity
|
void |
setQuantityUrlName(java.lang.String name,
boolean isReq)
Gets auction's quantity from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setRequestProperties(TypedProperty paramTable)
Sets request properties.
|
void |
setReservationId(java.lang.Long newReservationId)
Sets reservation identifier.
|
void |
setResponseProperties(TypedProperty paramHash)
Sets response properties.
|
void |
setRuleMacroUrlName(java.lang.String name,
boolean isReq)
Gets auction's rule display page name from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setRuleTypeUrlName(java.lang.String name,
boolean isReq)
Gets auction's closing type (fixed time closing, and so forth.) from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setShortDescriptionUrlName(java.lang.String name,
boolean isReq)
Gets auction's short description from the WebSphere Commerce tools framework XML objects, and sets it for the command.
|
void |
setStartDateUrlName(java.lang.String name,
boolean isReq)
Gets auction's start date from the WebSphere Commerce tools framework XML object, and sets 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)
Gets auction's start date from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setStartTimeUrlName(java.lang.String name,
boolean isReq)
Gets auction's start time from the WebSphere Commerce tools framework XML objects, and sets it for the command.
|
void |
setTimeDurationUrlName(java.lang.String name,
boolean isReq)
Gets duration time string (in hh:mm:ss format) from the WebSphere Commerce tools framework XML objects, and sets it for the command.
|
void |
setToolXMLObject(java.util.Hashtable newToolXMLObject)
Sets Tools framework XML objects
|
void |
setTypeUrlName(java.lang.String name,
boolean isReq)
Gets auction type string from the WebSphere Commerce tools framework XML object, and sets it for the command.
|
void |
setViewTaskName(java.lang.String newViewTaskName)
Sets auction creation view task name.
|
getViewInputProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public AuctionBaseCmdImpl()
public java.lang.Long getAuctionReferenceNumber()
public java.lang.String getBidRule()
public java.lang.String getCurrency()
public java.math.BigDecimal getCurrentAskPrice()
public java.lang.String getCurrentAvailableQuantity()
public java.lang.String getDayDuration()
public java.lang.String getDeposit()
public java.lang.String getEndDate()
public java.lang.String getEndTime()
public java.util.Hashtable getErrorContent()
public boolean getErrorFlag()
public java.lang.Integer getFulfillmentCenterId()
public java.lang.Integer getLanguageId()
public java.lang.String getLongDescription()
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()
public java.lang.String getTimeDuration()
public java.util.Hashtable getToolXMLObject()
public java.lang.String getType()
public java.lang.String getViewTaskName()
public java.lang.String getWizardNavagationFile()
public boolean isErrorFlag()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
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 message ERR_TOOLS_AUCTION_REQUIRE when the bid rule is invalid and is required. Raised with message _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
name
- The name for currency string.isReq
- Whether is parameter is required.public void setCurrentAskPriceUrlName(java.lang.String name, boolean isReq)
setCurrentAskPriceUrlName
in interface AuctionBaseCmd
name
- The name for the current asks 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.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.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
name
- The name for the long description.isReq
- Whether is parameter is required.ECApplicationException
- is thrown when the URL is invalid.public void setMinBidUrlName(java.lang.String name, boolean isReq)
setMinBidUrlName
in interface AuctionBaseCmd
s
- The name for the end date.isReq
- Whether is parameter is required.public void setOwnerId(java.lang.Long id)
name
- java.lang.Longpublic void setOwnerIdUrlName(java.lang.String name, boolean isReq)
setOwnerIdUrlName
in interface AuctionBaseCmd
s
- The name for the owner ID.isReq
- Whether is parameter is required.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
s
- The name for the product ID (Catalog Entry ID).isReq
- Whether is parameter is required.public void setQuantity(java.lang.String q)
q
- is the quantity.public void setQuantityUrlName(java.lang.String name, boolean isReq)
setQuantityUrlName
in interface AuctionBaseCmd
s
- The name for the quantity.isReq
- Whether is parameter is required.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
s
- The name for the rule display page name.isReq
- Whether is parameter is required.public void setRuleTypeUrlName(java.lang.String name, boolean isReq)
Auction closing rule has the following valid values:
setRuleTypeUrlName
in interface AuctionBaseCmd
s
- The name for the auction closing type.isReq
- Whether is parameter is required.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 message _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
s
- The name for the start date.isReq
- Whether is parameter is required.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.public void setStartTimeUrlName(java.lang.String name, boolean isReq)
The format is hh:mm:ss.
setStartTimeUrlName
in interface AuctionBaseCmd
s
- The name for the start time.isReq
- Whether is parameter is required.public void setTimeDurationUrlName(java.lang.String name, boolean isReq)
setTimeDurationUrlName
in interface AuctionBaseCmd
s
- The name for duration time.isReq
- Whether is parameter is required.public void setToolXMLObject(java.util.Hashtable newToolXMLObject)
newToolXMLObject
- public void setTypeUrlName(java.lang.String name, boolean isReq) throws ECApplicationException
setTypeUrlName
in interface AuctionBaseCmd
s
- The name for auction type.isReq
- Whether is parameter is required.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
-