Class FormsCacheService
- 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 FormsCacheService
extends fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,Object>
- See Also:
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetControlByControlTargetAndTypeCacheKey(int nIdControlTarget, ControlType controlType) getControlByQuestionAndTypeCacheKey(int nIdQuestion, String strControlType) getControlCacheKey(int nIdControl) getControlGroupCacheKey(int nIdControlGroup) getFormCacheKey(int nIdForm) getFormDisplayCacheKey(int nIdFormDisplay) getFormDisplayListByParentCacheKey(int nIdStep, int nIdParent) getFormMessageByFormCacheKey(int nIdForm) getGroupCacheKey(int nIdGroup) getIdStepByFormKey(int nIdQuestion) getInitialStepCacheKey(int nIdForm) getName()getQuestionCacheKey(int nIdQuestion) getStepCacheKey(int nStepID) getTransitionsListFromStepCacheKey(int nIdStep) getUncompleteQuestionByFormCacheKey(int nIdForm) voidvoidprocessEntryEvent(fr.paris.lutece.plugins.genericattributes.business.EntryEvent event) Process an entry eventvoidPuts a value in the cache.booleanvoidResets the cache.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, invoke, invokeAll, isCacheEnable, isClosed, isPreventGlobalReset, isPreventReset, isRequired, iterator, loadAll, putAll, putIfAbsent, putInCache, registerCacheEntryListener, remove, removeAll, removeAll, removeKey, replace, replace, 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
-
Constructor Details
-
FormsCacheService
public FormsCacheService()
-
-
Method Details
-
initCache
@PostConstruct public void initCache() -
getName
-
getStepCacheKey
-
getInitialStepCacheKey
-
getIdStepByFormKey
-
getFormCacheKey
-
getFormListCacheKey
-
getControlCacheKey
-
getControlByControlTargetAndTypeCacheKey
public String getControlByControlTargetAndTypeCacheKey(int nIdControlTarget, ControlType controlType) -
getControlByQuestionAndTypeCacheKey
-
getQuestionCacheKey
-
getUncompleteQuestionCacheKey
-
getUncompleteQuestionByFormCacheKey
-
getFormDisplayCacheKey
-
getFormDisplayListByParentCacheKey
-
getGroupCacheKey
-
getControlGroupCacheKey
-
getTransitionsListFromStepCacheKey
-
getFormMessageByFormCacheKey
-
put
Puts a value in the cache. A failure of the cache (a value the provider cannot serialize, a closed cache, a provider error) is logged and never reaches the caller: the value is then read from the database again. -
get
-
remove
-
resetCache
public void resetCache()Resets the cache. Within a transaction (form import or copy, which write hundreds of objects), the reset is done once, after the transaction completes: the other requests cannot cache again the data read before the commit, and the cache (shared by every instance under Hazelcast) is not emptied for each written object. -
processEntryEvent
public void processEntryEvent(@Observes fr.paris.lutece.plugins.genericattributes.business.EntryEvent event) Process an entry event- Parameters:
event- The event to process
-