public interface UserValidationServiceLocal extends UserValidationService
UserValidationService| Modifier and Type | Method and Description |
|---|---|
void |
addNameValidations(org.cyclos.impl.utils.validation.Property property,
BasicUserDTO dto)
As the CRUD service forces a custom handling of the name property, this needs to be in a separate method
|
void |
addRegistrationValidations(org.cyclos.impl.utils.validation.Validator validator,
BasicUserRegistrationDTO dto,
UserRegistration registration,
Group group)
Add common validations for registering an user or operator
|
void |
addValidations(org.cyclos.impl.utils.validation.Validator validator,
BasicUserDTO dto,
BasicUser user,
UserRegistration registration)
Add common validations for saving the profile of an user or operator.
|
UserRegistrationResult |
buildRegistrationResult(BasicUser user,
java.util.Set<PasswordType> generatedPasswordTypes)
Builds the registration result for the given user.
|
void |
clearValidationKey(BasicUser user)
Removes all user data related to a validation key
|
void |
fillRegistrationData(BasicUserRegistrationData data,
UserRegistration registration,
BasicUser user)
Fills with common data for registering users or operators
|
BasicUser |
getUserForValidationKey(ValidationKeyType type,
java.lang.String validationKey)
Returns the user in the current network with the given validation key
|
boolean |
isNameRequired(BasicUserDTO dto)
Returns whether we should require the full name when saving the given user
|
<BU extends BasicUser> |
preProcessRegistration(BasicUserRegistrationDTO dto,
UserRegistration registration)
Returns a pre-populated user for persisting
|
java.util.Map<PasswordType,java.lang.String> |
processRegistration(BasicUser user,
BasicUserRegistrationDTO registrationDto)
Processes an user registration.
|
boolean |
requiresEmailChangeValidation(BasicUser user)
Returns true if the system requires the user to validate the email upon email modification
|
void |
setEmailChangeValidation(BasicUser user,
java.lang.String originalEmail)
Sets the user validation key for e-mail change confirmation, restores the original e-mail (saving the current
e-mail in new email) and sends
the e-mail
|
void |
setForgotPasswordValidation(BasicUser user)
Sets the user validation key to forgot password and sends the e-mail
|
manuallyValidateEmailChange, manuallyValidateRegistration, resendEmailChangeMail, resendRegistrationValidationMail, validateEmailChange, validateRegistrationvoid addNameValidations(org.cyclos.impl.utils.validation.Property property,
BasicUserDTO dto)
throws FrameworkException
FrameworkExceptionvoid addRegistrationValidations(org.cyclos.impl.utils.validation.Validator validator,
BasicUserRegistrationDTO dto,
UserRegistration registration,
Group group)
throws FrameworkException
FrameworkExceptionvoid addValidations(org.cyclos.impl.utils.validation.Validator validator,
BasicUserDTO dto,
BasicUser user,
UserRegistration registration)
throws FrameworkException
FrameworkExceptionUserRegistrationResult buildRegistrationResult(BasicUser user, java.util.Set<PasswordType> generatedPasswordTypes) throws FrameworkException
user - the already registered usergeneratedPasswordTypes - set of password types for which the passwords were generated.FrameworkExceptionvoid clearValidationKey(BasicUser user) throws FrameworkException
FrameworkExceptionvoid fillRegistrationData(BasicUserRegistrationData data, UserRegistration registration, BasicUser user)
BasicUser getUserForValidationKey(ValidationKeyType type, java.lang.String validationKey) throws FrameworkException
FrameworkExceptionboolean isNameRequired(BasicUserDTO dto) throws FrameworkException
FrameworkException<BU extends BasicUser> BU preProcessRegistration(BasicUserRegistrationDTO dto, UserRegistration registration) throws FrameworkException
FrameworkExceptionjava.util.Map<PasswordType,java.lang.String> processRegistration(BasicUser user, BasicUserRegistrationDTO registrationDto) throws FrameworkException
user - the user to be registered, it must have set the UserRegistrationMap with the generated passwords only if the user doesn't need to validate the e-mail.
Otherwise returns an empty map.FrameworkExceptionboolean requiresEmailChangeValidation(BasicUser user) throws FrameworkException
FrameworkExceptionvoid setEmailChangeValidation(BasicUser user, java.lang.String originalEmail) throws FrameworkException
FrameworkExceptionvoid setForgotPasswordValidation(BasicUser user) throws FrameworkException
FrameworkException