Class InvalidateCacheOnSurveyReInitializedObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.cache.AbstractCacheObserver
org.ametys.web.cache.AbstractSiteCacheObserver
org.ametys.plugins.survey.observation.AbstractSurveyCacheObserver
org.ametys.plugins.survey.observation.InvalidateCacheOnSurveyReInitializedObserver
- All Implemented Interfaces:
Observer,LogEnabled,Prioritizable,Supporter<Event>,Serviceable
Observer for observing survey re-initialization in order to
invalidate cache on front-office.-
Field Summary
Fields inherited from class org.ametys.plugins.survey.observation.AbstractSurveyCacheObserver
_surveyDAOFields inherited from class org.ametys.web.cache.AbstractSiteCacheObserver
_cachePolicy, _repositoryFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SurveygetSurveyFromEvent(Event event) Get the survey from the EventbooleanCheck if an element is supportedMethods inherited from class org.ametys.plugins.survey.observation.AbstractSurveyCacheObserver
_getSite, _internalObserve, serviceMethods inherited from class org.ametys.web.cache.AbstractSiteCacheObserver
observeMethods inherited from class org.ametys.web.cache.AbstractCacheObserver
getPriorityMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
InvalidateCacheOnSurveyReInitializedObserver
-
-
Method Details
-
supports
Description copied from interface:SupporterCheck if an element is supported- Parameters:
event- The element- Returns:
trueif the element is supported,falseotherwise
-
getSurveyFromEvent
Description copied from class:AbstractSurveyCacheObserverGet the survey from the Event- Specified by:
getSurveyFromEventin classAbstractSurveyCacheObserver- Parameters:
event- the event- Returns:
- the survey
-