public class FormApp extends Object implements fr.paris.lutece.portal.web.xpages.XPageApplication
Modifier and Type | Field and Description |
---|---|
static String |
PARAMETER_ID_FORM
Parameter 'id_form'
|
Constructor and Description |
---|
FormApp() |
Modifier and Type | Method and Description |
---|---|
static String |
doCleanFormAnswers(javax.servlet.http.HttpServletRequest request)
Do clean responses of a form
|
List<fr.paris.lutece.plugins.genericattributes.business.GenericAttributeError> |
doInsertResponseInFormSubmit(javax.servlet.http.HttpServletRequest request,
FormSubmit formSubmit,
boolean bReturnErrors,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert response in the form submit
|
void |
doPerformFormSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session,
FormSubmit formSubmit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
perform the form submit in database
|
fr.paris.lutece.portal.web.xpages.XPage |
getPage(javax.servlet.http.HttpServletRequest request,
int nMode,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the Form XPage result content depending on the request parameters
and the current mode.
|
public static final String PARAMETER_ID_FORM
public fr.paris.lutece.portal.web.xpages.XPage getPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.portal.service.message.SiteMessageException, fr.paris.lutece.portal.service.security.UserNotSignedException
getPage
in interface fr.paris.lutece.portal.web.xpages.XPageApplication
request
- The HTTP request.nMode
- The current mode.plugin
- The Pluginfr.paris.lutece.portal.service.message.SiteMessageException
- the SiteMessageExceptionfr.paris.lutece.portal.service.security.UserNotSignedException
- If the user has not signed and the form
has a entry of type MyLutece user.public List<fr.paris.lutece.plugins.genericattributes.business.GenericAttributeError> doInsertResponseInFormSubmit(javax.servlet.http.HttpServletRequest request, FormSubmit formSubmit, boolean bReturnErrors, fr.paris.lutece.portal.service.plugin.Plugin plugin)
request
- request The HTTP requestformSubmit
- Form SubmitbReturnErrors
- true if errors must be returnedplugin
- the Pluginpublic void doPerformFormSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session, FormSubmit formSubmit, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.portal.service.message.SiteMessageException
request
- The HTTP requestsession
- the http sessionformSubmit
- Form Submitplugin
- the Pluginfr.paris.lutece.portal.service.message.SiteMessageException
- SiteMessageExceptionpublic static String doCleanFormAnswers(javax.servlet.http.HttpServletRequest request)
request
- The requestCopyright © 2016 City of Paris. All rights reserved.