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()
          Creates a new NewsLetterPage object
 
Method Summary
 java.lang.String confirmUnregistration(javax.servlet.http.HttpServletRequest request)
          Confirm to the subscriber that his request was recorded
 java.lang.String doSubscribeFromPortlet(javax.servlet.http.HttpServletRequest request)
          This method is call by the JSP named DoSubscribePortletNewsletter.jsp
 java.lang.String doSubscription(javax.servlet.http.HttpServletRequest request)
          Process the subscription of the subscriber whose email is stored in the http request
 java.lang.String doUnregistration(javax.servlet.http.HttpServletRequest request)
          Processes the unregistration of a subscriber for a newsletter
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsLetterApp

public NewsLetterApp()
Creates a new NewsLetterPage object

Method Detail

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)
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.

doSubscription

public java.lang.String doSubscription(javax.servlet.http.HttpServletRequest request)
Process the subscription of the subscriber whose email is stored in the http request

Parameters:
request - the http request
Returns:
the jsp url of the

confirmUnregistration

public java.lang.String confirmUnregistration(javax.servlet.http.HttpServletRequest request)
Confirm to the subscriber that his request was recorded

Returns:
the message form

doSubscribeFromPortlet

public java.lang.String doSubscribeFromPortlet(javax.servlet.http.HttpServletRequest request)
This method is call by the JSP named DoSubscribePortletNewsletter.jsp

Parameters:
request - The HTTP request
Returns:
The URL to forward depending of the result of the login.

doUnregistration

public java.lang.String doUnregistration(javax.servlet.http.HttpServletRequest request)
Processes the unregistration of a subscriber for a newsletter

Parameters:
request - The Http request
Returns:
the jsp URL to display the form to confirm unregistration


Copyright © 2007 Mairie de Paris. All Rights Reserved.