Class WikiCacheService
- 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 WikiCacheService
extends fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,Object>
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCurrentRevisionCacheKey(int nEntityId) Gets the cache key for the current revision of an entitygetName()getRevisionCacheKey(int nIdRevision) Gets the cache key for a revisiongetWikiItemByCodeCacheKey(String strCode) Gets the cache key for a wiki item by codegetWikiItemCacheKey(int nId) Gets the cache key for a wiki item by IDgetWikiItemListByParentCacheKey(int nIdParent) Gets the cache key for wiki items by parentGets the cache key for wiki items by typevoidinit()voidbooleanMethods 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, unwrapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.portal.service.cache.CacheableService
getMaxElements, getMemorySize, getTimeToLiveMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
init
@PostConstruct public void init() -
getName
-
put
-
get
-
remove
-
getWikiItemCacheKey
Gets the cache key for a wiki item by ID- Parameters:
nId- the item ID- Returns:
- the cache key
-
getWikiItemByCodeCacheKey
Gets the cache key for a wiki item by code- Parameters:
strCode- the item code- Returns:
- the cache key
-
getWikiItemListByTypeCacheKey
Gets the cache key for wiki items by type- Parameters:
type- the wiki item type- Returns:
- the cache key
-
getWikiItemListByParentCacheKey
Gets the cache key for wiki items by parent- Parameters:
nIdParent- the parent ID- Returns:
- the cache key
-
getRevisionCacheKey
Gets the cache key for a revision- Parameters:
nIdRevision- the revision ID- Returns:
- the cache key
-
getCurrentRevisionCacheKey
Gets the cache key for the current revision of an entity- Parameters:
nEntityId- the entity ID- Returns:
- the cache key
-