Class NewsLetterRegistrationService
- java.lang.Object
-
- fr.paris.lutece.plugins.newsletter.service.NewsLetterRegistrationService
-
public final class NewsLetterRegistrationService extends java.lang.ObjectThe class responsible for the subscription and unsubscription process
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoConfirmSubscribe(javax.servlet.http.HttpServletRequest request)Get the confirmation page to suscribe a uservoiddoConfirmUnSubscribe(javax.servlet.http.HttpServletRequest request)Performs confirm unsubscription processjava.lang.StringdoRemoveOldUnconfirmed()Performs confirm unsubscription processvoiddoSubscription(javax.servlet.http.HttpServletRequest request)Performs the subscription process Throw a SiteMessagevoiddoUnSubscribe(javax.servlet.http.HttpServletRequest request)Performs unsubscription process Throw a SiteMessagestatic NewsLetterRegistrationServicegetInstance()Fetches the singleton instance
-
-
-
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.SiteMessageExceptionPerforms 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.SiteMessageExceptionGet the confirmation page to suscribe a user- Parameters:
request- The request- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- Site message exception
-
doUnSubscribe
public void doUnSubscribe(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.message.SiteMessageExceptionPerforms 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.SiteMessageExceptionPerforms 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
-
-