Class NewsLetterApp

java.lang.Object
fr.paris.lutece.plugins.newsletter.web.NewsLetterApp
All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication, Serializable

@SessionScoped @Named("newsletter.xpage.newsletter") public class NewsLetterApp extends Object implements fr.paris.lutece.portal.web.xpages.XPageApplication
This XPage handles the newsletter subscription, and the newsletter archives.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doConfirmSubscribe(jakarta.servlet.http.HttpServletRequest request)
    Confirm a subscribtion
    void
    doSubscription(jakarta.servlet.http.HttpServletRequest request)
    Performs the subscription process
    void
    doUnSubscribe(jakarta.servlet.http.HttpServletRequest request)
    Performs unsubscription process
    fr.paris.lutece.portal.web.xpages.XPage
    getPage(jakarta.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns the Newsletter XPage content depending on the request parameters and the current mode.
    getShowArchivePage(jakarta.servlet.http.HttpServletRequest request)
    Returns the Newsletter archive XPage content depending on the request parameters and the current mode.
    void
    init(jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Init method kept for backward compatibility with the XPageApplication contract.

    Methods inherited from class java.lang.Object

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

    • NewsLetterApp

      public NewsLetterApp()
  • Method Details

    • init

      public void init(jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Init method kept for backward compatibility with the XPageApplication contract.
      Parameters:
      request - The HTTP request
      plugin - The plugin
    • getPage

      public fr.paris.lutece.portal.web.xpages.XPage getPage(jakarta.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.portal.service.message.SiteMessageException
      Returns the Newsletter XPage content depending on the request parameters and the current mode.
      Specified by:
      getPage in interface fr.paris.lutece.portal.web.xpages.XPageApplication
      Parameters:
      request - The HTTP request.
      nMode - The current mode.
      plugin - The Plugin
      Returns:
      The page content.
      Throws:
      fr.paris.lutece.portal.service.message.SiteMessageException - Throws a message interpreted by the front office
    • getShowArchivePage

      public String getShowArchivePage(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.message.SiteMessageException
      Returns the Newsletter archive XPage content depending on the request parameters and the current mode.
      Parameters:
      request - The HTTP request.
      Returns:
      The page content.
      Throws:
      fr.paris.lutece.portal.service.message.SiteMessageException - A site message exception
    • doSubscription

      public void doSubscription(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.message.SiteMessageException
      Performs the subscription process
      Parameters:
      request - The Http request
      Throws:
      fr.paris.lutece.portal.service.message.SiteMessageException - The error message thrown to the user
    • doUnSubscribe

      public void doUnSubscribe(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.message.SiteMessageException
      Performs unsubscription process
      Parameters:
      request - The http request
      Throws:
      fr.paris.lutece.portal.service.message.SiteMessageException - The error message handled by the front office
    • doConfirmSubscribe

      public void doConfirmSubscribe(jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.message.SiteMessageException
      Confirm a subscribtion
      Parameters:
      request - The request
      Throws:
      fr.paris.lutece.portal.service.message.SiteMessageException - A site message exception