fr.paris.lutece.portal.service.portal
Class PortalMenuService
java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService
fr.paris.lutece.portal.service.portal.PortalMenuService
- All Implemented Interfaces:
- CacheableService, LuteceService, java.lang.Cloneable, net.sf.ehcache.event.CacheEventListener
public final class PortalMenuService
- extends AbstractCacheableService
This Service build the portal menu
Method Summary |
static PortalMenuService |
getInstance()
Get the unique instance of the service |
java.lang.String |
getMenuContent(int nCurrentPageId,
int nMode,
int nPart,
javax.servlet.http.HttpServletRequest request)
Returns the menu bar from the cache or builds it if it not stored in it |
java.lang.String |
getName()
Returns the service name |
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService |
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, resetCache |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MENU_INIT
public static final int MENU_INIT
- See Also:
- Constant Field Values
MENU_MAIN
public static final int MENU_MAIN
- See Also:
- Constant Field Values
MODE_NORMAL
public static final int MODE_NORMAL
- See Also:
- Constant Field Values
MODE_ADMIN
public static final int MODE_ADMIN
- See Also:
- Constant Field Values
getInstance
public static PortalMenuService getInstance()
- Get the unique instance of the service
- Returns:
- The unique instance
getName
public java.lang.String getName()
- Returns the service name
- Returns:
- The service name
getMenuContent
public java.lang.String getMenuContent(int nCurrentPageId,
int nMode,
int nPart,
javax.servlet.http.HttpServletRequest request)
- Returns the menu bar from the cache or builds it if it not stored in it
- Parameters:
request
- The HTTP requestnMode
- The selected modenPart
- The part of the menu to buildnCurrentPageId
- The current page ID
- Returns:
- The list of the menus layed out with the stylesheet correpsonding to the mode
Copyright © 2011 Mairie de Paris. All Rights Reserved.