public class QuotaMgr extends BaseMgr
| Modifier and Type | Field and Description |
|---|---|
protected KKAppEng |
kkAppEng
The
Log instance for this application. |
| Constructor and Description |
|---|
QuotaMgr(com.konakart.appif.KKEngIf eng,
KKAppEng kkAppEng)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
canAddToBasket(int productId,
com.konakart.appif.OptionIf[] opts)
Returns the number of products that can be added to the cart for this customer.
|
int |
canAddToBasket(com.konakart.appif.ProductIf product,
com.konakart.appif.OptionIf[] opts)
Returns the number of products that can be added to the cart for this customer.
|
int |
getQuotaForProduct(int productId,
com.konakart.appif.OptionIf[] opts)
You may customize this method if the quota varies per product and is contained in a product
custom field or is retrieved from a service.
|
int |
getQuotaForProduct(com.konakart.appif.ProductIf product,
com.konakart.appif.OptionIf[] opts)
You may customize this method if the quota varies per product and is contained in a product
custom field or is retrieved from a service.
|
getEng, getKkAppEng, getPages, isMgrReady, setEng, setKkAppEngprotected KKAppEng kkAppEng
Log instance for this application.public QuotaMgr(com.konakart.appif.KKEngIf eng,
KKAppEng kkAppEng)
eng - the engkkAppEng - the kkAppEngpublic int canAddToBasket(int productId,
com.konakart.appif.OptionIf[] opts)
throws KKAppException
productId - Id of product being added to cartopts - OptionsKKAppException - an unexpected KKAppException exceptionpublic int canAddToBasket(com.konakart.appif.ProductIf product,
com.konakart.appif.OptionIf[] opts)
throws KKAppException
product - Product being added to cartopts - OptionsKKAppException - an unexpected KKAppException exceptionpublic int getQuotaForProduct(int productId,
com.konakart.appif.OptionIf[] opts)
productId - the productIdopts - Optionspublic int getQuotaForProduct(com.konakart.appif.ProductIf product,
com.konakart.appif.OptionIf[] opts)
product - the productopts - OptionsCopyright © 2018 DS Data Systems UK Ltd.