fr.paris.lutece.plugins.appointment.web
Class AppointmentFormFieldJspBean

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.portal.util.mvc.admin.MVCAdminJspBean
              extended by fr.paris.lutece.plugins.appointment.web.AppointmentFormFieldJspBean
All Implemented Interfaces:
Serializable

@Controller(controllerJsp="ManageAppointmentFormFields.jsp",
            controllerPath="jsp/admin/plugins/appointment/",
            right="APPOINTMENT_FORM_MANAGEMENT")
public class AppointmentFormFieldJspBean
extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean

JspBean to manage appointment form fields

See Also:
Serialized Form

Constructor Summary
AppointmentFormFieldJspBean()
           
 
Method Summary
 String doCreateField(javax.servlet.http.HttpServletRequest request)
          Perform creation field
 String doModifyField(javax.servlet.http.HttpServletRequest request)
          Perform modification field
 String doModifyFieldWithConditionalQuestions(javax.servlet.http.HttpServletRequest request)
          Perform modification field
 String doMoveField(javax.servlet.http.HttpServletRequest request, boolean bMoveUp)
          Move a field up or down
 String doMoveFieldDown(javax.servlet.http.HttpServletRequest request)
          Move a field up
 String doMoveFieldUp(javax.servlet.http.HttpServletRequest request)
          Move a field up
 String doRemoveField(javax.servlet.http.HttpServletRequest request)
          Perform the suppression of a field
 String getConfirmRemoveField(javax.servlet.http.HttpServletRequest request)
          Gets the confirmation page before deleting a field
 String getCreateField(javax.servlet.http.HttpServletRequest request)
          Gets the field creation page
 String getModifyField(javax.servlet.http.HttpServletRequest request)
          Get the page to modify a field without displaying its conditional questions
 String getModifyFieldWithConditionalQuestions(javax.servlet.http.HttpServletRequest request)
          Get the page to modify a field with its conditional questions
static String getUrlModifyField(javax.servlet.http.HttpServletRequest request, int nIdField)
          Get the URL to modify a field.
 
Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
addError, addError, addInfo, addInfo, fillCommons, getActionUrl, getControllerJsp, getControllerPath, getModel, getPage, getPage, getPage, getViewFullUrl, getViewUrl, processController, redirect, redirect, redirect, redirect, redirectView, validateBean
 
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
 

Constructor Detail

AppointmentFormFieldJspBean

public AppointmentFormFieldJspBean()
Method Detail

getCreateField

@View(value="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

@View(value="getModifyField")
public String getModifyField(javax.servlet.http.HttpServletRequest request)
Get the page to modify a field without displaying its conditional questions

Parameters:
request - The request
Returns:
The HTML content to display, or the next URL to redirect to

getModifyFieldWithConditionalQuestions

@View(value="getModifyFieldCC")
public String getModifyFieldWithConditionalQuestions(javax.servlet.http.HttpServletRequest request)
Get the page to modify a field with its conditional questions

Parameters:
request - The request
Returns:
The HTML content to display, or the next URL to redirect to

doCreateField

@Action(value="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

@Action(value="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

doModifyFieldWithConditionalQuestions

@Action(value="doModifyFieldCC")
public String doModifyFieldWithConditionalQuestions(javax.servlet.http.HttpServletRequest request)
Perform modification field

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

getConfirmRemoveField

@View(value="getConfirmRemoveField")
public String getConfirmRemoveField(javax.servlet.http.HttpServletRequest request)
Gets the confirmation page before deleting a field

Parameters:
request - The HTTP request
Returns:
the confirmation page before deleting a field

doRemoveField

@Action(value="doRemoveField")
public String doRemoveField(javax.servlet.http.HttpServletRequest request)
Perform the suppression of a field

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

doMoveFieldUp

@Action(value="doMoveFieldUp")
public String doMoveFieldUp(javax.servlet.http.HttpServletRequest request)
Move a field up

Parameters:
request - The request
Returns:
The next URL to redirect to

doMoveFieldDown

@Action(value="doMoveFieldDown")
public String doMoveFieldDown(javax.servlet.http.HttpServletRequest request)
Move a field up

Parameters:
request - The request
Returns:
The next URL to redirect to

doMoveField

public String doMoveField(javax.servlet.http.HttpServletRequest request,
                          boolean bMoveUp)
Move a field up or down

Parameters:
request - The request
bMoveUp - True to move the field up, false to move it down
Returns:
The next URL to redirect to

getUrlModifyField

public static String getUrlModifyField(javax.servlet.http.HttpServletRequest request,
                                       int nIdField)
Get the URL to modify a field. The field is assumed to allow conditional questions.

Parameters:
request - The request
nIdField - The id of the field
Returns:
The URL of the page to modify the field


Copyright © 2014 Mairie de Paris. All Rights Reserved.