public class InvalidateCacheOnContentDeletionObserver extends AbstractSiteCacheObserver
Observer for observing content deletion in order to
invalidate cache on front-office.| Modifier and Type | Field and Description |
|---|---|
private SiteManager |
_siteManager |
_cachePolicy, _repositoryMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
InvalidateCacheOnContentDeletionObserver() |
| Modifier and Type | Method and 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.
|
void |
service(ServiceManager smanager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
observegetPrioritygetLogger, setLoggerprivate SiteManager _siteManager
public InvalidateCacheOnContentDeletionObserver()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class AbstractSiteCacheObserverServiceExceptionpublic boolean supports(Event event)
Observerevent - the event.true for observing this event, false otherwise.protected Site _getSite(Event event)
AbstractSiteCacheObserver_getSite in class AbstractSiteCacheObserverevent - the event.null if not found.protected void _internalObserve(Event event, Site site, Session liveSession) throws Exception
AbstractSiteCacheObserver_internalObserve in class AbstractSiteCacheObserverevent - the event.site - the site.liveSession - the session to the workspace live.Exception - if an error occurs.