interface RegistrationCodeStrategy
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract java.lang.Object |
createUser(RegisterCommand command) |
|
abstract void |
deleteRegistrationCode(RegistrationCode registrationCode) |
|
abstract java.lang.Object |
finishRegistration(RegistrationCode registrationCode)Called when the user clicks the link in the registration email. |
|
abstract RegistrationCode |
register(java.lang.Object user, java.lang.String password) |
|
abstract java.lang.Object |
resetPassword(ResetPasswordCommand command, RegistrationCode registrationCode)If the user is found by the username in the RegistrationCode, updates the user's password from the ResetPasswordCommand and authenticates the user. |
|
abstract RegistrationCode |
sendForgotPasswordMail(java.lang.String username)Sends a forgot-password email. |
|
abstract RegistrationCode |
sendForgotPasswordMail(java.lang.String username, java.lang.String emailAddress, groovy.lang.Closure emailBodyGenerator) |
|
abstract RegistrationCode |
sendForgotPasswordMail(java.lang.String username, java.lang.String emailAddress, java.lang.Boolean sendMail) |
|
abstract RegistrationCode |
sendForgotPasswordMail(java.lang.String username, java.lang.String emailAddress, groovy.lang.Closure emailBodyGenerator, java.lang.Boolean sendMail) |
|
abstract void |
updateRegistrationCode(java.util.Map properties, RegistrationCode registrationCode) |
|
abstract java.lang.Object |
validateForgotPasswordExtraSecurity(java.lang.Object params, java.lang.Object user, java.lang.Object forgotPasswordExtraValidationDomainClassName, java.lang.Object forgotPasswordExtraValidation, java.lang.String validationUserLookUpProperty) |
|
abstract java.lang.Object |
verifyRegistration(java.lang.String token) |
Called when the user clicks the link in the registration email. If the user is found, unlocks the user and assigns roles, deletes the RegistrationCode, and authenticates the user.
registrationCode - the instance created during registrationIf the user is found by the username in the RegistrationCode, updates the user's password from the ResetPasswordCommand and authenticates the user.
command - the commandregistrationCode - the registration code retrieved using the token in the link from the emailSends a forgot-password email. Generates a RegistrationCode that will be checked when the user clicks the link in the email to verify that
username - the supplied usernameemailAddress - the user's email (looked up in the database from the username)emailBodyGenerator - will be passed the RegistrationCode token to build the email link and body