|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.form.service.ValidatorService
public class ValidatorService
ValidatorService
| Method Summary | |
|---|---|
java.util.Collection<IValidator> |
getAllValidators()
Returns all validators |
static ValidatorService |
getInstance()
Returns the unique instance of ValidatorService |
IValidator |
getValidatorByKey(java.lang.String strKey)
Returns the validator which the key is specified in parameter |
void |
register(java.lang.String strKey,
IValidator validator)
Registers a validator |
void |
removeAssociationsWithForm(int nIdForm)
Removes the associations between all validators and the form |
void |
unregister(java.lang.String strKey)
Unregisters a validator |
void |
validateForm(javax.servlet.http.HttpServletRequest request,
FormSubmit formSubmit)
Validates the form using all validators |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ValidatorService getInstance()
public void register(java.lang.String strKey,
IValidator validator)
strKey - the validator keyvalidator - the validatorpublic void unregister(java.lang.String strKey)
strKey - the validator keypublic IValidator getValidatorByKey(java.lang.String strKey)
strKey - the validator key
public java.util.Collection<IValidator> getAllValidators()
public void validateForm(javax.servlet.http.HttpServletRequest request,
FormSubmit formSubmit)
request - HttpServletRequestformSubmit - the form submitpublic void removeAssociationsWithForm(int nIdForm)
nIdForm - the form id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||