public class InvalidateCacheOnContentCommentedObserver extends AbstractSiteCacheObserver
Observer
for observing content deletion in order to
invalidate cache on front-office.Modifier and Type | Field and Description |
---|---|
private AmetysObjectResolver |
_ametysObjectResolver |
_cachePolicy, _repository
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
InvalidateCacheOnContentCommentedObserver() |
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 manager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
observe
getPriority
getLogger, setLogger
private AmetysObjectResolver _ametysObjectResolver
public InvalidateCacheOnContentCommentedObserver()
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSiteCacheObserver
ServiceException
protected Site _getSite(Event event)
AbstractSiteCacheObserver
_getSite
in class AbstractSiteCacheObserver
event
- the event.null
if not found.protected void _internalObserve(Event event, Site site, Session liveSession) throws Exception
AbstractSiteCacheObserver
_internalObserve
in class AbstractSiteCacheObserver
event
- the event.site
- the site.liveSession
- the session to the workspace live.Exception
- if an error occurs.