|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.catalogmanagement.commands.OfferAddCmdImpl
Implementation for OfferAdd command which is the URL command for adding an Offer, Offer Description, and OfferPrice
Field Summary | |
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.OfferAddCmd". |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
protected java.math.BigDecimal |
ibdCompareprice
|
protected java.math.BigDecimal |
ibdPrice
|
protected java.lang.Double |
idMaximumQuantity
|
protected java.lang.Double |
idMinimumQuantity
|
protected java.lang.Double |
idPrecedence
|
protected java.lang.Long |
inCatentryId
|
protected java.lang.Integer |
inDescLanguage
|
protected java.lang.Integer |
inFlags
|
protected java.lang.Long |
inIdentifier
|
protected java.lang.Long |
inOfferId
|
protected java.lang.Integer |
inPublished
|
protected java.lang.Long |
inTradeposcnId
|
protected java.lang.String |
istrCurrency
|
protected java.lang.String |
istrDescription
|
protected java.lang.String |
istrField1
|
protected java.lang.String |
istrField2
|
protected java.lang.String |
istrOID
|
protected java.lang.String |
istrQtyunitId
|
protected java.lang.String |
istrURL
|
protected java.sql.Timestamp |
itmEnddate
|
protected java.sql.Timestamp |
itmLastupdate
|
protected java.sql.Timestamp |
itmStartdate
|
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.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
OfferAddCmdImpl()
|
Method Summary | |
java.lang.Long |
getCatentryId()
Get the catalog entry Id |
java.lang.String |
getCurrency()
Get the currency |
java.lang.Integer |
getDescLanguage()
Get the description language Id |
java.sql.Timestamp |
getEnddate()
Get the end date of the offer |
java.lang.Long |
getIdentifier()
Get the offer identifier |
java.lang.Long |
getOfferId()
Get the offer Id |
java.math.BigDecimal |
getPrice()
Get the offer price |
java.sql.Timestamp |
getStartdate()
Get Start Date of the Offer |
java.lang.Long |
getTradeposcnId()
Get the trading position container Id |
java.lang.String |
getURL()
Get the redirect URL |
void |
performExecute()
The main program for OfferAdd command |
void |
reset()
This method reset all the variables used in OfferAdd command |
void |
setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id |
void |
setCompareprice(java.math.BigDecimal abdCompareprice)
Set the compare price |
void |
setCurrency(java.lang.String astrCurrency)
Set the currency |
void |
setDescLanguage(java.lang.Integer anDescLanguage)
Set language id for the offer description |
void |
setDescription(java.lang.String astrDescription)
Set the offer description |
void |
setEnddate(java.sql.Timestamp atmEnddate)
Set the end date of the offer |
void |
setField1(java.lang.String astrField1)
Set field 1 of the offer |
void |
setField2(java.lang.String astrField2)
Set field 2 of the offer |
void |
setFlags(java.lang.Integer anFlags)
Set offer flags 1 = shipto address required (if 1, OrderPrepare will return an error if an OrderItem references this offer but does not have a shipping address) |
void |
setIdentifier(java.lang.Long anIdentifier)
Set the offer identifier |
void |
setLastupdate(java.sql.Timestamp atmLastupdate)
Sets the date and time when the offer was updated |
void |
setMaximumQuantity(java.lang.Double adMaximumQuantity)
Set the maximum quantity allowed for the offer |
void |
setMinimumQuantity(java.lang.Double adMinimumQuantity)
Set the minimum quantity required for the offer |
void |
setOfferId(java.lang.Long anOfferId)
Set the offer Id |
void |
setOID(java.lang.String astrOID)
Set the object identifier |
void |
setPrecedence(java.lang.Double adPrecedence)
Set the precedence of the offer When more than one offer is effective at a particular time, the one with the highest precedence is used. |
void |
setPrice(java.math.BigDecimal abdPrice)
Set the price |
void |
setPublished(java.lang.Integer anPublished)
Set the published flag of the offer 0 = offer is not published (temporarily disabled). |
void |
setQtyunitId(java.lang.String astrQtyunitId)
Set the quantity unit Id. |
void |
setRequestProperties(TypedProperty reqParms)
This method obtain the input parameters for OfferAdd command |
void |
setStartdate(java.sql.Timestamp atmStartdate)
Sets the start date of the offer |
void |
setTradeposcnId(java.lang.Long anTradeposcnId)
Set trading positioning container Id for the offer |
void |
setURL(java.lang.String astrURL)
Set a redirect URL |
void |
validateParameters()
This method validates the parameters for OfferAdd command |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, 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, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
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, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
protected java.math.BigDecimal ibdCompareprice
protected java.math.BigDecimal ibdPrice
protected java.lang.Double idMaximumQuantity
protected java.lang.Double idMinimumQuantity
protected java.lang.Double idPrecedence
protected java.lang.Long inCatentryId
protected java.lang.Integer inDescLanguage
protected java.lang.Integer inFlags
protected java.lang.Long inIdentifier
protected java.lang.Long inOfferId
protected java.lang.Integer inPublished
protected java.lang.Long inTradeposcnId
protected java.lang.String istrCurrency
protected java.lang.String istrDescription
protected java.lang.String istrField1
protected java.lang.String istrField2
protected java.lang.String istrOID
protected java.lang.String istrQtyunitId
protected java.lang.String istrURL
protected java.sql.Timestamp itmEnddate
protected java.sql.Timestamp itmLastupdate
protected java.sql.Timestamp itmStartdate
Constructor Detail |
public OfferAddCmdImpl()
Method Detail |
public java.lang.Long getCatentryId()
getCatentryId
in interface OfferAddCmd
public java.lang.String getCurrency()
public java.lang.Integer getDescLanguage()
public java.sql.Timestamp getEnddate()
public java.lang.Long getIdentifier()
public java.lang.Long getOfferId()
getOfferId
in interface OfferAddCmd
public java.math.BigDecimal getPrice()
public java.sql.Timestamp getStartdate()
public java.lang.Long getTradeposcnId()
java.lang.Long
- public java.lang.String getURL()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
ECException
- public void reset()
reset
in class AbstractECTargetableCommand
public void setCatentryId(java.lang.Long anCatentryId)
setCatentryId
in interface OfferAddCmd
anCatentryId
- java.lang.Longpublic void setCompareprice(java.math.BigDecimal abdCompareprice)
setCompareprice
in interface OfferAddCmd
abdCompareprice
- java.math.BigDecimalpublic void setCurrency(java.lang.String astrCurrency)
setCurrency
in interface OfferAddCmd
astrCurrency
- java.lang.Stringpublic void setDescLanguage(java.lang.Integer anDescLanguage)
setDescLanguage
in interface OfferAddCmd
anDescLanguage
- java.lang.Integerpublic void setDescription(java.lang.String astrDescription)
setDescription
in interface OfferAddCmd
astrDescription
- java.lang.Stringpublic void setEnddate(java.sql.Timestamp atmEnddate)
setEnddate
in interface OfferAddCmd
atmEnddate
- java.sql.Timestamppublic void setField1(java.lang.String astrField1)
setField1
in interface OfferAddCmd
astrField1
- java.lang.Stringpublic void setField2(java.lang.String astrField2)
setField2
in interface OfferAddCmd
astrField2
- java.lang.Stringpublic void setFlags(java.lang.Integer anFlags)
setFlags
in interface OfferAddCmd
anFlags
- java.lang.Integerpublic void setIdentifier(java.lang.Long anIdentifier)
setIdentifier
in interface OfferAddCmd
anIdentifier
- java.lang.Longpublic void setLastupdate(java.sql.Timestamp atmLastupdate)
setLastupdate
in interface OfferAddCmd
atmLastupdate
- java.sql.Timestamppublic void setMaximumQuantity(java.lang.Double adMaximumQuantity)
setMaximumQuantity
in interface OfferAddCmd
adMaximumQuantity
- java.lang.Doublepublic void setMinimumQuantity(java.lang.Double adMinimumQuantity)
setMinimumQuantity
in interface OfferAddCmd
adMinimumQuantity
- java.lang.Doublepublic void setOfferId(java.lang.Long anOfferId)
setOfferId
in interface OfferAddCmd
anOfferId
- java.lang.Longpublic void setOID(java.lang.String astrOID)
setOID
in interface OfferAddCmd
astrOID
- java.lang.Stringpublic void setPrecedence(java.lang.Double adPrecedence)
setPrecedence
in interface OfferAddCmd
adPrecedence
- java.lang.Doublepublic void setPrice(java.math.BigDecimal abdPrice)
setPrice
in interface OfferAddCmd
abdPrice
- java.math.BigDecimalpublic void setPublished(java.lang.Integer anPublished)
setPublished
in interface OfferAddCmd
anPublished
- java.lang.Integerpublic void setQtyunitId(java.lang.String astrQtyunitId)
setQtyunitId
in interface OfferAddCmd
astrQtyunitId
- java.lang.Stringpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
ECApplicationException
- public void setStartdate(java.sql.Timestamp atmStartdate)
setStartdate
in interface OfferAddCmd
atmStartdate
- java.sql.Timestamppublic void setTradeposcnId(java.lang.Long anTradeposcnId)
setTradeposcnId
in interface OfferAddCmd
anTradeposcnId
- java.lang.Longpublic void setURL(java.lang.String astrURL)
setURL
in interface OfferAddCmd
astrURL
- java.lang.Stringpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |