fr.paris.lutece.plugins.form.service.validator
Interface IValidator

All Known Implementing Classes:
Validator

public interface IValidator

IValidator


Method Summary
 java.lang.String getUI(javax.servlet.http.HttpServletRequest request, int nIdForm)
          Returns the validator interface
 boolean isAssociatedWithForm(int nIdForm)
          Checks if the validator is associated with the form
 void removeAssociationsWithForm(int nIdForm)
          Removes the associations with the form
 void validateForm(javax.servlet.http.HttpServletRequest request, FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Validates the form
 

Method Detail

getUI

java.lang.String getUI(javax.servlet.http.HttpServletRequest request,
                       int nIdForm)
Returns the validator interface

Parameters:
request - HttpServletRequest
nIdForm - the form id
Returns:
the validator interface

isAssociatedWithForm

boolean isAssociatedWithForm(int nIdForm)
Checks if the validator is associated with the form

Parameters:
nIdForm - the form id
Returns:
true if the validator is associated with the form, otherwise false

removeAssociationsWithForm

void removeAssociationsWithForm(int nIdForm)
Removes the associations with the form

Parameters:
nIdForm - the form id

validateForm

void validateForm(javax.servlet.http.HttpServletRequest request,
                  FormSubmit formSubmit,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
                  throws fr.paris.lutece.portal.service.message.SiteMessageException
Validates the form

Parameters:
request - HttpServletRequest
formSubmit - the form submit
plugin - the plugin
Throws:
fr.paris.lutece.portal.service.message.SiteMessageException


Copyright © 2012 Mairie de Paris. All Rights Reserved.