Class NewsletterTemplateJspBean

  • All Implemented Interfaces:
    java.io.Serializable

    public class NewsletterTemplateJspBean
    extends fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
    JspBean to manage newsletter templates.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String doCreateNewsletterTemplate​(javax.servlet.http.HttpServletRequest request)
      Processes the creation form of a new newsletter template by recovering the parameters in the http request
      java.lang.String doModifyNewsletterTemplate​(javax.servlet.http.HttpServletRequest request)
      Processes the modification form of a newsletter template by recovering the parameters in the http request
      java.lang.String doModifyNewsletterTemplateFile​(javax.servlet.http.HttpServletRequest request)
      Processes the modification form of a newsletter template modified by hand by recovering the parameters in the http request
      java.lang.String doRemoveNewsLetterTemplate​(javax.servlet.http.HttpServletRequest request)
      Processes the removal form of a newsletter template
      java.lang.String getCreateNewsLetterTemplate​(javax.servlet.http.HttpServletRequest request)
      Builds the newsletter's templates creation page
      java.lang.String getManageTemplates​(javax.servlet.http.HttpServletRequest request)
      Builds the newsletter's templates management page
      java.lang.String getModifyNewsLetterTemplate​(javax.servlet.http.HttpServletRequest request)
      Builds the newsletter's templates modification page
      java.lang.String getModifyNewsLetterTemplateFile​(javax.servlet.http.HttpServletRequest request)
      Builds the newsletter's templates modification page (with the modification of the file content)
      fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
      java.lang.String getRemoveNewsLetterTemplate​(javax.servlet.http.HttpServletRequest request)
      Manages the removal form of a newsletter template whose identifier is in the http request
      • Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean

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

      • RIGHT_NEWSLETTER_TEMPLATE_MANAGEMENT

        public static final java.lang.String RIGHT_NEWSLETTER_TEMPLATE_MANAGEMENT
        The right used for managing newsletter templates
        See Also:
        Constant Field Values
    • Constructor Detail

      • NewsletterTemplateJspBean

        public NewsletterTemplateJspBean()
    • Method Detail

      • getManageTemplates

        public java.lang.String getManageTemplates​(javax.servlet.http.HttpServletRequest request)
        Builds the newsletter's templates management page
        Parameters:
        request - The HTTP request
        Returns:
        the html code for newsletter's templates management page (liste of templates + available actions)
      • getCreateNewsLetterTemplate

        public java.lang.String getCreateNewsLetterTemplate​(javax.servlet.http.HttpServletRequest request)
        Builds the newsletter's templates creation page
        Parameters:
        request - The HTTP request
        Returns:
        the html code for newsletter's templates creation page
      • doCreateNewsletterTemplate

        public java.lang.String doCreateNewsletterTemplate​(javax.servlet.http.HttpServletRequest request)
        Processes the creation form of a new newsletter template by recovering the parameters in the http request
        Parameters:
        request - the http request
        Returns:
        The Jsp URL of the process result
      • getModifyNewsLetterTemplate

        public java.lang.String getModifyNewsLetterTemplate​(javax.servlet.http.HttpServletRequest request)
        Builds the newsletter's templates modification page
        Parameters:
        request - The HTTP request
        Returns:
        the html code for newsletter's templates creation page
      • doModifyNewsletterTemplate

        public java.lang.String doModifyNewsletterTemplate​(javax.servlet.http.HttpServletRequest request)
        Processes the modification form of a newsletter template by recovering the parameters in the http request
        Parameters:
        request - the http request
        Returns:
        The Jsp URL of the process result
      • getModifyNewsLetterTemplateFile

        public java.lang.String getModifyNewsLetterTemplateFile​(javax.servlet.http.HttpServletRequest request)
        Builds the newsletter's templates modification page (with the modification of the file content)
        Parameters:
        request - The HTTP request
        Returns:
        the html code for newsletter's templates creation page
      • doModifyNewsletterTemplateFile

        public java.lang.String doModifyNewsletterTemplateFile​(javax.servlet.http.HttpServletRequest request)
        Processes the modification form of a newsletter template modified by hand by recovering the parameters in the http request
        Parameters:
        request - the http request
        Returns:
        The Jsp URL of the process result
      • getRemoveNewsLetterTemplate

        public java.lang.String getRemoveNewsLetterTemplate​(javax.servlet.http.HttpServletRequest request)
        Manages the removal form of a newsletter template whose identifier is in the http request
        Parameters:
        request - The Http request
        Returns:
        the html code to confirm
      • doRemoveNewsLetterTemplate

        public java.lang.String doRemoveNewsLetterTemplate​(javax.servlet.http.HttpServletRequest request)
        Processes the removal form of a newsletter template
        Parameters:
        request - The Http request
        Returns:
        the jsp URL to display the form to manage newsletter templates
      • getPlugin

        public fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
        Overrides:
        getPlugin in class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean