com.softslate.commerce.businessobjects.product
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
public class BasicCategoryProcessor
- extends BaseBusinessProcessor
- implements 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 |
(package private) static org.apache.commons.logging.Log |
log
|
| Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor |
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getProductIDs, getSettings, getUser, initialize, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, 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.BusinessProcessor |
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, utils |
log
static org.apache.commons.logging.Log log
BasicCategoryProcessor
public BasicCategoryProcessor()
loadAllCategories
public java.util.Collection loadAllCategories()
throws java.lang.Exception
- Specified by:
loadAllCategories in interface CategoryProcessor
- Throws:
java.lang.Exception
loadCategoriesAndCount
public java.util.Map loadCategoriesAndCount(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
loadCategoriesAndCount in interface CategoryProcessor
- Throws:
java.lang.Exception
addCategory
public java.util.Map addCategory(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
addCategory in interface CategoryProcessor
- Throws:
java.lang.Exception
loadCategoryFromID
public Category loadCategoryFromID(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
loadCategoryFromID in interface CategoryProcessor
- Throws:
java.lang.Exception
editCategory
public java.util.Map editCategory(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
editCategory in interface CategoryProcessor
- Throws:
java.lang.Exception
editDeleteCategories
public java.util.Map editDeleteCategories(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
editDeleteCategories in interface CategoryProcessor
- Throws:
java.lang.Exception
deleteCategory
public java.util.Map deleteCategory(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
deleteCategory in interface CategoryProcessor
- Throws:
java.lang.Exception
validateCategory
public java.util.Map validateCategory(Category category)
throws java.lang.Exception
- Throws:
java.lang.Exception
sortCategoriesByName
public java.util.Map sortCategoriesByName(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
sortCategoriesByName in interface CategoryProcessor
- Throws:
java.lang.Exception
loadAllCategoriesSortedByName
public java.util.Collection loadAllCategoriesSortedByName(boolean isContentPage)
throws java.lang.Exception
- Throws:
java.lang.Exception
loadSubcategoriesSortedByName
public java.util.Collection loadSubcategoriesSortedByName(boolean isContentPage,
int parentCategory)
throws java.lang.Exception
- Throws:
java.lang.Exception
sortCategoriesByCode
public java.util.Map sortCategoriesByCode(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
sortCategoriesByCode in interface CategoryProcessor
- Throws:
java.lang.Exception
loadAllCategoriesSortedByCode
public java.util.Collection loadAllCategoriesSortedByCode(boolean isContentPage)
throws java.lang.Exception
- Throws:
java.lang.Exception
loadSubcategoriesSortedByCode
public java.util.Collection loadSubcategoriesSortedByCode(boolean isContentPage,
int parentCategory)
throws java.lang.Exception
- Throws:
java.lang.Exception
loadSettings
public java.util.Collection loadSettings(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
loadSettings in interface CategoryProcessor
- Throws:
java.lang.Exception
processSettings
public java.util.Collection processSettings(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
processSettings in interface CategoryProcessor
- Throws:
java.lang.Exception
loadMaxCategoryID
public int loadMaxCategoryID()
throws java.lang.Exception
- Specified by:
loadMaxCategoryID in interface CategoryProcessor
- Throws:
java.lang.Exception
loadCategoriesForIndexing
public java.util.Collection loadCategoriesForIndexing(int firstCategoryID,
int lastCategoryID)
throws java.lang.Exception
- Specified by:
loadCategoriesForIndexing in interface CategoryProcessor
- Throws:
java.lang.Exception
Copyright © SoftSlate, LLC 20032010