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, _resolver
MAX_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, observe
getLogger, setLogger
protected CacheInvalidationPolicy _cachePolicy
public InvalidateCacheOnContentValidationObserver()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class AbstractUserObserver
ServiceException
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.public int getPriority(Event event)
Observer
event
- the event.protected void _internalObserve(Event event, Page rootUserDirectoryPage, Content userContent)
AbstractUserObserver
_internalObserve
in class AbstractUserObserver
event
- the observation event.rootUserDirectoryPage
- the page holding the virtual user pagesuserContent
- a list containing all impacted user contents.