Class NewsLetterRegistrationService

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

@ApplicationScoped public class NewsLetterRegistrationService extends Object
The class responsible for the subscription and unsubscription process
  • 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

      public String doRemoveOldUnconfirmed()
      Performs confirm unsubscription process
      Returns:
      logs the logs