Package org.ametys.web.cache.zoneitem
Class InvalidateZoneItemCacheOnContentModificationObserver
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.web.cache.zoneitem.AbstractZoneItemCacheObserver
-
- org.ametys.web.cache.zoneitem.AbstractZoneItemCacheOnContentObserver
-
- org.ametys.web.cache.zoneitem.InvalidateZoneItemCacheOnContentModificationObserver
-
- All Implemented Interfaces:
Observer,LogEnabled,Serviceable
public class InvalidateZoneItemCacheOnContentModificationObserver extends AbstractZoneItemCacheOnContentObserver
Invalidates the ZoneItem containing a Content which has just been modified.
-
-
Field Summary
-
Fields inherited from class org.ametys.web.cache.zoneitem.AbstractZoneItemCacheOnContentObserver
_resolver
-
Fields inherited from class org.ametys.web.cache.zoneitem.AbstractZoneItemCacheObserver
_zoneItemCache
-
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description InvalidateZoneItemCacheOnContentModificationObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetWorkspace()Get the target JCR workspace on which the zone item cache will be deleted.booleansupports(Event event)Checks if the event is supported.-
Methods inherited from class org.ametys.web.cache.zoneitem.AbstractZoneItemCacheOnContentObserver
observe, service
-
Methods inherited from class org.ametys.web.cache.zoneitem.AbstractZoneItemCacheObserver
getPriority
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
InvalidateZoneItemCacheOnContentModificationObserver
public InvalidateZoneItemCacheOnContentModificationObserver()
-
-
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.
-
getWorkspace
protected String getWorkspace()
Description copied from class:AbstractZoneItemCacheOnContentObserverGet the target JCR workspace on which the zone item cache will be deleted.- Overrides:
getWorkspacein classAbstractZoneItemCacheOnContentObserver- Returns:
- the target JCR workspace : "live", "default" or null for all workspaces
-
-