Package org.ametys.web.cache.zoneitem
Class InvalidateZoneItemCacheOnContentValidationObserver
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.InvalidateZoneItemCacheOnContentValidationObserver
- All Implemented Interfaces:
Observer
,Prioritizable
,Supporter<Event>
,LogEnabled
,Serviceable
public class InvalidateZoneItemCacheOnContentValidationObserver
extends AbstractZoneItemCacheOnContentObserver
Invalidates the ZoneItem containing a Content which has just been validated or unpublished.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Get the target JCR workspace on which the zone item cache will be deleted.boolean
Check if an element is supportedMethods 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 Details
-
InvalidateZoneItemCacheOnContentValidationObserver
-
-
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
-
getWorkspace
Description copied from class:AbstractZoneItemCacheOnContentObserver
Get the target JCR workspace on which the zone item cache will be deleted.- Overrides:
getWorkspace
in classAbstractZoneItemCacheOnContentObserver
- Returns:
- the target JCR workspace : "live", "default" or null for all workspaces
-