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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAddressBookAddress
(Map parameters) addAddressBookAddress
(Map parameters, boolean updateDatabase) addCustomerAddress
(Map parameters) deleteAddressBookAddress
(Map parameters) void
deleteCustomerAddress
(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, 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
-
BasicCustomerAddressProcessor
public BasicCustomerAddressProcessor()
-
-
Method Details
-
loadCustomerAddressesAndCount
- Specified by:
loadCustomerAddressesAndCount
in interfaceCustomerAddressProcessor
- Throws:
Exception
-
addCustomerAddress
- Specified by:
addCustomerAddress
in interfaceCustomerAddressProcessor
- Throws:
Exception
-
loadCustomerAddressFromID
- Specified by:
loadCustomerAddressFromID
in interfaceCustomerAddressProcessor
- Throws:
Exception
-
editCustomerAddress
- Specified by:
editCustomerAddress
in interfaceCustomerAddressProcessor
- Throws:
Exception
-
editDeleteCustomerAddresses
- Specified by:
editDeleteCustomerAddresses
in interfaceCustomerAddressProcessor
- Throws:
Exception
-
deleteCustomerAddress
- Specified by:
deleteCustomerAddress
in interfaceCustomerAddressProcessor
- Throws:
Exception
-
findMatchingAddressBookEntry
public CustomerAddress findMatchingAddressBookEntry(CustomerAddress customerAddress) throws Exception - Throws:
Exception
-
addAddressBookAddress
- Specified by:
addAddressBookAddress
in interfaceCustomerAddressProcessor
- Throws:
Exception
-
addAddressBookAddress
- Specified by:
addAddressBookAddress
in interfaceCustomerAddressProcessor
- Throws:
Exception
-
deleteAddressBookAddress
- Specified by:
deleteAddressBookAddress
in interfaceCustomerAddressProcessor
- Throws:
Exception
-
updateAddressBookAddress
- Specified by:
updateAddressBookAddress
in interfaceCustomerAddressProcessor
- Throws:
Exception
-
findCustomerAddress
public CustomerAddress findCustomerAddress(Collection<CustomerAddress> customerAddresses, int customerAddressID) - Specified by:
findCustomerAddress
in interfaceCustomerAddressProcessor
-
describeDeliveryOrBillingForAddressBook
Description copied from interface:CustomerAddressProcessor
Takes parameters (usually describe from an address form) and returns only those starting with billing or shipping.- Specified by:
describeDeliveryOrBillingForAddressBook
in interfaceCustomerAddressProcessor
- Returns:
-