com.ibm.commerce.catalogmanagement.commands
Interface OfferUpdateCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable
All Known Implementing Classes:
OfferUpdateCmdImpl

public interface OfferUpdateCmd
extends ControllerCommand

The OfferUpdateCmd is a URL and controller command that:

Parameters: Access Beans: Task Commands: UpdateOfferCmd
Other Controller Commands: ListpriceUpdateCmd Mandatory Parameters: offerId, or catentryId and identifier. Additional Parameters: None. Optional Parameters: field1, field2, flags, maxQuantity, minQuantity, precedence, published, qtyunitId, desc, descLangId, compareprice, currency, price, URL.

Field Summary
static java.lang.String CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.OfferUpdateCmd".
static java.lang.String COPYRIGHT
The internal copyright field.
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Method Summary
java.lang.Long getCatentryId()
Gets the catalog entry ID.
java.lang.String getCurrency()
Gets the currency of the offer price.
void setCatentryId(java.lang.Long anCatentryId)
Sets the catalog entry ID for the offer.
void setCompareprice(java.math.BigDecimal abdCompareprice)
Sets the comparative price.
void setCurrency(java.lang.String astrCurrency)
Sets the currency for the offer price.
void setDescLanguage(java.lang.Integer anDescLanguage)
Sets the language ID used for the offer description.
void setDescription(java.lang.String astrDescription)
Sets the description of the offer.
void setEnddate(java.sql.Timestamp atmEnddate)
Sets the end date of the offer.
void setField1(java.lang.String astrField1)
Sets field 1 of the offer.
void setField2(java.lang.String astrField2)
Sets field 2 of the offer.
void setFlags(java.lang.Integer anFlags)
Sets the offer flag: 1 = shipto address required.
void setIdentifier(java.lang.Long anIdentifier)
Sets the offer identifier.
void setLastupdate(java.sql.Timestamp atmLastupdate)
Sets the last update time of the offer.
void setMaximumQuantity(java.lang.Double adMaximumQuantity)
Sets the maximum quantity allowed for the offer.
void setMinimumQuantity(java.lang.Double adMinimumQuantity)
Sets the minimum quantity required for the offer.
void setOfferId(java.lang.Long anOfferId)
Sets the offer ID for the offer price and offer description.
void setOID(java.lang.String astrOID)
Sets the object identifier of the offer.
void setPrecedence(java.lang.Double adPrecedence)
Sets the precedence of the offer.
void setPrice(java.math.BigDecimal abdPrice)
Sets the offer price.
void setPublished(java.lang.Integer anPublished)
Sets the published flag of the offer: 0 = offer is not published (temporarily disabled).
void setQtyunitId(java.lang.String astrQtyunitId)
Sets the quantity unit ID.
void setStartdate(java.sql.Timestamp atmStartdate)
Sets the start date of the offer.
void setTradeposcnId(java.lang.Long anTradeposcnId)
Sets the trading position container ID for the offer.
void setURL(java.lang.String astrURL)
Sets the redirect URL.
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, 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, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.OfferUpdateCmd".
See Also:
Constant Field Values
Method Detail

getCatentryId

public java.lang.Long getCatentryId()
Gets the catalog entry ID.
Returns:
the catalog entry ID

getCurrency

public java.lang.String getCurrency()
Gets the currency of the offer price.
Returns:
the currency

setCatentryId

public void setCatentryId(java.lang.Long anCatentryId)
Sets the catalog entry ID for the offer.
Parameters:
anCatentryId - the catalog entry ID

setField1

public void setField1(java.lang.String astrField1)
Sets field 1 of the offer.
Parameters:
astrField1 - customizable field 1

setField2

public void setField2(java.lang.String astrField2)
Sets field 2 of the offer.
Parameters:
astrField2 - customizable field 2

setFlags

public void setFlags(java.lang.Integer anFlags)
Sets the offer flag:
  • 1 = shipto address required. (if 1, OrderPrepare will return an error if an OrderItem references this offer but does not have a shipping address).
    Parameters:
    anFlags - the offer flag

setIdentifier

public void setIdentifier(java.lang.Long anIdentifier)
Sets the offer identifier.
Parameters:
anIdentifier - the identifier of the offer

setLastupdate

public void setLastupdate(java.sql.Timestamp atmLastupdate)
Sets the last update time of the offer. If not set, the time this command was called will be used.
Parameters:
atmLastupdate - the time the offer was updated

setMaximumQuantity

public void setMaximumQuantity(java.lang.Double adMaximumQuantity)
Sets the maximum quantity allowed for the offer.
Parameters:
adMaximumQuantity - the maximum quantity allowed

setMinimumQuantity

public void setMinimumQuantity(java.lang.Double adMinimumQuantity)
Sets the minimum quantity required for the offer.
Parameters:
adMinimumQuantity - the minimum quantity required

setStartdate

public void setStartdate(java.sql.Timestamp atmStartdate)
Sets the start date of the offer.
Parameters:
atmStartdate - the offer start date

setEnddate

public void setEnddate(java.sql.Timestamp atmEnddate)
Sets the end date of the offer.
Parameters:
atmEnddate - the offer end date

setPublished

public void setPublished(java.lang.Integer anPublished)
Sets the published flag of the offer:
  • 0 = offer is not published (temporarily disabled).
  • 1 = offer is published.
  • 2 = offer is marked for deletion (and not published).
Parameters:
anPublished - the published flag of the offer

setQtyunitId

public void setQtyunitId(java.lang.String astrQtyunitId)
Sets the quantity unit ID. This is the unit of measure for minimum quantity and maximum quantity.
Parameters:
astrQtyunitId - the quantity unit ID

setTradeposcnId

public void setTradeposcnId(java.lang.Long anTradeposcnId)
Sets the trading position container ID for the offer.
Parameters:
anTradeposcnId - the trading position container ID

setOID

public void setOID(java.lang.String astrOID)
Sets the object identifier of the offer.
Parameters:
astrOID - the object identifier of the offer

setPrecedence

public void setPrecedence(java.lang.Double adPrecedence)
Sets the precedence of the offer. When more than one offer is effective at a particular time, the one with the highest precedence is used.
Parameters:
adPrecedence - the precedence of the offer

setOfferId

public void setOfferId(java.lang.Long anOfferId)
Sets the offer ID for the offer price and offer description.
Parameters:
anOfferId - the offer ID

setCompareprice

public void setCompareprice(java.math.BigDecimal abdCompareprice)
Sets the comparative price.
Parameters:
abdCompareprice - the comparative price

setCurrency

public void setCurrency(java.lang.String astrCurrency)
Sets the currency for the offer price.
Parameters:
astrCurrency - the currency

setPrice

public void setPrice(java.math.BigDecimal abdPrice)
Sets the offer price.
Parameters:
abdPrice - the offer price

setDescLanguage

public void setDescLanguage(java.lang.Integer anDescLanguage)
Sets the language ID used for the offer description.
Parameters:
anDescLanguage - the language ID

setDescription

public void setDescription(java.lang.String astrDescription)
Sets the description of the offer.
Parameters:
astrDescription - the offer description

setURL

public void setURL(java.lang.String astrURL)
Sets the redirect URL.
Parameters:
astrURL - the redirect URL

Feedback