Class MainTreeMenuCacheService

java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService
fr.paris.lutece.plugins.menus.service.cache.MainTreeMenuCacheService
All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService, fr.paris.lutece.portal.service.util.LuteceService, Cloneable, net.sf.ehcache.event.CacheEventListener

public final class MainTreeMenuCacheService extends fr.paris.lutece.portal.service.cache.AbstractCacheableService
Get the instance of the cache service
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the instance of the cache service
    Get the cache key for a given main menu
    getMenuTreeCacheKey(int nCurrentPageId)
    Get the cache key for a given menu tree

    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getInstance

      public static MainTreeMenuCacheService getInstance()
      Get the instance of the cache service
      Returns:
      The instance of the service
    • getMainMenuCacheKey

      public String getMainMenuCacheKey()
      Get the cache key for a given main menu
      Returns:
      The cache key for the main
    • getMenuTreeCacheKey

      public String getMenuTreeCacheKey(int nCurrentPageId)
      Get the cache key for a given menu tree
      Parameters:
      nCurrentPageId - The id of the menu tree
      Returns:
      The cache key for the menu tree
    • getName

      public String getName()