Class StyleSheetJspBean

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.portal.web.stylesheet.StyleSheetJspBean
All Implemented Interfaces:
Serializable

@RequestScoped @Named @Controller(controllerJsp="ManageStyleSheets.jsp", controllerPath="jsp/admin/style/", right="XMLTRANSFORMER_STYLESHEET_MANAGEMENT", securityTokenEnabled=true) public class StyleSheetJspBean extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
Manages the XSL stylesheets of the styles.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Right to manage the stylesheets
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    doCreateStyleSheet(fr.paris.lutece.portal.service.upload.MultipartItem source, jakarta.servlet.http.HttpServletRequest request)
    Creates a stylesheet from the uploaded XSL file.
    doModifyStyleSheet(fr.paris.lutece.portal.service.upload.MultipartItem source, jakarta.servlet.http.HttpServletRequest request)
    Updates a stylesheet from the uploaded XSL file.
    doRemoveStyleSheet(jakarta.servlet.http.HttpServletRequest request)
    Removes a stylesheet, then resumes the removal of its style when it started there.
    getConfirmRemoveStyleSheet(jakarta.servlet.http.HttpServletRequest request)
    Asks for the confirmation of a stylesheet removal.
    getCreateStyleSheet(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request)
    Displays the creation form.
    getManageStyleSheets(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request)
    Displays the stylesheets, filtered by mode and sorted on request.
    getModifyStyleSheet(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request)
    Displays the modification form.
    fr.paris.lutece.util.ReferenceList
    Builds the labelled list of the styles, as options of the style select.

    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

    • RIGHT_MANAGE_STYLESHEET

      public static final String RIGHT_MANAGE_STYLESHEET
      Right to manage the stylesheets
      See Also:
  • Constructor Details

    • StyleSheetJspBean

      public StyleSheetJspBean()
  • Method Details

    • getManageStyleSheets

      @View(value="manageStyleSheets", defaultView=true) public String getManageStyleSheets(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request)
      Displays the stylesheets, filtered by mode and sorted on request.
      Parameters:
      model - the model
      request - the request
      Returns:
      the page
    • getCreateStyleSheet

      @View("createStyleSheet") public String getCreateStyleSheet(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request)
      Displays the creation form.
      Parameters:
      model - the model
      request - the request
      Returns:
      the page
    • doCreateStyleSheet

      @Action("createStyleSheet") public String doCreateStyleSheet(fr.paris.lutece.portal.service.upload.MultipartItem source, jakarta.servlet.http.HttpServletRequest request)
      Creates a stylesheet from the uploaded XSL file.
      Parameters:
      source - the uploaded XSL file
      request - the request
      Returns:
      the redirection
    • getModifyStyleSheet

      @View("modifyStyleSheet") public String getModifyStyleSheet(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request)
      Displays the modification form.
      Parameters:
      model - the model
      request - the request
      Returns:
      the page
    • doModifyStyleSheet

      @Action("modifyStyleSheet") public String doModifyStyleSheet(fr.paris.lutece.portal.service.upload.MultipartItem source, jakarta.servlet.http.HttpServletRequest request)
      Updates a stylesheet from the uploaded XSL file.
      Parameters:
      source - the uploaded XSL file
      request - the request
      Returns:
      the redirection
    • getConfirmRemoveStyleSheet

      @View(value="confirmRemoveStyleSheet", securityTokenAction="removeStyleSheet") public String getConfirmRemoveStyleSheet(jakarta.servlet.http.HttpServletRequest request)
      Asks for the confirmation of a stylesheet removal. A removal started from the removal of a style carries the style id.
      Parameters:
      request - the request
      Returns:
      the redirection to the confirmation message
    • doRemoveStyleSheet

      @Action("removeStyleSheet") public String doRemoveStyleSheet(jakarta.servlet.http.HttpServletRequest request)
      Removes a stylesheet, then resumes the removal of its style when it started there.
      Parameters:
      request - the request
      Returns:
      the redirection
    • getStyleList

      public fr.paris.lutece.util.ReferenceList getStyleList()
      Builds the labelled list of the styles, as options of the style select.
      Returns:
      the styles