public final class PortalMenuService extends AbstractCacheableService implements PageEventListener
Modifier and Type | Field and Description |
---|---|
static int |
MENU_INIT |
static int |
MENU_MAIN |
static int |
MODE_ADMIN |
static int |
MODE_NORMAL |
Modifier and Type | Method and Description |
---|---|
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
|
void |
processPageEvent(PageEvent event)
Process a page event
|
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
public static final int MENU_INIT
public static final int MENU_MAIN
public static final int MODE_NORMAL
public static final int MODE_ADMIN
public static PortalMenuService getInstance()
public String getName()
getName
in interface LuteceService
public String getMenuContent(int nCurrentPageId, int nMode, int nPart, javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestnMode
- The selected modenPart
- The part of the menu to buildnCurrentPageId
- The current page IDpublic void processPageEvent(PageEvent event)
PageEventListener
processPageEvent
in interface PageEventListener
event
- The event to processCopyright © 2020 City of Paris. All rights reserved.