Class MultiviewFormsJspBean

java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
fr.paris.lutece.plugins.forms.web.admin.AbstractJspBean
fr.paris.lutece.plugins.forms.web.admin.MultiviewFormsJspBean
All Implemented Interfaces:
Serializable

@SessionScoped @Named @Controller(controllerJsp="MultiviewForms.jsp", controllerPath="jsp/admin/plugins/forms/", right="FORMS_MULTIVIEW") public class MultiviewFormsJspBean extends AbstractJspBean
Controller which manage the multiview of responses of all Forms
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    doExportResponses(jakarta.servlet.http.HttpServletRequest request)
    Perform the responses export
    doReorderMultiviewColumns(jakarta.servlet.http.HttpServletRequest request)
    Persists the multiview column order sent by the drag and drop reordering of the response table columns.
    doSaveMultiviewConfig(jakarta.servlet.http.HttpServletRequest request)
    View the multiview config page
    getMultiviewConfig(jakarta.servlet.http.HttpServletRequest request)
    View the multiview config page
    getMultiviewFormsView(jakarta.servlet.http.HttpServletRequest request)
    Return the view with the responses of all the forms

    Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean

    processController

    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, getSecurityTokenService, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MultiviewFormsJspBean

      public MultiviewFormsJspBean()
  • Method Details

    • getMultiviewFormsView

      @View(value="view_multiview_forms", defaultView=true) public String getMultiviewFormsView(jakarta.servlet.http.HttpServletRequest request)
      Return the view with the responses of all the forms
      Parameters:
      request - The request on which to retrieve informations
      Returns:
      the view associated to the responses value of all forms
    • doExportResponses

      @Action("doExportResponses") public String doExportResponses(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Perform the responses export
      Parameters:
      request - The HTTP request
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • getMultiviewConfig

      @View("view_multiview_config") public String getMultiviewConfig(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      View the multiview config page
      Parameters:
      request - The HTTP request
      Returns:
      The multiview config page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • doSaveMultiviewConfig

      @Action("doSaveMultiviewConfig") public String doSaveMultiviewConfig(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      View the multiview config page
      Parameters:
      request - The HTTP request
      Returns:
      The multiview config page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException
    • doReorderMultiviewColumns

      @Action(value="doReorderMultiviewColumns", securityTokenDisabled=true) @ResponseBody public String doReorderMultiviewColumns(jakarta.servlet.http.HttpServletRequest request)
      Persists the multiview column order sent by the drag and drop reordering of the response table columns. Called through AJAX : the request holds one multiview_column_order_<idQuestion> parameter per question backing a reordered column, whose value is the new order of the column. After persisting, the cached column list is rebuilt so the new order is reflected on the next reload of the page.
      Parameters:
      request - The Http request
      Returns:
      a JSON response ( SUCCESS or ERROR )