fr.paris.lutece.plugins.newsletter.web
Class NewsLetterApp

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

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.


Constructor Summary
NewsLetterApp()
           
 
Method Summary
 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
clone, equals, finalize, 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

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


Copyright © 2008 Mairie de Paris. All Rights Reserved.