Package org.opencms.security
Interface I_CmsValidationHandler
- All Known Implementing Classes:
CmsDefaultValidationHandler
public interface I_CmsValidationHandler
Defines general validation methods.
- Since:
- 6.3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkEmail
(String email) Checks if the provided email is a valid email address.void
checkFirstname
(String firstname) Checks if the provided first name is valid.void
checkGroupName
(String groupName) Checks if the provided group name is a valid group name.void
checkLastname
(String lastname) Checks if the provided last name is valid.void
checkUserName
(String userName) Checks if the provided user name is a valid user name.void
checkZipCode
(String zipcode) Checks if the provided string is a valid zip code.
-
Method Details
-
checkEmail
Checks if the provided email is a valid email address.- Parameters:
email
- the email address to validate- Throws:
CmsIllegalArgumentException
- if the given email address is not valid
-
checkFirstname
Checks if the provided first name is valid.- Parameters:
firstname
- the first name to validate- Throws:
CmsIllegalArgumentException
- if the given email address is not valid
-
checkGroupName
Checks if the provided group name is a valid group name.- Parameters:
groupName
- the group name to check- Throws:
CmsIllegalArgumentException
- if the given group name is not valid
-
checkLastname
Checks if the provided last name is valid.- Parameters:
lastname
- the last name to validate- Throws:
CmsIllegalArgumentException
- if the given email address is not valid
-
checkUserName
Checks if the provided user name is a valid user name.- Parameters:
userName
- the user name to check- Throws:
CmsIllegalArgumentException
- if the given user name is not valid
-
checkZipCode
Checks if the provided string is a valid zip code.- Parameters:
zipcode
- the zip code to validate- Throws:
CmsIllegalArgumentException
- if the given zip code is not valid
-