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,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 EventbooleanChecks if the event is supported.Methods 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:ObserverChecks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event- the event.- Returns:
truefor observing this event,falseotherwise.
-
getSurveyFromEvent
Description copied from class:AbstractSurveyCacheObserverGet the survey from the Event- Specified by:
getSurveyFromEventin classAbstractSurveyCacheObserver- Parameters:
event- the event- Returns:
- the survey
-