com.softslate.commerce.businessobjects.product
Class BasicCategoryProcessor

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
          extended by 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
           
 
Constructor Summary
BasicCategoryProcessor()
           
 
Method Summary
 java.util.Map addCategory(java.util.Map parameters)
           
 java.util.Map deleteCategory(java.util.Map parameters)
           
 java.util.Map editCategory(java.util.Map parameters)
           
 java.util.Map editDeleteCategories(java.util.Map parameters)
           
 java.util.Collection loadAllCategories()
           
 java.util.Collection loadAllCategoriesSortedByCode()
           
 java.util.Collection loadAllCategoriesSortedByName()
           
 java.util.Map loadCategoriesAndCount(java.util.Map parameters)
           
 java.util.Collection loadCategoriesForIndexing(int firstCategoryID, int lastCategoryID)
           
 Category loadCategoryFromID(java.util.Map parameters)
           
 int loadMaxCategoryID()
           
 java.util.Collection loadSettings(java.util.Map parameters)
           
 java.util.Collection processSettings(java.util.Map parameters)
           
 java.util.Map sortCategoriesByCode(java.util.Map parameters)
           
 java.util.Map sortCategoriesByName(java.util.Map parameters)
           
 java.util.Map validateCategory(Category category)
           
 
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
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

BasicCategoryProcessor

public BasicCategoryProcessor()
Method Detail

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()
                                                   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()
                                                   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 2003–2005