|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.al.BaseMgr
com.konakart.al.BasketMgr
public class BasketMgr
Contains methods to add and remove products from the shopping basket.
| Field Summary |
|---|
| Fields inherited from class com.konakart.al.BaseMgr |
|---|
eng, kkAppEng, log |
| Constructor Summary | |
|---|---|
protected |
BasketMgr(com.konakart.appif.KKEngIf eng,
KKAppEng kkAppEng)
Constructor |
| Method Summary | |
|---|---|
void |
addToBasket(com.konakart.appif.BasketIf item,
boolean refresh)
Saves a new Basket object in the database for the current customer. |
void |
addToBasketWithOptions(com.konakart.appif.BasketIf item,
com.konakart.appif.AddToBasketOptionsIf options,
boolean refresh)
Saves a new Basket object in the database for the current customer. |
void |
emptyBasket()
All items in the basket are removed from the database and the array of basket items for the current customer, are deleted. |
void |
getBasketItemsPerCustomer()
Get the basket items for a customer and language and set them on the customer customer object of the customerMgr. |
java.lang.String |
getBasketTotal()
Returns the total price of the basket as a formatted string so that it may be used directly in the UI. |
void |
removeFromBasket(com.konakart.appif.BasketIf item,
boolean refresh)
The Basket object is removed from the database and so no longer appears in the customer's basket. |
void |
updateBasket(com.konakart.appif.BasketIf item,
boolean refresh)
Updates the Basket object in the database. |
| Methods inherited from class com.konakart.al.BaseMgr |
|---|
getEng, getKkAppEng, setEng, setKkAppEng |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BasketMgr(com.konakart.appif.KKEngIf eng,
KKAppEng kkAppEng)
throws com.konakart.app.KKException
eng - kkAppEng -
com.konakart.app.KKException| Method Detail |
|---|
public void getBasketItemsPerCustomer()
throws com.konakart.app.KKException
com.konakart.app.KKException
public void emptyBasket()
throws com.konakart.app.KKException
com.konakart.app.KKException
public void removeFromBasket(com.konakart.appif.BasketIf item,
boolean refresh)
throws com.konakart.app.KKException
item - The basket object to be removedrefresh - If set to true, the current customer's basket is refreshed
com.konakart.app.KKException
public void addToBasket(com.konakart.appif.BasketIf item,
boolean refresh)
throws com.konakart.app.KKException
item - The basket object to be addedrefresh - If set to true, the current customer's basket is refreshed
com.konakart.app.KKException
public void addToBasketWithOptions(com.konakart.appif.BasketIf item,
com.konakart.appif.AddToBasketOptionsIf options,
boolean refresh)
throws com.konakart.app.KKException
item - The basket object to be addedoptions - An object containing options for the method. It may be set to null.refresh - If set to true, the current customer's basket is refreshed
com.konakart.app.KKException
public void updateBasket(com.konakart.appif.BasketIf item,
boolean refresh)
throws com.konakart.app.KKException
item - The basket object to be updatedrefresh - If set to true, the current customer's basket is refreshed
com.konakart.app.KKException
public java.lang.String getBasketTotal()
throws com.konakart.app.KKException,
KKAppException
com.konakart.app.KKException
KKAppException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||