Package org.ametys.web.cache
Class InvalidateCacheOnPageMoveObserver
- java.lang.Object
 - 
- org.ametys.runtime.plugin.component.AbstractLogEnabled
 - 
- org.ametys.web.cache.AbstractCacheObserver
 - 
- org.ametys.web.cache.AbstractSiteCacheObserver
 - 
- org.ametys.web.cache.InvalidateCacheOnPageMoveObserver
 
 
 
 
 
- 
- All Implemented Interfaces:
 Observer,LogEnabled,Serviceable
public class InvalidateCacheOnPageMoveObserver extends AbstractSiteCacheObserver
Observerfor observing page move in order to invalidate cache on front-office. 
- 
- 
Field Summary
- 
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 Constructor Description InvalidateCacheOnPageMoveObserver() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Site_getSite(Event event)Retrieves the site needed for accessing the front-office.protected void_internalObserve(Event event, Site site, Session liveSession)Observes the event with access to the target site and live workspace.booleansupports(Event event)Checks if the event is supported.- 
Methods inherited from class org.ametys.web.cache.AbstractSiteCacheObserver
observe, service 
- 
Methods inherited from class org.ametys.web.cache.AbstractCacheObserver
getPriority 
- 
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
InvalidateCacheOnPageMoveObserver
public InvalidateCacheOnPageMoveObserver()
 
 - 
 
- 
Method Detail
- 
supports
public boolean supports(Event event)
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.
 
- 
_getSite
protected Site _getSite(Event event)
Description copied from class:AbstractSiteCacheObserverRetrieves the site needed for accessing the front-office.- Specified by:
 _getSitein classAbstractSiteCacheObserver- Parameters:
 event- the event.- Returns:
 - the site or 
nullif not found. 
 
- 
_internalObserve
protected void _internalObserve(Event event, Site site, Session liveSession) throws Exception
Description copied from class:AbstractSiteCacheObserverObserves the event with access to the target site and live workspace.- Specified by:
 _internalObservein classAbstractSiteCacheObserver- Parameters:
 event- the event.site- the site.liveSession- the session to the workspace live.- Throws:
 Exception- if an error occurs.
 
 - 
 
 -