org.broadleafcommerce.profile.service
Interface CustomerService
- All Known Implementing Classes:
- CustomerServiceImpl
public interface CustomerService
saveCustomer
Customer saveCustomer(Customer customer)
saveCustomer
Customer saveCustomer(Customer customer,
boolean register)
registerCustomer
Customer registerCustomer(Customer customer,
java.lang.String password,
java.lang.String passwordConfirm)
readCustomerByUsername
Customer readCustomerByUsername(java.lang.String customerName)
readCustomerByEmail
Customer readCustomerByEmail(java.lang.String emailAddress)
changePassword
Customer changePassword(PasswordChange passwordChange)
readCustomerById
Customer readCustomerById(java.lang.Long userId)
createCustomerFromId
Customer createCustomerFromId(java.lang.Long customerId)
- Returns a
Customer by first looking in the database, otherwise creating a new non-persisted Customer
- Parameters:
customerId - the id of the customer to lookup
- Returns:
- either a
Customer from the database if it exists, or a new non-persisted Customer
addPostRegisterListener
void addPostRegisterListener(PostRegistrationObserver postRegisterListeners)
removePostRegisterListener
void removePostRegisterListener(PostRegistrationObserver postRegisterListeners)
Copyright © 2010. All Rights Reserved.