public class InvalidateCacheOnSitemapACLUpdateObserver extends AbstractCacheObserver
Observer
for observing page or sitemap ACL update in order to
invalidate cache on front-office.MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
InvalidateCacheOnSitemapACLUpdateObserver() |
Modifier and Type | Method and Description |
---|---|
private PagesContainer |
_getPageContainer(Event event) |
void |
observe(Event event,
Map<String,Object> transientVars)
Observes an event.
|
boolean |
supports(Event event)
Checks if the event is supported.
|
getPriority
getLogger, setLogger
public InvalidateCacheOnSitemapACLUpdateObserver()
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.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.private PagesContainer _getPageContainer(Event event)