org.opencms.security
Interface I_CmsValidationHandler

All Known Implementing Classes:
CmsDefaultValidationHandler

public interface I_CmsValidationHandler

Defines general validation methods.

Since:
6.3.0
Version:
$Revision: 1.8 $
Author:
Michael Moossen

Method Summary
 void checkEmail(java.lang.String email)
          Checks if the provided email is a valid email address.
 void checkFirstname(java.lang.String firstname)
          Checks if the provided first name is valid.
 void checkGroupName(java.lang.String groupName)
          Checks if the provided group name is a valid group name.
 void checkLastname(java.lang.String lastname)
          Checks if the provided last name is valid.
 void checkUserName(java.lang.String userName)
          Checks if the provided user name is a valid user name.
 void checkZipCode(java.lang.String zipcode)
          Checks if the provided string is a valid zip code.
 

Method Detail

checkEmail

void checkEmail(java.lang.String email)
                throws CmsIllegalArgumentException
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

void checkFirstname(java.lang.String firstname)
                    throws CmsIllegalArgumentException
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

void checkGroupName(java.lang.String groupName)
                    throws CmsIllegalArgumentException
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

void checkLastname(java.lang.String lastname)
                   throws CmsIllegalArgumentException
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

void checkUserName(java.lang.String userName)
                   throws CmsIllegalArgumentException
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

void checkZipCode(java.lang.String zipcode)
                  throws CmsIllegalArgumentException
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