Class InvalidateCacheOnQueryChangesObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.synchronization.AbstractSynchronizeObserver
org.ametys.plugins.externaldata.cache.InvalidateCacheOnQueryChangesObserver
- All Implemented Interfaces:
Observer
,LogEnabled
,Prioritizable
,Supporter<Event>
,Serviceable
Invalidate the site cache and page element cache when
-
Field Summary
Fields inherited from class org.ametys.web.synchronization.AbstractSynchronizeObserver
_liveAccessManager, _repository, _synchronizeComponent
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_internalObserve
(Event event, javax.jcr.Session liveSession) Observes the event with access to the live workspace.void
service
(ServiceManager manager) boolean
Check if an element is supportedMethods inherited from class org.ametys.web.synchronization.AbstractSynchronizeObserver
getPriority, observe
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
InvalidateCacheOnQueryChangesObserver
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractSynchronizeObserver
- Throws:
ServiceException
-
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
-
_internalObserve
protected void _internalObserve(Event event, javax.jcr.Session liveSession) throws javax.jcr.RepositoryException Description copied from class:AbstractSynchronizeObserver
Observes the event with access to the live workspace.- Specified by:
_internalObserve
in classAbstractSynchronizeObserver
- Parameters:
event
- the event.liveSession
- the session to the live workspace.- Throws:
javax.jcr.RepositoryException
- if an error occurs.
-