Class ContactApp
- java.lang.Object
-
- fr.paris.lutece.portal.util.mvc.xpage.MVCApplication
-
- fr.paris.lutece.plugins.contact.web.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.MVCApplicationThis 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.XPagedoSendMessage(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.XPagegetForm(javax.servlet.http.HttpServletRequest request)Return formfr.paris.lutece.portal.web.xpages.XPagegetLists(javax.servlet.http.HttpServletRequest request)Get listsfr.paris.lutece.portal.web.xpages.XPagegetPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the content of the page
-
-
-
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.UserNotSignedExceptionReturns the content of the page- Specified by:
getPagein interfacefr.paris.lutece.portal.web.xpages.XPageApplication- Overrides:
getPagein classfr.paris.lutece.portal.util.mvc.xpage.MVCApplication- Parameters:
request- The http requestnMode- The current modeplugin- The plugin object- Returns:
- The XPage
- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException- Message displayed if an exception occursfr.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.SiteMessageExceptionReturn form- Parameters:
request- the page requeststrIdContactList- the id of contact liststrSendMessage- 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.SiteMessageExceptionGet 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.SiteMessageExceptionThis 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
-
-