Class StyleSheetJspBean

  • All Implemented Interfaces:
    java.io.Serializable

    public class StyleSheetJspBean
    extends fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
    This class provides the user interface to manage StyleSheet features
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String RIGHT_MANAGE_STYLESHEET
      Right to manage stylesheets
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String doCreateStyleSheet​(javax.servlet.http.HttpServletRequest request)
      Processes the creation form of a new stylesheet by recovering the parameters in the http request
      java.lang.String doModifyStyleSheet​(javax.servlet.http.HttpServletRequest request)
      Processes the updating form of a stylesheet whose new parameters are stored in the http request
      java.lang.String doRemoveStyleSheet​(javax.servlet.http.HttpServletRequest request)
      Processes the deletion of a stylesheet
      java.lang.String getCreateStyleSheet​(javax.servlet.http.HttpServletRequest request)
      Returns the create form of a new stylesheet with the upload field
      java.lang.String getManageStyleSheet​(javax.servlet.http.HttpServletRequest request)
      Displays the stylesheets list
      java.lang.String getModifyStyleSheet​(javax.servlet.http.HttpServletRequest request)
      Returns the form to update a stylesheet whose identifer is stored in the http request
      java.lang.String getRemoveStyleSheet​(javax.servlet.http.HttpServletRequest request)
      Returns the confirm of removing the style whose identifier is in the http request
      fr.paris.lutece.util.ReferenceList getStyleList()
      Return a ReferenceList with id style for code and a concatenation of portal name + portlet type name + style description for name.
      • Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean

        getAdminPage, getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, init, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
      • Methods inherited from class java.lang.Object

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

      • RIGHT_MANAGE_STYLESHEET

        public static final java.lang.String RIGHT_MANAGE_STYLESHEET
        Right to manage stylesheets
        See Also:
        Constant Field Values
    • Constructor Detail

      • StyleSheetJspBean

        public StyleSheetJspBean()
    • Method Detail

      • getManageStyleSheet

        public java.lang.String getManageStyleSheet​(javax.servlet.http.HttpServletRequest request)
        Displays the stylesheets list
        Parameters:
        request - The request
        Returns:
        the html code for displaying the stylesheets list
      • getCreateStyleSheet

        public java.lang.String getCreateStyleSheet​(javax.servlet.http.HttpServletRequest request)
        Returns the create form of a new stylesheet with the upload field
        Parameters:
        request - the http request
        Returns:
        the html code for the create form of a new stylesheet
      • doCreateStyleSheet

        public java.lang.String doCreateStyleSheet​(javax.servlet.http.HttpServletRequest request)
                                            throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Processes the creation form of a new stylesheet by recovering the parameters in the http request
        Parameters:
        request - the http request
        Returns:
        The Jsp URL of the process result
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - if the security token is invalid
      • getModifyStyleSheet

        public java.lang.String getModifyStyleSheet​(javax.servlet.http.HttpServletRequest request)
        Returns the form to update a stylesheet whose identifer is stored in the http request
        Parameters:
        request - The http request
        Returns:
        The html code
      • getStyleList

        public fr.paris.lutece.util.ReferenceList getStyleList()
        Return a ReferenceList with id style for code and a concatenation of portal name + portlet type name + style description for name.
        Returns:
        The ReferenceList
      • doModifyStyleSheet

        public java.lang.String doModifyStyleSheet​(javax.servlet.http.HttpServletRequest request)
                                            throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Processes the updating form of a stylesheet whose new parameters are stored in the http request
        Parameters:
        request - The http request
        Returns:
        The Jsp URL of the process result
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - if the security token is invalid
      • getRemoveStyleSheet

        public java.lang.String getRemoveStyleSheet​(javax.servlet.http.HttpServletRequest request)
        Returns the confirm of removing the style whose identifier is in the http request
        Parameters:
        request - The Http request
        Returns:
        the html code for the remove confirmation page
      • doRemoveStyleSheet

        public java.lang.String doRemoveStyleSheet​(javax.servlet.http.HttpServletRequest request)
                                            throws fr.paris.lutece.portal.service.admin.AccessDeniedException
        Processes the deletion of a stylesheet
        Parameters:
        request - the http request
        Returns:
        The Jsp URL of the process result
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException - if the security token is invalid