|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminCategoryMgrIf
AdminCategoryMgrIf
Method Summary | |
---|---|
void |
deleteCategoryTree(int categoryId,
int options)
Delete the category referenced to by categoryId. |
void |
deleteSingleCategory(int categoryId)
Delete a single category. |
boolean |
doesCategoryExist(int categoryId)
Return true if the category exists. |
void |
editCategory(AdminCategory cat)
Edit the category. |
AdminCategory[] |
getCategoriesPerProduct(int productId,
int languageId)
Returns all of the categories that the product belongs to. |
AdminCategory[] |
getCategoriesPerPromotion(int promotionId,
int languageId)
Returns all of the categories for the promotion |
int[] |
getCategoriesPerTagGroup(int tagGroupId)
Return an array of Category Ids linked to the specified tag group. |
AdminCategoryToTagGroup[] |
getCategoriesToTagGroups()
Return an array of all of the AdminCategoryToTagGroup records. |
AdminCategory |
getCategory(int categoryId,
boolean getChildren,
int languageId)
|
AdminCategory |
getCategory(int categoryId,
boolean getChildren,
int languageId,
java.lang.String storeId)
|
AdminCategory[] |
getCategoryTree(int languageId,
boolean getNumProducts)
Returns an array of top level categories each of which includes an array of child categories etc. |
int[] |
getChildren(int categoryId)
Returns an array of categoryId describing the children of the given category. |
AdminCategory[] |
getTopLevelCategories(int languageId,
AdminDataDescriptor dataDesc)
Returns all of the top level categories which are those that have a parentId = 0. |
int |
insertCategory(AdminCategory cat)
Insert a category as a child of the parent category. |
void |
moveCategory(int categoryId,
int newParentId)
Move this category to make it a child of the category identified by newParentId |
Method Detail |
---|
AdminCategory[] getCategoryTree(int languageId, boolean getNumProducts) throws java.lang.Exception
getNumProducts
is set to true.
languageId
- getNumProducts
-
java.lang.Exception
AdminCategory[] getTopLevelCategories(int languageId, AdminDataDescriptor dataDesc) throws java.lang.Exception
languageId
- dataDesc
-
java.lang.Exception
int[] getChildren(int categoryId) throws java.lang.Exception
categoryId
-
java.lang.Exception
AdminCategory getCategory(int categoryId, boolean getChildren, int languageId) throws java.lang.Exception
categoryId
- getChildren
- If true we get all of the children. Children don't have an array of descriptions.languageId
- Needed to determine the language Id of the children
java.lang.Exception
AdminCategory getCategory(int categoryId, boolean getChildren, int languageId, java.lang.String storeId) throws java.lang.Exception
categoryId
- getChildren
- If true we get all of the children. Children don't have an array of descriptions.languageId
- Needed to determine the language Id of the childrenstoreId
- The store id
java.lang.Exception
boolean doesCategoryExist(int categoryId) throws org.apache.torque.TorqueException, KKAdminException
categoryId
-
org.apache.torque.TorqueException
KKAdminException
int insertCategory(AdminCategory cat) throws java.lang.Exception
cat
-
java.lang.Exception
void editCategory(AdminCategory cat) throws java.lang.Exception
cat
-
java.lang.Exception
void deleteCategoryTree(int categoryId, int options) throws java.lang.Exception
categoryId
- options
-
java.lang.Exception
void deleteSingleCategory(int categoryId) throws java.lang.Exception
categoryId
-
java.lang.Exception
void moveCategory(int categoryId, int newParentId) throws java.lang.Exception
categoryId
- newParentId
-
java.lang.Exception
AdminCategory[] getCategoriesPerPromotion(int promotionId, int languageId) throws java.lang.Exception
promotionId
- languageId
-
java.lang.Exception
int[] getCategoriesPerTagGroup(int tagGroupId) throws java.lang.Exception
tagGroupId
- The Id of the tag Group
java.lang.Exception
AdminCategoryToTagGroup[] getCategoriesToTagGroups() throws java.lang.Exception
java.lang.Exception
AdminCategory[] getCategoriesPerProduct(int productId, int languageId) throws java.lang.Exception
productId
- languageId
-
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |