fr.paris.lutece.plugins.form.web
Class FormJspBean

java.lang.Object
  extended by fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
      extended by fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
          extended by fr.paris.lutece.plugins.form.web.FormJspBean
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ModifyFormJspBean

public abstract class FormJspBean
extends fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean

This class provides the user interface to manage form features ( manage, create, modify, remove)

See Also:
Serialized Form

Field Summary
protected  int _nDefaultItemsPerPage
          The default numbers of items to display per page for the current user
static String PARAMETER_ACTION_REDIRECT
          Parameter redirect
static String PUBLICATION_MODE_AUTO
          Automatic publication mode
static String RIGHT_MANAGE_FORM
          Right to manage forms
 
Constructor Summary
FormJspBean()
           
 
Method Summary
 String doCopyForm(javax.servlet.http.HttpServletRequest request)
          copy the form whose key is specified in the Http request
 String doDisableAutoForm(javax.servlet.http.HttpServletRequest request)
          Perform disable auto published form
 String doDisableForm(javax.servlet.http.HttpServletRequest request)
          Perform disable form
 String doDownloadFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          write in the http response the value of the response whose identifier is specified in the request if there is no response return a error
 String doEnableAutoForm(javax.servlet.http.HttpServletRequest request)
          Perform enable auto published form
 String doEnableForm(javax.servlet.http.HttpServletRequest request)
          Perform enable form
 String doExportResponseTestForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          write in the http response the export file of all response submit who are save during the test. if there is no response return a error
 String doExportResult(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          write in the http response the export file of all response submit who verify the date filter if there is no response return a error
 void doGenerateGraph(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          write in the http response the statistic graph of all response submit who verify the date filter
 String doManageOutputProcessor(javax.servlet.http.HttpServletRequest request)
          Perform the form modification
 String doModifyEntryParameterDefaultValues(javax.servlet.http.HttpServletRequest request)
          Modify entry parameter default values
 String doModifyExportParameters(javax.servlet.http.HttpServletRequest request)
          Modify form export parameter default values
 String doModifyFormParameterDefaultValues(javax.servlet.http.HttpServletRequest request)
          Modify form parameter default values
 String doModifyMessage(javax.servlet.http.HttpServletRequest request)
          Perform the messages form modification
 String doModifyRecap(javax.servlet.http.HttpServletRequest request)
          Perform the recap form modification
 String doRemoveForm(javax.servlet.http.HttpServletRequest request)
          Perform the form supression
 String doTestForm(javax.servlet.http.HttpServletRequest request)
          if there is no error perform in session the response of the form else return the error
 String getConfirmDisableAutoForm(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of disable auto published form
 String getConfirmDisableForm(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of disable form
 String getConfirmRemoveForm(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of delete form
protected  int getFormId()
          Get the id of the current form
protected  String getJspManageForm(javax.servlet.http.HttpServletRequest request)
          Return the URL of the JSP manage form
static String getJspManageOutputProcessForm(javax.servlet.http.HttpServletRequest request, int nIdForm, String parameterName, String parameterValue)
          return url of the jsp modify form
 String getJspManageValidator(javax.servlet.http.HttpServletRequest request, int nIdForm)
          Gets the URL of the form manage validators JSP
protected  String getJspTestForm(javax.servlet.http.HttpServletRequest request, int nIdForm)
          Return the URL of the JSP test form
 String getManageAdvancedParameters(javax.servlet.http.HttpServletRequest request)
          Returns advanced parameters form
 String getManageForm(javax.servlet.http.HttpServletRequest request)
          Return management Form ( list of form )
 String getManageOutputProcessor(javax.servlet.http.HttpServletRequest request)
          Gets the form modification page
 String getManageValidator(javax.servlet.http.HttpServletRequest request)
          Gets the form manage validators page
 String getModifyMessage(javax.servlet.http.HttpServletRequest request)
          Gets the form messages modification page
 String getModifyRecap(javax.servlet.http.HttpServletRequest request)
          Gets the form recap modification page
 String getResult(javax.servlet.http.HttpServletRequest request)
          Gets the form result page
 String getTestForm(javax.servlet.http.HttpServletRequest request)
          Gets the form test page
protected  void setFormId(int nFormId)
          Set the id of the current form
 
Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, init
 
Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, populate, setFeatureIcon, setPageTitleProperty, validate, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RIGHT_MANAGE_FORM

public static final String RIGHT_MANAGE_FORM
Right to manage forms

See Also:
Constant Field Values

PARAMETER_ACTION_REDIRECT

public static final String PARAMETER_ACTION_REDIRECT
Parameter redirect

See Also:
Constant Field Values

PUBLICATION_MODE_AUTO

public static final String PUBLICATION_MODE_AUTO
Automatic publication mode

See Also:
Constant Field Values

_nDefaultItemsPerPage

protected final int _nDefaultItemsPerPage
The default numbers of items to display per page for the current user

Constructor Detail

FormJspBean

public FormJspBean()
Method Detail

getManageForm

public String getManageForm(javax.servlet.http.HttpServletRequest request)
Return management Form ( list of form )

Parameters:
request - The Http request
Returns:
Html form

getManageAdvancedParameters

public String getManageAdvancedParameters(javax.servlet.http.HttpServletRequest request)
Returns advanced parameters form

Parameters:
request - The Http request
Returns:
Html form

doModifyFormParameterDefaultValues

public String doModifyFormParameterDefaultValues(javax.servlet.http.HttpServletRequest request)
                                          throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Modify form parameter default values

Parameters:
request - HttpServletRequest
Returns:
JSP return
Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to access this feature

doModifyEntryParameterDefaultValues

public String doModifyEntryParameterDefaultValues(javax.servlet.http.HttpServletRequest request)
                                           throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Modify entry parameter default values

Parameters:
request - HttpServletRequest
Returns:
JSP return
Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to access this feature

getConfirmRemoveForm

public String getConfirmRemoveForm(javax.servlet.http.HttpServletRequest request)
Gets the confirmation page of delete form

Parameters:
request - The HTTP request
Returns:
the confirmation page of delete form

doRemoveForm

public String doRemoveForm(javax.servlet.http.HttpServletRequest request)
Perform the form supression

Parameters:
request - The HTTP request
Returns:
The URL to go after performing the action

doCopyForm

public String doCopyForm(javax.servlet.http.HttpServletRequest request)
copy the form whose key is specified in the Http request

Parameters:
request - The HTTP request
Returns:
The URL to go after performing the action

getModifyRecap

public String getModifyRecap(javax.servlet.http.HttpServletRequest request)
Gets the form recap modification page

Parameters:
request - The HTTP request
Returns:
the form recap modification page

doModifyRecap

public String doModifyRecap(javax.servlet.http.HttpServletRequest request)
Perform the recap form modification

Parameters:
request - The HTTP request
Returns:
The URL to go after performing the action

getConfirmDisableForm

public String getConfirmDisableForm(javax.servlet.http.HttpServletRequest request)
Gets the confirmation page of disable form

Parameters:
request - The HTTP request
Returns:
the confirmation page of disable form

getConfirmDisableAutoForm

public String getConfirmDisableAutoForm(javax.servlet.http.HttpServletRequest request)
Gets the confirmation page of disable auto published form

Parameters:
request - The HTTP request
Returns:
the confirmation page of disable form

doDisableForm

public String doDisableForm(javax.servlet.http.HttpServletRequest request)
Perform disable form

Parameters:
request - The HTTP request
Returns:
The URL to go after performing the action

doDisableAutoForm

public String doDisableAutoForm(javax.servlet.http.HttpServletRequest request)
Perform disable auto published form

Parameters:
request - The HTTP request
Returns:
The URL to go after performing the action

doEnableForm

public String doEnableForm(javax.servlet.http.HttpServletRequest request)
Perform enable form

Parameters:
request - The HTTP request
Returns:
The URL to go after performing the action

doEnableAutoForm

public String doEnableAutoForm(javax.servlet.http.HttpServletRequest request)
Perform enable auto published form

Parameters:
request - The HTTP request
Returns:
The URL to go after performing the action

getJspManageOutputProcessForm

public static String getJspManageOutputProcessForm(javax.servlet.http.HttpServletRequest request,
                                                   int nIdForm,
                                                   String parameterName,
                                                   String parameterValue)
return url of the jsp modify form

Parameters:
request - The HTTP request
nIdForm - the key of form to modify
parameterName - The name of the additional parameter of the url
parameterValue - The value of the additional parameter of the url
Returns:
return url of the jsp modify form

getTestForm

public String getTestForm(javax.servlet.http.HttpServletRequest request)
Gets the form test page

Parameters:
request - the http request
Returns:
the form test page

doTestForm

public String doTestForm(javax.servlet.http.HttpServletRequest request)
if there is no error perform in session the response of the form else return the error

Parameters:
request - the http request
Returns:
The URL to go after performing the action

doExportResponseTestForm

public String doExportResponseTestForm(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response)
write in the http response the export file of all response submit who are save during the test. if there is no response return a error

Parameters:
request - the http request
response - The http response
Returns:
The URL to go after performing the action

getResult

public String getResult(javax.servlet.http.HttpServletRequest request)
Gets the form result page

Parameters:
request - the http request
Returns:
the form test page

doExportResult

public String doExportResult(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
write in the http response the export file of all response submit who verify the date filter if there is no response return a error

Parameters:
request - the http request
response - The http response
Returns:
The URL to go after performing the action

doGenerateGraph

public void doGenerateGraph(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
write in the http response the statistic graph of all response submit who verify the date filter

Parameters:
request - the http request
response - The http response

doDownloadFile

public String doDownloadFile(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
write in the http response the value of the response whose identifier is specified in the request if there is no response return a error

Parameters:
request - the http request
response - The http response
Returns:
The URL to go after performing the action

getManageOutputProcessor

public String getManageOutputProcessor(javax.servlet.http.HttpServletRequest request)
Gets the form modification page

Parameters:
request - The HTTP request
Returns:
The form modification page

doManageOutputProcessor

public String doManageOutputProcessor(javax.servlet.http.HttpServletRequest request)
Perform the form modification

Parameters:
request - The HTTP request
Returns:
The URL to go after performing the action

getModifyMessage

public String getModifyMessage(javax.servlet.http.HttpServletRequest request)
Gets the form messages modification page

Parameters:
request - The HTTP request
Returns:
the form messages modification page

doModifyMessage

public String doModifyMessage(javax.servlet.http.HttpServletRequest request)
Perform the messages form modification

Parameters:
request - The HTTP request
Returns:
The URL to go after performing the action

getManageValidator

public String getManageValidator(javax.servlet.http.HttpServletRequest request)
Gets the form manage validators page

Parameters:
request - The HTTP request
Returns:
The form manage validators page

getJspManageValidator

public String getJspManageValidator(javax.servlet.http.HttpServletRequest request,
                                    int nIdForm)
Gets the URL of the form manage validators JSP

Parameters:
request - The HTTP request
nIdForm - The form identifier
Returns:
The URL of the form manage validators JSP

doModifyExportParameters

public String doModifyExportParameters(javax.servlet.http.HttpServletRequest request)
                                throws fr.paris.lutece.portal.service.admin.AccessDeniedException
Modify form export parameter default values

Parameters:
request - HttpServletRequest
Returns:
JSP return
Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException - If the user is not authorized to acces this feature

getJspManageForm

protected String getJspManageForm(javax.servlet.http.HttpServletRequest request)
Return the URL of the JSP manage form

Parameters:
request - The HTTP request
Returns:
The URL of the JSP manage form

getJspTestForm

protected String getJspTestForm(javax.servlet.http.HttpServletRequest request,
                                int nIdForm)
Return the URL of the JSP test form

Parameters:
request - The HTTP request
nIdForm - The key of form to modify
Returns:
The return URL of the JSP modify form

getFormId

protected int getFormId()
Get the id of the current form

Returns:
The id of the form

setFormId

protected void setFormId(int nFormId)
Set the id of the current form

Parameters:
nFormId - The id of the form


Copyright © 2014 Mairie de Paris. All Rights Reserved.