|
|||||||||
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.CategoryMgr
public class CategoryMgr
Contains methods to get the category tree and manage the current category.
Field Summary |
---|
Fields inherited from class com.konakart.al.BaseMgr |
---|
eng, kkAppEng |
Constructor Summary | |
---|---|
protected |
CategoryMgr(com.konakart.appif.KKEngIf eng,
KKAppEng kkAppEng)
Constructor |
Method Summary | |
---|---|
int |
createCatMenu(com.konakart.appif.CategoryIf cat,
com.konakart.appif.CategoryIf selectedCat,
java.util.List<com.konakart.appif.CategoryIf> catList,
int foundLevel)
This method is used to create a list of categories that can be used to create the category menu. |
protected void |
fetchCategoryTree()
Fetch the category tree from the engine for all languages |
DropListElement[] |
getAllCatsDropList()
This is only used for advanced product search so we can create it every time in the correct language. |
java.util.List<com.konakart.appif.CategoryIf> |
getCatMenuList()
The catMenuList is used in the categories tile to display the categories. |
com.konakart.appif.CategoryIf[] |
getCats()
Returns the category tree (i.e. |
com.konakart.appif.CategoryIf |
getCurrentCat()
Returns the category that is currently selected in the UI. |
com.konakart.appif.CategoryIf[] |
getCurrentSubCats()
Returns the sub categories of the category currently selected in the UI. |
com.konakart.appif.CategoryIf |
getCurrentTopCat()
Returns the top level category for the currently selected category tree. |
java.lang.String |
getSHOW_COUNTS()
Determine whether to show the number of products per category. |
boolean |
HasSubCats()
Returns true if there are subcategories for the current category. |
boolean |
isMgrReady()
Is the Manager Ready? |
void |
refreshCaches()
Refreshes the all categories list. |
void |
refreshConfigs()
Refresh the configuration variables. |
void |
reset()
Puts the Category Manager back into it's original state with no categories selected |
void |
setCurrentCat(com.konakart.appif.CategoryIf currentCat)
Sets the current category. |
void |
setCurrentCat(int catId)
Creates a new catMenuList so that the categories tile can display the correct
information. |
int |
setCurrentCatAndUpdateProducts1(int catId)
Sets currentCat . |
Methods inherited from class com.konakart.al.BaseMgr |
---|
getEng, getKkAppEng, getPages, setEng, setKkAppEng |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CategoryMgr(com.konakart.appif.KKEngIf eng, KKAppEng kkAppEng) throws com.konakart.app.KKException, KKAppException
eng
- kkAppEng
-
KKAppException
com.konakart.app.KKException
Method Detail |
---|
public void refreshConfigs() throws com.konakart.app.KKException, KKAppException
com.konakart.app.KKException
KKAppException
public void refreshCaches() throws com.konakart.app.KKException, KKAppException
com.konakart.app.KKException
KKAppException
public boolean isMgrReady()
isMgrReady
in class BaseMgr
protected void fetchCategoryTree() throws com.konakart.app.KKException, KKAppException
com.konakart.app.KKException
KKAppException
public void reset()
public int setCurrentCatAndUpdateProducts1(int catId) throws com.konakart.app.KKException, KKAppException
currentCat
. If the selected category is a leaf node then the ProdContainer
object is updated with the relative product and manufacturer information for the category.
i.e. The manufacturers and products for that category are fetched from the server.
catId
- The category id of the selected category
com.konakart.app.KKException
KKAppException
public int createCatMenu(com.konakart.appif.CategoryIf cat, com.konakart.appif.CategoryIf selectedCat, java.util.List<com.konakart.appif.CategoryIf> catList, int foundLevel)
cat
- selectedCat
- catList
- foundLevel
-
public void setCurrentCat(int catId)
catMenuList
so that the categories tile can display the correct
information. We do not go and get any products since this is being taken care of elsewhere.
This method is called by the ProductMgr when a user selects to view the details of a product.
*
catId
- The numeric id of the current categorypublic java.lang.String getSHOW_COUNTS()
public boolean HasSubCats()
public com.konakart.appif.CategoryIf[] getCats()
public com.konakart.appif.CategoryIf[] getCurrentSubCats()
public com.konakart.appif.CategoryIf getCurrentCat()
public void setCurrentCat(com.konakart.appif.CategoryIf currentCat)
currentCat
- The currentCat to set.public com.konakart.appif.CategoryIf getCurrentTopCat()
public java.util.List<com.konakart.appif.CategoryIf> getCatMenuList()
public DropListElement[] getAllCatsDropList()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |