Class PortalMenuService
java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService
fr.paris.lutece.portal.service.portal.PortalMenuService
- All Implemented Interfaces:
CacheableService,PageEventListener,LuteceService,Cloneable,EventListener,net.sf.ehcache.event.CacheEventListener
This Service build the portal menu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic PortalMenuServiceGet the unique instance of the servicegetMenuContent(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 itgetName()Returns the service namevoidprocessPageEvent(PageEvent event) Process a page eventMethods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getStatistics, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
-
Field Details
-
MENU_INIT
public static final int MENU_INIT- See Also:
-
MENU_MAIN
public static final int MENU_MAIN- See Also:
-
MODE_NORMAL
public static final int MODE_NORMAL- See Also:
-
MODE_ADMIN
public static final int MODE_ADMIN- See Also:
-
-
Method Details
-
getInstance
Get the unique instance of the service- Returns:
- The unique instance
-
getName
Returns the service name- Specified by:
getNamein interfaceLuteceService- 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 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
-
processPageEvent
Description copied from interface:PageEventListenerProcess a page event- Specified by:
processPageEventin interfacePageEventListener- Parameters:
event- The event to process
-