Class RegistrationValidator
java.lang.Object
de.hybris.platform.acceleratorstorefrontcommons.forms.validation.RegistrationValidator
- All Implemented Interfaces:
org.springframework.validation.Validator
@Component("registrationValidator")
public class RegistrationValidator
extends Object
implements org.springframework.validation.Validator
Validates registration forms.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcomparePasswords(org.springframework.validation.Errors errors, String pwd, String checkPwd) booleanvoidprotected voidvalidateEmail(org.springframework.validation.Errors errors, String email) protected booleanvalidateEmailAddress(String email) protected voidvalidateName(org.springframework.validation.Errors errors, String name, String propertyName, String property) protected voidvalidatePassword(org.springframework.validation.Errors errors, String pwd) protected voidvalidateTermsAndConditions(org.springframework.validation.Errors errors, boolean termsCheck) protected voidvalidateTitleCode(org.springframework.validation.Errors errors, String titleCode)
-
Constructor Details
-
RegistrationValidator
public RegistrationValidator()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.validation.Validator
-
validate
- Specified by:
validatein interfaceorg.springframework.validation.Validator
-
comparePasswords
-
validatePassword
-
validateEmail
-
validateName
-
validateTitleCode
-
validateEmailAddress
-
validateTermsAndConditions
protected void validateTermsAndConditions(org.springframework.validation.Errors errors, boolean termsCheck)
-