Class PathCacheService

java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService
fr.paris.lutece.portal.service.cache.PathCacheService
All Implemented Interfaces:
CacheableService, IPathCacheService, PageEventListener, LuteceService, Cloneable, EventListener, net.sf.ehcache.event.CacheEventListener

public class PathCacheService extends AbstractCacheableService implements IPathCacheService, PageEventListener
XPage path cache service
  • Method Details

    • getName

      public String getName()
      Description copied from interface: LuteceService
      Returns the Service name
      Specified by:
      getName in interface LuteceService
      Returns:
      The name as a String
    • getKey

      public String getKey(String strXPageName, int nMode, javax.servlet.http.HttpServletRequest request)
      Description copied from interface: IPathCacheService
      Constructs a cache key
      Specified by:
      getKey in interface IPathCacheService
      Parameters:
      strXPageName - the XPage name
      nMode - the mode
      request - the request
      Returns:
      the cache key, or null if for instance the cache is not enabled
    • getKey

      public String getKey(String strXPageName, int nMode, String strTitlesUrls, javax.servlet.http.HttpServletRequest request)
      Description copied from interface: IPathCacheService
      Constructs a cache key
      Specified by:
      getKey in interface IPathCacheService
      Parameters:
      strXPageName - the XPage name
      nMode - the mode
      strTitlesUrls - list of links (url and titles)
      request - the request the request
      Returns:
      the cache key, or null if for instance the cache is not enabled
    • getFromCache

      public String getFromCache(String strKey)
      Description copied from class: AbstractCacheableService
      Gets an object from the cache
      Specified by:
      getFromCache in interface IPathCacheService
      Overrides:
      getFromCache in class AbstractCacheableService
      Parameters:
      strKey - The key of the object to retrieve from the cache
      Returns:
      The object from the cache
    • putInCache

      public void putInCache(String strKey, String path)
      Description copied from interface: IPathCacheService
      Put a path in cache
      Specified by:
      putInCache in interface IPathCacheService
      Parameters:
      strKey - the cache key
      path - the path html
    • 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