Interface CustomerAddressProcessor
- All Superinterfaces:
BusinessObject
,BusinessProcessor
- All Known Implementing Classes:
BasicCustomerAddressProcessor
Interface for business logic methods having to do with customer delivery
addresses. Created in the Struts layer in response to requests for viewing,
editing, adding, and deleting delivery addresses.
When the application needs to create an instance that implements
CustomerAddressProcessor
,
BusinessObjectFactory
finds the name of the Java class to instantiate from the
"customerAddressProcessorImplementer" setting in the
appComponents.properties
file.
The default "customerAddressProcessorImplementer" is
CustomerAddressProcessor
.
- Author:
- David Tobey
-
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) loadCustomerAddressesAndCount
(Map parameters) loadCustomerAddressFromID
(Map parameters) updateAddressBookAddress
(Map parameters) 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
-
Method Details
-
loadCustomerAddressesAndCount
- Throws:
Exception
-
addCustomerAddress
- Throws:
Exception
-
loadCustomerAddressFromID
- Throws:
Exception
-
editCustomerAddress
- Throws:
Exception
-
editDeleteCustomerAddresses
- Throws:
Exception
-
deleteCustomerAddress
- Throws:
Exception
-
addAddressBookAddress
- Throws:
Exception
-
addAddressBookAddress
- Throws:
Exception
-
deleteAddressBookAddress
- Throws:
Exception
-
updateAddressBookAddress
- Throws:
Exception
-
findCustomerAddress
CustomerAddress findCustomerAddress(Collection<CustomerAddress> customerAddresses, int customerAddressID) -
describeDeliveryOrBillingForAddressBook
Takes parameters (usually describe from an address form) and returns only those starting with billing or shipping.- Parameters:
parameters
-type
-- Returns:
-