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
 void addCategory(java.util.Map parameters)
           
 void deleteCategory(java.util.Map parameters)
           
 void editCategory(java.util.Map parameters)
           
 void editDeleteCategories(java.util.Map parameters)
           
 java.util.Collection loadAllCategories()
           
 java.util.Collection loadAllCategoriesSortedByName()
           
 java.util.Map loadCategoriesAndCount(java.util.Map parameters)
           
 Category loadCategoryFromID(java.util.Map parameters)
           
 java.util.Collection loadSettings(java.util.Map parameters)
           
 java.util.Collection processSettings(java.util.Map parameters)
           
 java.util.Map sortCategoriesByName(java.util.Map parameters)
           
 
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, 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 void 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 void editCategory(java.util.Map parameters)
                  throws java.lang.Exception
Specified by:
editCategory in interface CategoryProcessor
Throws:
java.lang.Exception

editDeleteCategories

public void editDeleteCategories(java.util.Map parameters)
                          throws java.lang.Exception
Specified by:
editDeleteCategories in interface CategoryProcessor
Throws:
java.lang.Exception

deleteCategory

public void deleteCategory(java.util.Map parameters)
                    throws java.lang.Exception
Specified by:
deleteCategory in interface CategoryProcessor
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

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


Copyright ? SoftSlate, LLC 2003?2005