Class LabelJspBean

  • All Implemented Interfaces:
    java.io.Serializable

    @Controller(controllerJsp="ManageLabels.jsp",
                controllerPath="jsp/admin/plugins/sitelabels/",
                right="SITELABELS_MANAGEMENT")
    public class LabelJspBean
    extends ManageSiteLabelsJspBean
    This class provides the user interface to manage Label features ( manage, create, modify, remove )
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LabelJspBean()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String doCreateLabel​(javax.servlet.http.HttpServletRequest request)
      Process the data capture form of a new label
      java.lang.String doModifyLabel​(javax.servlet.http.HttpServletRequest request)
      Process the change form of a label
      java.lang.String doRemoveLabel​(javax.servlet.http.HttpServletRequest request)
      Handles the removal form of a label
      java.lang.String getConfirmRemoveLabel​(javax.servlet.http.HttpServletRequest request)
      Manages the removal form of a label whose identifier is in the http request
      java.lang.String getCreateLabel​(javax.servlet.http.HttpServletRequest request)
      Returns the form to create a label
      java.lang.String getManageLabels​(javax.servlet.http.HttpServletRequest request)
      Get ManageLabels View
      java.lang.String getModifyLabel​(javax.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, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
      • Methods inherited from class java.lang.Object

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

      • LabelJspBean

        public LabelJspBean()
    • Method Detail

      • getManageLabels

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

        @View("createLabel")
        public java.lang.String getCreateLabel​(javax.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 java.lang.String doCreateLabel​(javax.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 java.lang.String getConfirmRemoveLabel​(javax.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 java.lang.String doRemoveLabel​(javax.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 java.lang.String getModifyLabel​(javax.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 java.lang.String doModifyLabel​(javax.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