Class InvalidateCacheOnSurveyAclUpdated
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.InvalidateCacheOnSurveyAclUpdated
- All Implemented Interfaces:
Observer
,LogEnabled
,Serviceable
Observer
for observing survey alc update in order to invalidate cache on front-office.-
Field Summary
Fields inherited from class org.ametys.plugins.survey.observation.AbstractSurveyCacheObserver
_surveyDAO
Fields inherited from class org.ametys.web.cache.AbstractSiteCacheObserver
_cachePolicy, _repository
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Survey
getSurveyFromEvent
(Event event) Get the survey from the Eventboolean
Checks if the event is supported.Methods inherited from class org.ametys.plugins.survey.observation.AbstractSurveyCacheObserver
_getSite, _internalObserve, service
Methods inherited from class org.ametys.web.cache.AbstractSiteCacheObserver
observe
Methods inherited from class org.ametys.web.cache.AbstractCacheObserver
getPriority
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
InvalidateCacheOnSurveyAclUpdated
public InvalidateCacheOnSurveyAclUpdated()
-
-
Method Details
-
supports
Description copied from interface:Observer
Checks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event
- the event.- Returns:
true
for observing this event,false
otherwise.
-
getSurveyFromEvent
Description copied from class:AbstractSurveyCacheObserver
Get the survey from the Event- Specified by:
getSurveyFromEvent
in classAbstractSurveyCacheObserver
- Parameters:
event
- the event- Returns:
- the survey
-