Class NewsLetterRegistrationService
java.lang.Object
fr.paris.lutece.plugins.newsletter.service.NewsLetterRegistrationService
The class responsible for the subscription and unsubscription process
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoConfirmSubscribe(javax.servlet.http.HttpServletRequest request) Get the confirmation page to suscribe a uservoiddoConfirmUnSubscribe(javax.servlet.http.HttpServletRequest request) Performs confirm unsubscription processPerforms 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 SiteMessageFetches the singleton instance
-
Method Details
-
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 Get 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.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
Performs confirm unsubscription process- Returns:
- logs the logs
-