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
-
Constructor Summary
-
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) int
loadSettings
(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, utils
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
Methods 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:
loadAllCategories
in interfaceCategoryProcessor
- Throws:
Exception
-
loadCategoriesAndCount
- Specified by:
loadCategoriesAndCount
in interfaceCategoryProcessor
- Throws:
Exception
-
addCategory
- Specified by:
addCategory
in interfaceCategoryProcessor
- Throws:
Exception
-
loadCategoryFromID
- Specified by:
loadCategoryFromID
in interfaceCategoryProcessor
- Throws:
Exception
-
loadCategoryFromCode
- Specified by:
loadCategoryFromCode
in interfaceCategoryProcessor
- Throws:
Exception
-
editCategory
- Specified by:
editCategory
in interfaceCategoryProcessor
- Throws:
Exception
-
editDeleteCategories
- Specified by:
editDeleteCategories
in interfaceCategoryProcessor
- Throws:
Exception
-
deleteCategory
- Specified by:
deleteCategory
in interfaceCategoryProcessor
- Throws:
Exception
-
validateCategory
- Throws:
Exception
-
sortCategoriesByName
- Specified by:
sortCategoriesByName
in interfaceCategoryProcessor
- Throws:
Exception
-
loadAllCategoriesSortedByName
- Throws:
Exception
-
loadSubcategoriesSortedByName
public Collection loadSubcategoriesSortedByName(boolean isContentPage, int parentCategory) throws Exception - Throws:
Exception
-
sortCategoriesByCode
- Specified by:
sortCategoriesByCode
in interfaceCategoryProcessor
- Throws:
Exception
-
loadAllCategoriesSortedByCode
- Throws:
Exception
-
loadSubcategoriesSortedByCode
public Collection loadSubcategoriesSortedByCode(boolean isContentPage, int parentCategory) throws Exception - Throws:
Exception
-
loadSettings
- Specified by:
loadSettings
in interfaceCategoryProcessor
- Throws:
Exception
-
processSettings
- Specified by:
processSettings
in interfaceCategoryProcessor
- Throws:
Exception
-
loadMaxCategoryID
- Specified by:
loadMaxCategoryID
in interfaceCategoryProcessor
- Throws:
Exception
-
loadCategoriesForIndexing
public Collection loadCategoriesForIndexing(int firstCategoryID, int lastCategoryID) throws Exception - Specified by:
loadCategoriesForIndexing
in interfaceCategoryProcessor
- Throws:
Exception
-