Class BasicAttributeProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.product.BasicAttributeProcessor
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,AttributeProcessor
Processes business logic having to do with attributes. Created in the Struts
layer in response to requests for viewing, editing, adding, and deleting
attributes.
BasicAttributeProcessor
is the default implementation of the
AttributeProcessor
interface for the application.
- Author:
- David Tobey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(Map parameters) void
deleteAttribute
(Map parameters) editAttribute
(Map parameters) editDeleteAttributes
(Map parameters) loadAttributeFromCode
(Map parameters) loadAttributeFromID
(Map parameters) loadAttributesAndCount
(Map parameters) int
validateAttribute
(Attribute attribute) 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
-
BasicAttributeProcessor
public BasicAttributeProcessor()
-
-
Method Details
-
loadAllAttributes
- Specified by:
loadAllAttributes
in interfaceAttributeProcessor
- Throws:
Exception
-
loadAttributesAndCount
- Specified by:
loadAttributesAndCount
in interfaceAttributeProcessor
- Throws:
Exception
-
addAttribute
- Specified by:
addAttribute
in interfaceAttributeProcessor
- Throws:
Exception
-
loadAttributeFromID
- Specified by:
loadAttributeFromID
in interfaceAttributeProcessor
- Throws:
Exception
-
loadAttributeFromCode
- Specified by:
loadAttributeFromCode
in interfaceAttributeProcessor
- Throws:
Exception
-
editAttribute
- Specified by:
editAttribute
in interfaceAttributeProcessor
- Throws:
Exception
-
editDeleteAttributes
- Specified by:
editDeleteAttributes
in interfaceAttributeProcessor
- Throws:
Exception
-
deleteAttribute
- Specified by:
deleteAttribute
in interfaceAttributeProcessor
- Throws:
Exception
-
validateAttribute
- Throws:
Exception
-
loadMaxAttributeID
- Specified by:
loadMaxAttributeID
in interfaceAttributeProcessor
- Throws:
Exception
-