Class NewsLetterRegistrationService
java.lang.Object
fr.paris.lutece.plugins.newsletter.service.NewsLetterRegistrationService
The class responsible for the subscription and unsubscription process
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoConfirmSubscribe(jakarta.servlet.http.HttpServletRequest request) Get the confirmation page to suscribe a uservoiddoConfirmUnSubscribe(jakarta.servlet.http.HttpServletRequest request) Performs confirm unsubscription processPerforms confirm unsubscription processvoiddoSubscription(jakarta.servlet.http.HttpServletRequest request) Performs the subscription process Throw a SiteMessagevoiddoUnSubscribe(jakarta.servlet.http.HttpServletRequest request) Performs unsubscription process Throw a SiteMessage
-
Constructor Details
-
NewsLetterRegistrationService
public NewsLetterRegistrationService()
-
-
Method Details
-
doSubscription
public void doSubscription(jakarta.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(jakarta.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(jakarta.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(jakarta.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
-