Class BasicCustomerAddressProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.customer.BasicCustomerAddressProcessor
- All Implemented Interfaces:
BusinessObject,BusinessProcessor,CustomerAddressProcessor
public class BasicCustomerAddressProcessor
extends BaseBusinessProcessor
implements CustomerAddressProcessor
Processes business logic having to do with a customer's delivery address.
Created in the Struts layer in response to requests for viewing, editing,
adding, and deleting delivery addresses.
BasicCustomerAddressProcessor is the default implementation of
the CustomerAddressProcessor interface for the application.
- Author:
- David Tobey
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAddressBookAddress(Map parameters) addAddressBookAddress(Map parameters, boolean updateDatabase) addCustomerAddress(Map parameters) deleteAddressBookAddress(Map parameters) voiddeleteCustomerAddress(Map parameters) describeDeliveryOrBillingForAddressBook(Map parameters, String type, boolean removeType) Takes parameters (usually describe from an address form) and returns only those starting with billing or shipping.editCustomerAddress(Map parameters) editDeleteCustomerAddresses(Map parameters) findCustomerAddress(Collection<CustomerAddress> customerAddresses, int customerAddressID) findMatchingAddressBookEntry(CustomerAddress customerAddress) loadCustomerAddressesAndCount(Map parameters) loadCustomerAddressFromID(Map parameters) updateAddressBookAddress(Map parameters) 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, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initializeMethods 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
-
BasicCustomerAddressProcessor
public BasicCustomerAddressProcessor()
-
-
Method Details
-
loadCustomerAddressesAndCount
- Specified by:
loadCustomerAddressesAndCountin interfaceCustomerAddressProcessor- Throws:
Exception
-
addCustomerAddress
- Specified by:
addCustomerAddressin interfaceCustomerAddressProcessor- Throws:
Exception
-
loadCustomerAddressFromID
- Specified by:
loadCustomerAddressFromIDin interfaceCustomerAddressProcessor- Throws:
Exception
-
editCustomerAddress
- Specified by:
editCustomerAddressin interfaceCustomerAddressProcessor- Throws:
Exception
-
editDeleteCustomerAddresses
- Specified by:
editDeleteCustomerAddressesin interfaceCustomerAddressProcessor- Throws:
Exception
-
deleteCustomerAddress
- Specified by:
deleteCustomerAddressin interfaceCustomerAddressProcessor- Throws:
Exception
-
findMatchingAddressBookEntry
public CustomerAddress findMatchingAddressBookEntry(CustomerAddress customerAddress) throws Exception - Throws:
Exception
-
addAddressBookAddress
- Specified by:
addAddressBookAddressin interfaceCustomerAddressProcessor- Throws:
Exception
-
addAddressBookAddress
- Specified by:
addAddressBookAddressin interfaceCustomerAddressProcessor- Throws:
Exception
-
deleteAddressBookAddress
- Specified by:
deleteAddressBookAddressin interfaceCustomerAddressProcessor- Throws:
Exception
-
updateAddressBookAddress
- Specified by:
updateAddressBookAddressin interfaceCustomerAddressProcessor- Throws:
Exception
-
findCustomerAddress
public CustomerAddress findCustomerAddress(Collection<CustomerAddress> customerAddresses, int customerAddressID) - Specified by:
findCustomerAddressin interfaceCustomerAddressProcessor
-
describeDeliveryOrBillingForAddressBook
Description copied from interface:CustomerAddressProcessorTakes parameters (usually describe from an address form) and returns only those starting with billing or shipping.- Specified by:
describeDeliveryOrBillingForAddressBookin interfaceCustomerAddressProcessor- Returns:
-