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

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)


Field Summary
static java.lang.String PARAMETER_ACTION_REDIRECT
           
static java.lang.String PUBLICATION_MODE_AUTO
           
static java.lang.String RIGHT_MANAGE_FORM
           
 
Constructor Summary
FormJspBean()
           
 
Method Summary
 java.lang.String doCopyEntry(javax.servlet.http.HttpServletRequest request)
          copy the entry whose key is specified in the Http request
 java.lang.String doCopyForm(javax.servlet.http.HttpServletRequest request)
          copy the form whose key is specified in the Http request
 java.lang.String doCreateEntry(javax.servlet.http.HttpServletRequest request)
          Perform the entry creation
 java.lang.String doCreateField(javax.servlet.http.HttpServletRequest request)
          Perform creation field
 java.lang.String doCreateForm(javax.servlet.http.HttpServletRequest request)
          Perform the form creation
 java.lang.String doDisableAutoForm(javax.servlet.http.HttpServletRequest request)
          Perform disable auto published form
 java.lang.String doDisableForm(javax.servlet.http.HttpServletRequest request)
          Perform disable form
 java.lang.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
 java.lang.String doEnableAutoForm(javax.servlet.http.HttpServletRequest request)
          Perform enable auto published form
 java.lang.String doEnableForm(javax.servlet.http.HttpServletRequest request)
          Perform enable form
 java.lang.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.
 java.lang.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
 java.lang.String doInsertRegularExpression(javax.servlet.http.HttpServletRequest request)
          insert association between field and regular expression
 java.lang.String doManageOutputProcessor(javax.servlet.http.HttpServletRequest request)
          Perform the form modification
 java.lang.String doModifyEntry(javax.servlet.http.HttpServletRequest request)
          Perform the entry modification
 java.lang.String doModifyField(javax.servlet.http.HttpServletRequest request)
          Perform modification field
 java.lang.String doModifyForm(javax.servlet.http.HttpServletRequest request)
          Perform the form modification
 java.lang.String doModifyMessage(javax.servlet.http.HttpServletRequest request)
          Perform the messages form modification
 java.lang.String doModifyRecap(javax.servlet.http.HttpServletRequest request)
          Perform the recap form modification
 java.lang.String doMoveDownEntry(javax.servlet.http.HttpServletRequest request)
          Move down the entry
 java.lang.String doMoveDownField(javax.servlet.http.HttpServletRequest request)
          Move down the field
 java.lang.String doMoveEntry(javax.servlet.http.HttpServletRequest request)
          Move the entry in the questions group specified in parameter
 java.lang.String doMoveOutEntry(javax.servlet.http.HttpServletRequest request)
          Move out the entry
 java.lang.String doMoveUpEntry(javax.servlet.http.HttpServletRequest request)
          Move up the entry
 java.lang.String doMoveUpField(javax.servlet.http.HttpServletRequest request)
          Move up the field
 java.lang.String doRemoveEntry(javax.servlet.http.HttpServletRequest request)
          Perform the entry supression
 java.lang.String doRemoveField(javax.servlet.http.HttpServletRequest request)
          Perform suppression field
 java.lang.String doRemoveForm(javax.servlet.http.HttpServletRequest request)
          Perform the form supression
 java.lang.String doRemoveRegularExpression(javax.servlet.http.HttpServletRequest request)
          Delete association between field and regular expression
 java.lang.String doTestForm(javax.servlet.http.HttpServletRequest request)
          if there is no error perform in session the response of the form else return the error
 java.lang.String getConfirmDisableAutoForm(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of disable auto published form
 java.lang.String getConfirmDisableForm(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of disable form
 java.lang.String getConfirmRemoveEntry(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of delete entry
 java.lang.String getConfirmRemoveField(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of delete field
 java.lang.String getConfirmRemoveForm(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page of delete form
 java.lang.String getCreateEntry(javax.servlet.http.HttpServletRequest request)
          Gets the entry creation page
 java.lang.String getCreateField(javax.servlet.http.HttpServletRequest request)
          Gets the field creation page
 java.lang.String getCreateForm(javax.servlet.http.HttpServletRequest request)
          Gets the form creation page
static java.lang.String getJspManageOutputProcessForm(javax.servlet.http.HttpServletRequest request, int nIdForm, java.lang.String parameterName, java.lang.String parameterValue)
          return url of the jsp modify form
 java.lang.String getManageForm(javax.servlet.http.HttpServletRequest request)
          Return management Form ( list of form )
 java.lang.String getManageOutputProcessor(javax.servlet.http.HttpServletRequest request)
          Gets the form modification page
 java.lang.String getModifyEntry(javax.servlet.http.HttpServletRequest request)
          Gets the entry modification page
 java.lang.String getModifyField(javax.servlet.http.HttpServletRequest request, boolean bWithConditionalQuestion)
          Gets the field modification page
 java.lang.String getModifyForm(javax.servlet.http.HttpServletRequest request)
          Gets the form modification page
 java.lang.String getModifyMessage(javax.servlet.http.HttpServletRequest request)
          Gets the form messages modification page
 java.lang.String getModifyRecap(javax.servlet.http.HttpServletRequest request)
          Gets the form recap modification page
 java.lang.String getMoveEntry(javax.servlet.http.HttpServletRequest request)
          Gets the list of questions group
 java.lang.String getResult(javax.servlet.http.HttpServletRequest request)
          Gets the form result page
 java.lang.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, setFeatureIcon, setPageTitleProperty
 
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 java.lang.String RIGHT_MANAGE_FORM
See Also:
Constant Field Values

PARAMETER_ACTION_REDIRECT

public static final java.lang.String PARAMETER_ACTION_REDIRECT
See Also:
Constant Field Values

PUBLICATION_MODE_AUTO

public static final java.lang.String PUBLICATION_MODE_AUTO
See Also:
Constant Field Values
Constructor Detail

FormJspBean

public FormJspBean()
Method Detail

getManageForm

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

Parameters:
request - The Http request
Returns:
Html form

getCreateForm

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

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

doCreateForm

public java.lang.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 java.lang.String getModifyForm(javax.servlet.http.HttpServletRequest request)
Gets the form modification page

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

doModifyForm

public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String getCreateEntry(javax.servlet.http.HttpServletRequest request)
Gets the entry creation page

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

doCreateEntry

public java.lang.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 java.lang.String getModifyEntry(javax.servlet.http.HttpServletRequest request)
Gets the entry modification page

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

doModifyEntry

public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String getJspManageOutputProcessForm(javax.servlet.http.HttpServletRequest request,
                                                             int nIdForm,
                                                             java.lang.String parameterName,
                                                             java.lang.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 java.lang.String getCreateField(javax.servlet.http.HttpServletRequest request)
Gets the field creation page

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

getModifyField

public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String getTestForm(javax.servlet.http.HttpServletRequest request)
Gets the form test page

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

doTestForm

public java.lang.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 java.lang.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 java.lang.String getResult(javax.servlet.http.HttpServletRequest request)
Gets the form result page

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

doExportResult

public java.lang.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 java.lang.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 java.lang.String getManageOutputProcessor(javax.servlet.http.HttpServletRequest request)
Gets the form modification page

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

doManageOutputProcessor

public java.lang.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 java.lang.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 java.lang.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 © 2012 Mairie de Paris. All Rights Reserved.