public class UserContentCacheObserver extends AbstractContentObserver
Observer
when a user content is modified, deleted or validated.
Clear the cache of virtual user pages and reindex all virtual pages on modification.Modifier and Type | Field and Description |
---|---|
protected SynchronizableContentsCollectionDAO |
_synchronizableContentsCollectionDAO
The DAO for synchronizable contents collections
|
protected UserDirectoryPageHandler |
_userPageHandler
The user directory page handler.
|
_cocoonContext, _contentTypeHelper, _context, _organisationChartPageResolver, _resolver, _userDirectoryPageResolver, _zoneItemCache
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
UserContentCacheObserver() |
Modifier and Type | Method and Description |
---|---|
protected void |
_internalObserve(Event event,
Page rootUsersPage,
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 manager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
_getOrgUnitRootPages, _getTarget, _getUserRootPages, _isOrgUnitContent, _isUserContent, _removeZoneItemCache, contextualize, observe
getLogger, setLogger
protected UserDirectoryPageHandler _userPageHandler
protected SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
public UserContentCacheObserver()
public void service(ServiceManager manager) 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 rootUsersPage, Content userContent)
AbstractContentObserver
_internalObserve
in class AbstractContentObserver
event
- the observation event.rootUsersPage
- the page holding the virtual user pagesuserContent
- a list containing all impacted user contents.