Class LabelJspBean

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.sitelabels.web.LabelJspBean
All Implemented Interfaces:
Serializable

@RequestScoped @Named @Controller(controllerJsp="ManageLabels.jsp", controllerPath="jsp/admin/plugins/sitelabels/", right="SITELABELS_MANAGEMENT") public class LabelJspBean extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
This class provides the user interface to manage Label features ( manage, create, modify, remove )
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    doCreateLabel(@Valid Label label, fr.paris.lutece.portal.util.mvc.binding.BindingResult bindingResult, jakarta.servlet.http.HttpServletRequest request)
    Process the data capture form of a new label
    doModifyLabel(@Valid Label label, fr.paris.lutece.portal.util.mvc.binding.BindingResult bindingResult, jakarta.servlet.http.HttpServletRequest request)
    Process the change form of a label
    doRemoveLabel(jakarta.servlet.http.HttpServletRequest request)
    Handles the removal form of a label
    getConfirmRemoveLabel(jakarta.servlet.http.HttpServletRequest request)
    Manages the removal form of a label whose identifier is in the http request
    getCreateLabel(jakarta.servlet.http.HttpServletRequest request)
    Returns the form to create a label
    getManageLabels(jakarta.servlet.http.HttpServletRequest request)
    Get ManageLabels View
    getModifyLabel(jakarta.servlet.http.HttpServletRequest request)
    Returns the form to update info about a label

    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
  • Field Details

  • Constructor Details

    • LabelJspBean

      public LabelJspBean()
  • Method Details

    • getManageLabels

      @View(value="manageLabels", defaultView=true) public String getManageLabels(jakarta.servlet.http.HttpServletRequest request)
      Get ManageLabels View
      Parameters:
      request - The HTTP request
      Returns:
      The view
    • getCreateLabel

      @View("createLabel") public String getCreateLabel(jakarta.servlet.http.HttpServletRequest request)
      Returns the form to create a label
      Parameters:
      request - The Http request
      Returns:
      the html code of the label form
    • doCreateLabel

      @Action("createLabel") public String doCreateLabel(@Valid @Valid Label label, fr.paris.lutece.portal.util.mvc.binding.BindingResult bindingResult, jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Process the data capture form of a new label
      Parameters:
      request - The Http Request
      Returns:
      The Jsp URL of the process result
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the CSRF token cannot be validated
    • getConfirmRemoveLabel

      @Action("confirmRemoveLabel") public String getConfirmRemoveLabel(jakarta.servlet.http.HttpServletRequest request)
      Manages the removal form of a label whose identifier is in the http request
      Parameters:
      request - The Http request
      Returns:
      the html code to confirm
    • doRemoveLabel

      @Action("removeLabel") public String doRemoveLabel(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Handles the removal form of a label
      Parameters:
      request - The Http request
      Returns:
      the jsp URL to display the form to manage labels
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the CSRF token cannot be validated
    • getModifyLabel

      @View("modifyLabel") public String getModifyLabel(jakarta.servlet.http.HttpServletRequest request)
      Returns the form to update info about a label
      Parameters:
      request - The Http request
      Returns:
      The HTML form to update info
    • doModifyLabel

      @Action("modifyLabel") public String doModifyLabel(@Valid @Valid Label label, fr.paris.lutece.portal.util.mvc.binding.BindingResult bindingResult, jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Process the change form of a label
      Parameters:
      request - The Http request
      Returns:
      The Jsp URL of the process result
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the CSRF token cannot be validated