Class MainTreeMenuCacheService

  • All Implemented Interfaces:
    fr.paris.lutece.portal.service.cache.CacheableService, fr.paris.lutece.portal.service.util.LuteceService, java.lang.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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static MainTreeMenuCacheService getInstance()
      Get the instance of the cache service
      java.lang.String getMainMenuCacheKey()
      Get the cache key for a given main menu
      java.lang.String getMenuTreeCacheKey​(int nCurrentPageId)
      Get the cache key for a given menu tree
      java.lang.String getName()
      • 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 Detail

      • getInstance

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

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

        public java.lang.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 java.lang.String getName()