Class FriendlyUrlService

java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,Object>
fr.paris.lutece.plugins.seo.service.FriendlyUrlService
All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService<String,Object>, fr.paris.lutece.portal.service.cache.Lutece107Cache<String,Object>, fr.paris.lutece.portal.service.util.LuteceService, Closeable, Serializable, AutoCloseable, Iterable<javax.cache.Cache.Entry<String,Object>>, javax.cache.Cache<String,Object>

@ApplicationScoped public class FriendlyUrlService extends fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,Object>
Friendly Url Service
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface javax.cache.Cache

    javax.cache.Cache.Entry<K extends Object,V extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String key)
     
    Returns the map of Friendly URL
    void
     
    boolean
    Is the URL replace service enabled
    void
    put(String key, Object value)
     
    boolean
     
    void
    setUrlReplaceEnabled(boolean bEnabled)
    Set enabled or disabled the Url Replace Service

    Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService

    clear, close, containsKey, deregisterCacheEntryListener, enableCache, getAll, getAndPut, getAndRemove, getAndReplace, getCache, getCacheManager, getCacheSize, getConfiguration, getFromCache, getInfos, getKeys, initCache, initCache, initCache, invoke, invokeAll, isCacheEnable, isClosed, isPreventGlobalReset, isPreventReset, isRequired, iterator, loadAll, putAll, putIfAbsent, putInCache, registerCacheEntryListener, remove, removeAll, removeAll, removeKey, replace, replace, resetCache, setCache, unwrap

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface fr.paris.lutece.portal.service.cache.CacheableService

    getMaxElements, getMemorySize, getTimeToLive

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • FriendlyUrlService

      public FriendlyUrlService()
  • Method Details

    • init

      @PostConstruct public void init()
    • getName

      public String getName()
    • getFriendlyUrlMap

      public Map<String,String> getFriendlyUrlMap()
      Returns the map of Friendly URL
      Returns:
      The map
    • isUrlReplaceEnabled

      public boolean isUrlReplaceEnabled()
      Is the URL replace service enabled
      Returns:
      True if enabled, otherwise false
    • setUrlReplaceEnabled

      public void setUrlReplaceEnabled(boolean bEnabled)
      Set enabled or disabled the Url Replace Service
      Parameters:
      bEnabled - The service status
    • put

      public void put(String key, Object value)
      Specified by:
      put in interface javax.cache.Cache<String,Object>
      Overrides:
      put in class fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,Object>
    • get

      public Object get(String key)
      Specified by:
      get in interface javax.cache.Cache<String,Object>
      Overrides:
      get in class fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,Object>
    • remove

      public boolean remove(String key)
      Specified by:
      remove in interface javax.cache.Cache<String,Object>
      Overrides:
      remove in class fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,Object>