Class NewsLetterApp

  • All Implemented Interfaces:
    fr.paris.lutece.portal.web.xpages.XPageApplication, java.io.Serializable

    public class NewsLetterApp
    extends java.lang.Object
    implements fr.paris.lutece.portal.web.xpages.XPageApplication
    This XPage handles the newsletter subscription, and the newsletter archives.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NewsLetterApp()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doConfirmSubscribe​(javax.servlet.http.HttpServletRequest request)
      Confirm a subscribtion
      void doSubscription​(javax.servlet.http.HttpServletRequest request)
      Performs the subscription process
      void doUnSubscribe​(javax.servlet.http.HttpServletRequest request)
      Performs unsubscription process
      fr.paris.lutece.portal.web.xpages.XPage getPage​(javax.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.
      java.lang.String getShowArchivePage​(javax.servlet.http.HttpServletRequest request)
      Returns the Newsletter archive XPage content depending on the request parameters and the current mode.
      void init​(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      • Methods inherited from class java.lang.Object

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

      • NewsLetterApp

        public NewsLetterApp()
    • Method Detail

      • init

        public void init​(javax.servlet.http.HttpServletRequest request,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Parameters:
        request - The HTTP request
        plugin - The plugin
      • getPage

        public fr.paris.lutece.portal.web.xpages.XPage getPage​(javax.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 java.lang.String getShowArchivePage​(javax.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​(javax.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​(javax.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​(javax.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