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

public 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
static String PARAMETER_ACTION_REDIRECT
           
static String PUBLICATION_MODE_AUTO
           
static String RIGHT_MANAGE_FORM
           
 
Constructor Summary
FormJspBean()
           
 
Method Summary
 String doCopyEntry(javax.servlet.http.HttpServletRequest request)
          copy the entry whose key is specified in the Http request
 String doCopyForm(javax.servlet.http.HttpServletRequest request)
          copy the form whose key is specified in the Http request
 String doCreateEntry(javax.servlet.http.HttpServletRequest request)
          Perform the entry creation
 String doCreateField(javax.servlet.http.HttpServletRequest request)
          Perform creation field
 String doCreateForm(javax.servlet.http.HttpServletRequest request)
          Perform the form creation
 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.
 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 doInsertRegularExpression(javax.servlet.http.HttpServletRequest request)
          insert association between field and regular expression
 String doManageOutputProcessor(javax.servlet.http.HttpServletRequest request)
          Perform the form modification
 String doModifyEntry(javax.servlet.http.HttpServletRequest request)
          Perform the entry modification
 String doModifyField(javax.servlet.http.HttpServletRequest request)
          Perform modification field
 String doModifyForm(javax.servlet.http.HttpServletRequest request)
          Perform the form modification
 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 doMoveDownEntry(javax.servlet.http.HttpServletRequest request)
          Move down the entry
 String doMoveDownField(javax.servlet.http.HttpServletRequest request)
          Move down the field
 String doMoveEntry(javax.servlet.http.HttpServletRequest request)
          Move the entry in the questions group specified in parameter
 String doMoveOutEntry(javax.servlet.http.HttpServletRequest request)
          Move out the entry
 String doMoveUpEntry(javax.servlet.http.HttpServletRequest request)
          Move up the entry
 String doMoveUpField(javax.servlet.http.HttpServletRequest request)
          Move up the field
 String doRemoveEntry(javax.servlet.http.HttpServletRequest request)
          Perform the entry supression
 String doRemoveField(javax.servlet.http.HttpServletRequest request)
          Perform suppression field
 String doRemoveForm(javax.servlet.http.HttpServletRequest request)
          Perform the form supression
 String doRemoveRegularExpression(javax.servlet.http.HttpServletRequest request)
          Delete association between field and regular expression
 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 getConfirmRemoveEntry(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of delete entry
 String getConfirmRemoveField(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of delete field
 String getConfirmRemoveForm(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of delete form
 String getCreateEntry(javax.servlet.http.HttpServletRequest request)
          Gets the entry creation page
 String getCreateField(javax.servlet.http.HttpServletRequest request)
          Gets the field creation page
 String getCreateForm(javax.servlet.http.HttpServletRequest request)
          Gets the form creation page
static String getJspManageOutputProcessForm(javax.servlet.http.HttpServletRequest request, int nIdForm, String parameterName, String parameterValue)
          return url of the jsp modify 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 getModifyEntry(javax.servlet.http.HttpServletRequest request)
          Gets the entry modification page
 String getModifyField(javax.servlet.http.HttpServletRequest request, boolean bWithConditionalQuestion)
          Gets the field modification page
 String getModifyForm(javax.servlet.http.HttpServletRequest request)
          Gets the form modification 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 getMoveEntry(javax.servlet.http.HttpServletRequest request)
          Gets the list of questions group
 String getResult(javax.servlet.http.HttpServletRequest request)
          Gets the form result page
 String getTestForm(javax.servlet.http.HttpServletRequest request)
          Gets the form test page
 
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, setFeatureGroup, 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
See Also:
Constant Field Values

PARAMETER_ACTION_REDIRECT

public static final String PARAMETER_ACTION_REDIRECT
See Also:
Constant Field Values

PUBLICATION_MODE_AUTO

public static final String PUBLICATION_MODE_AUTO
See Also:
Constant Field Values
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

getCreateForm

public String getCreateForm(javax.servlet.http.HttpServletRequest request)
Gets the form creation page

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

doCreateForm

public String doCreateForm(javax.servlet.http.HttpServletRequest request)
Perform the form creation

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

getModifyForm

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

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

doModifyForm

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

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

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

getCreateEntry

public String getCreateEntry(javax.servlet.http.HttpServletRequest request)
Gets the entry creation page

Parameters:
request - The HTTP request
Returns:
The entry creation page

doCreateEntry

public String doCreateEntry(javax.servlet.http.HttpServletRequest request)
Perform the entry creation

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

getModifyEntry

public String getModifyEntry(javax.servlet.http.HttpServletRequest request)
Gets the entry modification page

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

doModifyEntry

public String doModifyEntry(javax.servlet.http.HttpServletRequest request)
Perform the entry modification

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

getConfirmRemoveEntry

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

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

doRemoveEntry

public String doRemoveEntry(javax.servlet.http.HttpServletRequest request)
Perform the entry supression

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

doCopyEntry

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

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

getMoveEntry

public String getMoveEntry(javax.servlet.http.HttpServletRequest request)
Gets the list of questions group

Parameters:
request - The HTTP request
Returns:
the list of questions group

doMoveEntry

public String doMoveEntry(javax.servlet.http.HttpServletRequest request)
Move the entry in the questions group specified in parameter

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

doMoveUpEntry

public String doMoveUpEntry(javax.servlet.http.HttpServletRequest request)
Move up the entry

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

doMoveDownEntry

public String doMoveDownEntry(javax.servlet.http.HttpServletRequest request)
Move down the entry

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

doMoveOutEntry

public String doMoveOutEntry(javax.servlet.http.HttpServletRequest request)
Move out the entry

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
Returns:
return url of the jsp modify form

getCreateField

public String getCreateField(javax.servlet.http.HttpServletRequest request)
Gets the field creation page

Parameters:
request - The HTTP request
Returns:
the field creation page

getModifyField

public String getModifyField(javax.servlet.http.HttpServletRequest request,
                             boolean bWithConditionalQuestion)
Gets the field modification page

Parameters:
request - The HTTP request
bWithConditionalQuestion - true if the field is associate to conditionals questions
Returns:
the field modification page

doCreateField

public String doCreateField(javax.servlet.http.HttpServletRequest request)
Perform creation field

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

doModifyField

public String doModifyField(javax.servlet.http.HttpServletRequest request)
Perform modification field

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

getConfirmRemoveField

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

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

doRemoveField

public String doRemoveField(javax.servlet.http.HttpServletRequest request)
Perform suppression field

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

doMoveUpField

public String doMoveUpField(javax.servlet.http.HttpServletRequest request)
Move up the field

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

doMoveDownField

public String doMoveDownField(javax.servlet.http.HttpServletRequest request)
Move down the field

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

doRemoveRegularExpression

public String doRemoveRegularExpression(javax.servlet.http.HttpServletRequest request)
Delete association between field and regular expression

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

doInsertRegularExpression

public String doInsertRegularExpression(javax.servlet.http.HttpServletRequest request)
insert association between field and regular expression

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

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


Copyright © 2014 Mairie de Paris. All rights reserved.