Class NewsLetterApp
- java.lang.Object
-
- fr.paris.lutece.plugins.newsletter.web.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.XPageApplicationThis 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 voiddoConfirmSubscribe(javax.servlet.http.HttpServletRequest request)Confirm a subscribtionvoiddoSubscription(javax.servlet.http.HttpServletRequest request)Performs the subscription processvoiddoUnSubscribe(javax.servlet.http.HttpServletRequest request)Performs unsubscription processfr.paris.lutece.portal.web.xpages.XPagegetPage(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.StringgetShowArchivePage(javax.servlet.http.HttpServletRequest request)Returns the Newsletter archive XPage content depending on the request parameters and the current mode.voidinit(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
-
-
Method Detail
-
init
public void init(javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin)- Parameters:
request- The HTTP requestplugin- 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.SiteMessageExceptionReturns the Newsletter XPage content depending on the request parameters and the current mode.- Specified by:
getPagein interfacefr.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.SiteMessageExceptionReturns 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.SiteMessageExceptionPerforms 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.SiteMessageExceptionPerforms 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.SiteMessageExceptionConfirm a subscribtion- Parameters:
request- The request- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- A site message exception
-
-