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

public final class PortalMenuService extends AbstractCacheableService implements PageEventListener
This Service build the portal menu
  • Field Details

  • Method Details

    • getInstance

      public static PortalMenuService getInstance()
      Get the unique instance of the service
      Returns:
      The unique instance
    • getName

      public String getName()
      Returns the service name
      Specified by:
      getName in interface LuteceService
      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
    • processPageEvent

      public void processPageEvent(PageEvent event)
      Description copied from interface: PageEventListener
      Process a page event
      Specified by:
      processPageEvent in interface PageEventListener
      Parameters:
      event - The event to process