|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CustomerService
| Method Summary | |
|---|---|
void |
addPostRegisterListener(PostRegistrationObserver postRegisterListeners)
|
Customer |
changePassword(PasswordChange passwordChange)
|
GenericResponse |
checkPasswordResetToken(String token)
Verifies that the passed in token is valid. |
Customer |
createCustomer()
|
Customer |
createCustomerFromId(Long customerId)
Returns a Customer by first looking in the database, otherwise creating a new non-persisted Customer |
Customer |
createNewCustomer()
Returns a non-persisted Customer. |
Long |
findNextCustomerId()
|
List<PasswordUpdatedHandler> |
getPasswordChangedHandlers()
|
List<PasswordUpdatedHandler> |
getPasswordResetHandlers()
|
Customer |
readCustomerByEmail(String emailAddress)
|
Customer |
readCustomerById(Long userId)
|
Customer |
readCustomerByUsername(String customerName)
|
Customer |
registerCustomer(Customer customer,
String password,
String passwordConfirm)
|
void |
removePostRegisterListener(PostRegistrationObserver postRegisterListeners)
|
Customer |
resetPassword(PasswordReset passwordReset)
|
GenericResponse |
resetPasswordUsingToken(String username,
String token,
String password,
String confirmPassword)
Updates the password for the passed in customer only if the passed in token is valid for that customer. |
Customer |
saveCustomer(Customer customer)
|
Customer |
saveCustomer(Customer customer,
boolean register)
|
GenericResponse |
sendForgotPasswordNotification(String userName,
String forgotPasswordUrl)
Generates an access token and then emails the user. |
GenericResponse |
sendForgotUsernameNotification(String emailAddress)
Looks up the corresponding Customer and emails the address on file with the associated username. |
void |
setPasswordChangedHandlers(List<PasswordUpdatedHandler> passwordChangedHandlers)
|
void |
setPasswordResetHandlers(List<PasswordUpdatedHandler> passwordResetHandlers)
|
| Method Detail |
|---|
Customer saveCustomer(Customer customer)
Customer saveCustomer(Customer customer,
boolean register)
Customer registerCustomer(Customer customer,
String password,
String passwordConfirm)
Customer readCustomerByUsername(String customerName)
Customer readCustomerByEmail(String emailAddress)
Customer changePassword(PasswordChange passwordChange)
Customer readCustomerById(Long userId)
Customer createCustomer()
Customer createCustomerFromId(Long customerId)
Customer by first looking in the database, otherwise creating a new non-persisted Customer
customerId - the id of the customer to lookup
Customer from the database if it exists, or a new non-persisted CustomerCustomer createNewCustomer()
Customer. Typically used with registering a new customer.
void addPostRegisterListener(PostRegistrationObserver postRegisterListeners)
void removePostRegisterListener(PostRegistrationObserver postRegisterListeners)
Customer resetPassword(PasswordReset passwordReset)
List<PasswordUpdatedHandler> getPasswordResetHandlers()
void setPasswordResetHandlers(List<PasswordUpdatedHandler> passwordResetHandlers)
List<PasswordUpdatedHandler> getPasswordChangedHandlers()
void setPasswordChangedHandlers(List<PasswordUpdatedHandler> passwordChangedHandlers)
GenericResponse sendForgotUsernameNotification(String emailAddress)
emailAddress -
GenericResponse sendForgotPasswordNotification(String userName,
String forgotPasswordUrl)
userName - - the user to send a reset password email to.forgotPasswordUrl - - Base url to include in the email.
GenericResponse resetPasswordUsingToken(String username,
String token,
String password,
String confirmPassword)
username - Username of the customertoken - Valid reset tokenpassword - new password
GenericResponse checkPasswordResetToken(String token)
token -
Long findNextCustomerId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||