public class InvalidateCacheOnContentValidationObserver extends AbstractUserObserver
Observer for observing content validation or tagging in order to
invalidate cache on front-office.| Modifier and Type | Field and Description |
|---|---|
protected CacheInvalidationPolicy |
_cachePolicy
Cache invalidation policy
|
_cocoonContext, _contentTypeHelper, _context, _resolverMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
InvalidateCacheOnContentValidationObserver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_internalObserve(Event event,
Page rootUserDirectoryPage,
Content userContent)
Do the actual work.
|
int |
getPriority(Event event)
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers. |
void |
service(ServiceManager serviceManager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
_getTarget, _getUserContent, _getUserDirectoryRootPages, contextualize, observegetLogger, setLoggerprotected CacheInvalidationPolicy _cachePolicy
public InvalidateCacheOnContentValidationObserver()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class AbstractUserObserverServiceExceptionpublic boolean supports(Event event)
Observerevent - the event.true for observing this event, false otherwise.public int getPriority(Event event)
Observerevent - the event.protected void _internalObserve(Event event, Page rootUserDirectoryPage, Content userContent)
AbstractUserObserver_internalObserve in class AbstractUserObserverevent - the observation event.rootUserDirectoryPage - the page holding the virtual user pagesuserContent - a list containing all impacted user contents.