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,java.lang.Cloneable,java.util.EventListener,net.sf.ehcache.event.CacheEventListener
public final class PortalMenuService extends AbstractCacheableService implements PageEventListener
This Service build the portal menu
-
-
Field Summary
Fields Modifier and Type Field Description static intMENU_INITstatic intMENU_MAINstatic intMODE_ADMINstatic intMODE_NORMAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PortalMenuServicegetInstance()Get the unique instance of the servicejava.lang.StringgetMenuContent(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 itjava.lang.StringgetName()Returns the service namevoidprocessPageEvent(PageEvent event)Process a page event-
Methods 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 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 java.lang.String getName()
Returns the service name- Specified by:
getNamein interfaceLuteceService- 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
-
processPageEvent
public void processPageEvent(PageEvent event)
Description copied from interface:PageEventListenerProcess a page event- Specified by:
processPageEventin interfacePageEventListener- Parameters:
event- The event to process
-
-