Class UsernameValidator
java.lang.Object
org.exoplatform.webui.form.validator.AbstractValidator
org.exoplatform.webui.form.validator.MultipleConditionsValidator
org.exoplatform.webui.form.validator.UsernameValidator
- All Implemented Interfaces:
Serializable,Validator
Validate username whether the value is only alpha lower, digit, dot and underscore with first, last character is alpha lower
or digit and cannot contain consecutive underscore, dot or both.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final intprotected static final intprotected Integerprotected IntegerFields inherited from class org.exoplatform.webui.form.validator.AbstractValidator
exceptionOnMissingMandatory, trimValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvalidate(String value, String label, org.exoplatform.web.application.CompoundApplicationMessage messages, UIFormInput uiInput) Methods inherited from class org.exoplatform.webui.form.validator.MultipleConditionsValidator
getMessageLocalizationKey, isValid, validateMethods inherited from class org.exoplatform.webui.form.validator.AbstractValidator
createMessageException, createMessageException, getLabelFor, getMessageArgs, trimmedValueOrNullIfBypassed
-
Field Details
-
DEFAULT_MIN_LENGTH
protected static final int DEFAULT_MIN_LENGTH- See Also:
-
DEFAULT_MAX_LENGTH
protected static final int DEFAULT_MAX_LENGTH- See Also:
-
min
-
max
-
ALLOWED_SYMBOLS
- See Also:
-
-
Constructor Details
-
UsernameValidator
public UsernameValidator() -
UsernameValidator
-
-
Method Details
-
validate
protected void validate(String value, String label, org.exoplatform.web.application.CompoundApplicationMessage messages, UIFormInput uiInput) - Specified by:
validatein classMultipleConditionsValidator
-