fr.paris.lutece.portal.service.portal
Class PortalMenuService

java.lang.Object
  extended by fr.paris.lutece.portal.service.cache.AbstractCacheableService
      extended by fr.paris.lutece.portal.service.portal.PortalMenuService
All Implemented Interfaces:
CacheableService, LuteceService, Cloneable, net.sf.ehcache.event.CacheEventListener

public final class PortalMenuService
extends AbstractCacheableService

This Service build the portal menu


Field Summary
static int MENU_INIT
           
static int MENU_MAIN
           
static int MODE_ADMIN
           
static int MODE_NORMAL
           
 
Method Summary
static PortalMenuService getInstance()
          Get the unique instance of the service
 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
 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, removeKey, resetCache
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

getInstance

public static PortalMenuService getInstance()
Get the unique instance of the service

Returns:
The unique instance

getName

public String getName()
Returns the service name

Returns:
The service name

getMenuContent

public 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 request
nMode - The selected mode
nPart - The part of the menu to build
nCurrentPageId - The current page ID
Returns:
The list of the menus layed out with the stylesheet correpsonding to the mode


Copyright © 2014 Mairie de Paris. All Rights Reserved.