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
,Prioritizable
,Supporter<Event>
,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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Survey
getSurveyFromEvent
(Event event) Get the survey from the Eventboolean
Check if an element is supportedMethods 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:Supporter
Check if an element is supported- Parameters:
event
- The element- Returns:
true
if the element is supported,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
-