Class BasicCategoryProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.product.BasicCategoryProcessor
- All Implemented Interfaces:
BusinessObject,BusinessProcessor,CategoryProcessor
Processes business logic having to do with categories. Created in the Struts
layer in response to requests for viewing, editing, adding, and deleting
categories.
BasicCategoryProcessor is the default implementation of the
CategoryProcessor interface for the application.
- Author:
- David Tobey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategory(Map parameters) deleteCategory(Map parameters) editCategory(Map parameters) editDeleteCategories(Map parameters) loadAllCategoriesSortedByCode(boolean isContentPage) loadAllCategoriesSortedByName(boolean isContentPage) loadCategoriesAndCount(Map parameters) loadCategoriesForIndexing(int firstCategoryID, int lastCategoryID) loadCategoryFromCode(Map parameters) loadCategoryFromID(Map parameters) intloadSettings(Map parameters) loadSubcategoriesSortedByCode(boolean isContentPage, int parentCategory) loadSubcategoriesSortedByName(boolean isContentPage, int parentCategory) processSettings(Map parameters) sortCategoriesByCode(Map parameters) sortCategoriesByName(Map parameters) validateCategory(Category category) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initializeMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, utils
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
BasicCategoryProcessor
public BasicCategoryProcessor()
-
-
Method Details
-
loadAllCategories
- Specified by:
loadAllCategoriesin interfaceCategoryProcessor- Throws:
Exception
-
loadCategoriesAndCount
- Specified by:
loadCategoriesAndCountin interfaceCategoryProcessor- Throws:
Exception
-
addCategory
- Specified by:
addCategoryin interfaceCategoryProcessor- Throws:
Exception
-
loadCategoryFromID
- Specified by:
loadCategoryFromIDin interfaceCategoryProcessor- Throws:
Exception
-
loadCategoryFromCode
- Specified by:
loadCategoryFromCodein interfaceCategoryProcessor- Throws:
Exception
-
editCategory
- Specified by:
editCategoryin interfaceCategoryProcessor- Throws:
Exception
-
editDeleteCategories
- Specified by:
editDeleteCategoriesin interfaceCategoryProcessor- Throws:
Exception
-
deleteCategory
- Specified by:
deleteCategoryin interfaceCategoryProcessor- Throws:
Exception
-
validateCategory
- Throws:
Exception
-
sortCategoriesByName
- Specified by:
sortCategoriesByNamein interfaceCategoryProcessor- Throws:
Exception
-
loadAllCategoriesSortedByName
- Throws:
Exception
-
loadSubcategoriesSortedByName
public Collection loadSubcategoriesSortedByName(boolean isContentPage, int parentCategory) throws Exception - Throws:
Exception
-
sortCategoriesByCode
- Specified by:
sortCategoriesByCodein interfaceCategoryProcessor- Throws:
Exception
-
loadAllCategoriesSortedByCode
- Throws:
Exception
-
loadSubcategoriesSortedByCode
public Collection loadSubcategoriesSortedByCode(boolean isContentPage, int parentCategory) throws Exception - Throws:
Exception
-
loadSettings
- Specified by:
loadSettingsin interfaceCategoryProcessor- Throws:
Exception
-
processSettings
- Specified by:
processSettingsin interfaceCategoryProcessor- Throws:
Exception
-
loadMaxCategoryID
- Specified by:
loadMaxCategoryIDin interfaceCategoryProcessor- Throws:
Exception
-
loadCategoriesForIndexing
public Collection loadCategoriesForIndexing(int firstCategoryID, int lastCategoryID) throws Exception - Specified by:
loadCategoriesForIndexingin interfaceCategoryProcessor- Throws:
Exception
-