fr.paris.lutece.plugins.myportal.web
Class MyPortalApp

java.lang.Object
  extended by fr.paris.lutece.plugins.myportal.web.MyPortalApp
All Implemented Interfaces:
fr.paris.lutece.portal.web.xpages.XPageApplication

public class MyPortalApp
extends java.lang.Object
implements fr.paris.lutece.portal.web.xpages.XPageApplication

This class provides a simple implementation of an XPage


Constructor Summary
MyPortalApp()
           
 
Method Summary
 java.lang.String doAddTab(javax.servlet.http.HttpServletRequest request)
          Process add tab
 java.lang.String doAddWidget(javax.servlet.http.HttpServletRequest request)
          Process add content - add a widget to the page
 java.lang.String doDelTab(javax.servlet.http.HttpServletRequest request)
          Delete a tab
 java.lang.String doEditTab(javax.servlet.http.HttpServletRequest request)
          Edit a tab
 java.lang.String doEditWidget(javax.servlet.http.HttpServletRequest request)
          Edit a widget
 java.lang.String doRemoveWidget(javax.servlet.http.HttpServletRequest request)
          Process delete - remove a widget from the page
 java.lang.String doSavePortalState(javax.servlet.http.HttpServletRequest request)
          Process save portal state
 java.lang.String getBrowseCategories(javax.servlet.http.HttpServletRequest request)
          Get Browse categories popup
 java.lang.String getBrowseCategoriesWidgets(javax.servlet.http.HttpServletRequest request)
          Get Add Widget Content
 java.lang.String getBrowseEssentialWidgets(javax.servlet.http.HttpServletRequest request)
          Get the essential widgets list html
 java.lang.String getBrowseNewWidgets(javax.servlet.http.HttpServletRequest request)
          Get the new widgets list html
 java.lang.String getMyPortalAddTab(javax.servlet.http.HttpServletRequest request)
          Get the content of the page getMyPortalAddTab
 java.lang.String getMyPortalEditTab(javax.servlet.http.HttpServletRequest request)
          Get the content of editing a tab
 java.lang.String getMyPortalEditWidget(javax.servlet.http.HttpServletRequest request)
          Get the content of editing a widget
 java.lang.String getMyPortalNavigation(javax.servlet.http.HttpServletRequest request)
          Get the content of the page MyPortalNavigation
 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 myportal.
 java.lang.String getSearchWidgets(javax.servlet.http.HttpServletRequest request)
          Get the new widgets list html
 java.lang.String getTabs(javax.servlet.http.HttpServletRequest request)
          Get tabs of my portal used by MyPortal.jsp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyPortalApp

public MyPortalApp()
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
Returns the content of the page myportal.

Specified by:
getPage in interface fr.paris.lutece.portal.web.xpages.XPageApplication
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

getMyPortalNavigation

public java.lang.String getMyPortalNavigation(javax.servlet.http.HttpServletRequest request)
Get the content of the page MyPortalNavigation

Parameters:
request - HttpServletRequest
Returns:
the html code

getBrowseCategories

public java.lang.String getBrowseCategories(javax.servlet.http.HttpServletRequest request)
Get Browse categories popup

Parameters:
request - The HTTP request
Returns:
The page

getBrowseCategoriesWidgets

public java.lang.String getBrowseCategoriesWidgets(javax.servlet.http.HttpServletRequest request)
Get Add Widget Content

Parameters:
request - The HTTP request
Returns:
The page

doAddWidget

public java.lang.String doAddWidget(javax.servlet.http.HttpServletRequest request)
Process add content - add a widget to the page

Parameters:
request - The HTTP request
Returns:
the forward url

doEditWidget

public java.lang.String doEditWidget(javax.servlet.http.HttpServletRequest request)
Edit a widget

Parameters:
request - The HTTP request
Returns:
the forward url

doRemoveWidget

public java.lang.String doRemoveWidget(javax.servlet.http.HttpServletRequest request)
Process delete - remove a widget from the page

Parameters:
request - The HTTP request
Returns:
the forward url

doSavePortalState

public java.lang.String doSavePortalState(javax.servlet.http.HttpServletRequest request)
Process save portal state

Parameters:
request - The HTTP request
Returns:
the forward url

getBrowseEssentialWidgets

public java.lang.String getBrowseEssentialWidgets(javax.servlet.http.HttpServletRequest request)
Get the essential widgets list html

Parameters:
request - HttpServletRequest
Returns:
the html code

getBrowseNewWidgets

public java.lang.String getBrowseNewWidgets(javax.servlet.http.HttpServletRequest request)
Get the new widgets list html

Parameters:
request - HttpServletRequest
Returns:
the html code

getSearchWidgets

public java.lang.String getSearchWidgets(javax.servlet.http.HttpServletRequest request)
Get the new widgets list html

Parameters:
request - HttpServletRequest
Returns:
the html code

getMyPortalAddTab

public java.lang.String getMyPortalAddTab(javax.servlet.http.HttpServletRequest request)
Get the content of the page getMyPortalAddTab

Parameters:
request - HttpServletRequest
Returns:
the html code

doAddTab

public java.lang.String doAddTab(javax.servlet.http.HttpServletRequest request)
Process add tab

Parameters:
request - The HTTP request
Returns:
the forward url

getMyPortalEditTab

public java.lang.String getMyPortalEditTab(javax.servlet.http.HttpServletRequest request)
Get the content of editing a tab

Parameters:
request - HttpServletRequest
Returns:
the html code

doEditTab

public java.lang.String doEditTab(javax.servlet.http.HttpServletRequest request)
Edit a tab

Parameters:
request - The HTTP request
Returns:
the forward url

doDelTab

public java.lang.String doDelTab(javax.servlet.http.HttpServletRequest request)
Delete a tab

Parameters:
request - The HTTP request
Returns:
the forward url

getMyPortalEditWidget

public java.lang.String getMyPortalEditWidget(javax.servlet.http.HttpServletRequest request)
Get the content of editing a widget

Parameters:
request - HttpServletRequest
Returns:
the html code

getTabs

public java.lang.String getTabs(javax.servlet.http.HttpServletRequest request)
Get tabs of my portal used by MyPortal.jsp

Parameters:
request - The HTTP request
Returns:
tabs


Copyright © 2011 Mairie de Paris. All Rights Reserved.