Class ContactApp

  • All Implemented Interfaces:
    fr.paris.lutece.portal.web.xpages.XPageApplication, Serializable

    @Controller(xpageName="contact",
                pageTitleI18nKey="contact.pagePathLabel",
                pagePathI18nKey="subscribe.pageTitle")
    public class ContactApp
    extends fr.paris.lutece.portal.util.mvc.xpage.MVCApplication
    This class manages Contact page.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ContactApp()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      fr.paris.lutece.portal.web.xpages.XPage doSendMessage​(javax.servlet.http.HttpServletRequest request)
      This method tests the parameters stored in the request and send the message if they are corrects.
      fr.paris.lutece.portal.web.xpages.XPage getForm​(javax.servlet.http.HttpServletRequest request)
      Return form
      fr.paris.lutece.portal.web.xpages.XPage getLists​(javax.servlet.http.HttpServletRequest request)
      Get lists
      fr.paris.lutece.portal.web.xpages.XPage getPage​(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the content of the page
    • Constructor Detail

      • ContactApp

        public ContactApp()
    • Method Detail

      • getPage

        public fr.paris.lutece.portal.web.xpages.XPage getPage​(javax.servlet.http.HttpServletRequest request,
                                                               int nMode,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
                                                        throws fr.paris.lutece.portal.service.message.SiteMessageException,
                                                               fr.paris.lutece.portal.service.security.UserNotSignedException
        Returns the content of the page
        Specified by:
        getPage in interface fr.paris.lutece.portal.web.xpages.XPageApplication
        Overrides:
        getPage in class fr.paris.lutece.portal.util.mvc.xpage.MVCApplication
        Parameters:
        request - The http request
        nMode - The current mode
        plugin - The plugin object
        Returns:
        The XPage
        Throws:
        fr.paris.lutece.portal.service.message.SiteMessageException - Message displayed if an exception occurs
        fr.paris.lutece.portal.service.security.UserNotSignedException - if an authentication is required by a view
      • getForm

        @View("viewContactPage")
        public fr.paris.lutece.portal.web.xpages.XPage getForm​(javax.servlet.http.HttpServletRequest request)
                                                        throws fr.paris.lutece.portal.service.message.SiteMessageException
        Return form
        Parameters:
        request - the page request
        strIdContactList - the id of contact list
        strSendMessage - the send message
        Returns:
        the corresponding form
        Throws:
        fr.paris.lutece.portal.service.message.SiteMessageException - occurs during treatment
      • getLists

        @View(value="viewContactLists",
              defaultView=true)
        public fr.paris.lutece.portal.web.xpages.XPage getLists​(javax.servlet.http.HttpServletRequest request)
                                                         throws fr.paris.lutece.portal.service.message.SiteMessageException
        Get lists
        Parameters:
        request - the page request
        Returns:
        the lists
        Throws:
        fr.paris.lutece.portal.service.message.SiteMessageException - occurs during treatment
      • doSendMessage

        @Action("actionSendMessage")
        public fr.paris.lutece.portal.web.xpages.XPage doSendMessage​(javax.servlet.http.HttpServletRequest request)
                                                              throws fr.paris.lutece.portal.service.message.SiteMessageException
        This method tests the parameters stored in the request and send the message if they are corrects. Otherwise, it displays an error message.
        Parameters:
        request - The http request
        Returns:
        The result of the process of the sending message.
        Throws:
        fr.paris.lutece.portal.service.message.SiteMessageException - Message displayed if an exception occures