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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddoConfirmSubscribe(jakarta.servlet.http.HttpServletRequest request) Confirm a subscribtionvoiddoSubscription(jakarta.servlet.http.HttpServletRequest request) Performs the subscription processvoiddoUnSubscribe(jakarta.servlet.http.HttpServletRequest request) Performs unsubscription processfr.paris.lutece.portal.web.xpages.XPagegetPage(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.voidinit(jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.service.plugin.Plugin plugin) Init method kept for backward compatibility with the XPageApplication contract.
-
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 requestplugin- 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:
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 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
-