public class InvalidateCacheOnContentValidationObserver extends AbstractContentObserver
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, _organisationChartPageResolver, _resolver, _userDirectoryPageResolver, _zoneItemCache
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.
|
_getOrgUnitRootPages, _getTarget, _getUserRootPages, _isOrgUnitContent, _isUserContent, _removeZoneItemCache, contextualize, observe
getLogger, setLogger
protected CacheInvalidationPolicy _cachePolicy
public InvalidateCacheOnContentValidationObserver()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class AbstractContentObserver
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)
AbstractContentObserver
_internalObserve
in class AbstractContentObserver
event
- the observation event.rootUserDirectoryPage
- the page holding the virtual user pagesuserContent
- a list containing all impacted user contents.