Class NewsLetterRegistrationService


  • public final class NewsLetterRegistrationService
    extends java.lang.Object
    The class responsible for the subscription and unsubscription process
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doConfirmSubscribe​(javax.servlet.http.HttpServletRequest request)
      Get the confirmation page to suscribe a user
      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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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

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