public abstract class AbstractZoneItemCacheOnContentObserver extends AbstractZoneItemCacheObserver
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
_zoneItemCache
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
AbstractZoneItemCacheOnContentObserver() |
Modifier and Type | Method and Description |
---|---|
protected String |
getWorkspace()
Get the target JCR workspace on which the zone item cache will be deleted.
|
void |
observe(Event event,
Map<String,Object> transientVars)
Observes an event.
|
void |
service(ServiceManager manager) |
getPriority
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _resolver
public AbstractZoneItemCacheOnContentObserver()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractZoneItemCacheObserver
ServiceException
public void observe(Event event, Map<String,Object> transientVars) throws Exception
Observer
event
- the event.transientVars
- transientVars passed from one Observer to another when processing a single Event.
This may allow optimizations between observers.Exception
- if an error occurs.
All exceptions will be logged but not propagated, as the observation mechanism should never fail.protected String getWorkspace()