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
_resolverFields inherited from class org.ametys.web.cache.zoneitem.AbstractZoneItemCacheObserver
_zoneItemCacheFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the target JCR workspace on which the zone item cache will be deleted.booleanCheck if an element is supportedMethods inherited from class org.ametys.web.cache.zoneitem.AbstractZoneItemCacheOnContentObserver
observe, serviceMethods inherited from class org.ametys.web.cache.zoneitem.AbstractZoneItemCacheObserver
getPriorityMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
InvalidateZoneItemCacheOnContentValidationObserver
-
-
Method Details
-
supports
Description copied from interface:SupporterCheck if an element is supported- Parameters:
event- The element- Returns:
trueif the element is supported,falseotherwise
-
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
-