|
||||||||||
| 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()
|
String |
getSalt()
Deprecated. use getSaltSource() instead |
Object |
getSalt(Customer customer)
Gets the salt object for the current customer. |
org.springframework.security.authentication.dao.SaltSource |
getSaltSource()
Returns the SaltSource used with the blPasswordEncoder to encrypt the user password. |
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)
|
void |
setSalt(String salt)
Deprecated. use setSaltSource(SaltSource) instead |
void |
setSaltSource(org.springframework.security.authentication.dao.SaltSource saltSource)
Sets the SaltSource used with blPasswordencoder to encrypt the user password. |
| 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()
@Deprecated String getSalt()
getSaltSource() instead
@Deprecated void setSalt(String salt)
setSaltSource(SaltSource) instead
org.springframework.security.authentication.dao.SaltSource getSaltSource()
SaltSource used with the blPasswordEncoder to encrypt the user password. Usually configured in
applicationContext-security.xml. This is not a required property and will return null if not configured
void setSaltSource(org.springframework.security.authentication.dao.SaltSource saltSource)
SaltSource used with blPasswordencoder to encrypt the user password. Usually configured within
applicationContext-security.xml
saltSource - Object getSalt(Customer customer)
getSaltSource(). If there is
not a SaltSource configured (getSaltSource() returns null) then this also returns null.
customer -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||