fr.paris.lutece.plugins.newsletter.service
Class NewsLetterRegistrationService

java.lang.Object
  extended by fr.paris.lutece.plugins.newsletter.service.NewsLetterRegistrationService

public class NewsLetterRegistrationService
extends java.lang.Object

The class responsible for the subscription and unsubscription process


Method Summary
 void doConfirmSubscribe(javax.servlet.http.HttpServletRequest request)
           
 void doConfirmUnSubscribe(javax.servlet.http.HttpServletRequest request)
          Performs confirm unsubscription process
 java.lang.String doRemoveOldUnconfirmed()
          Performs confirm unsubscription process
 void doSubscription(javax.servlet.http.HttpServletRequest request)
          Performs the subscription process Throw a SiteMessage
 void doUnSubscribe(javax.servlet.http.HttpServletRequest request)
          Performs unsubscription process Throw a SiteMessage
static NewsLetterRegistrationService getInstance()
          Fetches the singleton instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NewsLetterRegistrationService getInstance()
Fetches the singleton instance

Returns:
The singleton instance

doSubscription

public void doSubscription(javax.servlet.http.HttpServletRequest request)
                    throws fr.paris.lutece.portal.service.message.SiteMessageException
Performs the subscription process Throw a SiteMessage

Parameters:
request - The Http request
Throws:
fr.paris.lutece.portal.service.message.SiteMessageException - The error message thrown to the user

doConfirmSubscribe

public void doConfirmSubscribe(javax.servlet.http.HttpServletRequest request)
                        throws fr.paris.lutece.portal.service.message.SiteMessageException
Parameters:
request -
Throws:
fr.paris.lutece.portal.service.message.SiteMessageException

doUnSubscribe

public void doUnSubscribe(javax.servlet.http.HttpServletRequest request)
                   throws fr.paris.lutece.portal.service.message.SiteMessageException
Performs unsubscription process Throw a SiteMessage

Parameters:
request - The http request
Throws:
fr.paris.lutece.portal.service.message.SiteMessageException - The error message handled by the front office

doConfirmUnSubscribe

public void doConfirmUnSubscribe(javax.servlet.http.HttpServletRequest request)
                          throws fr.paris.lutece.portal.service.message.SiteMessageException
Performs confirm unsubscription process

Parameters:
request - The http request
Throws:
fr.paris.lutece.portal.service.message.SiteMessageException - The error message handled by the front office

doRemoveOldUnconfirmed

public java.lang.String doRemoveOldUnconfirmed()
Performs confirm unsubscription process

Returns:
logs the logs


Copyright © 2010 Mairie de Paris. All Rights Reserved.