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, _zoneItemCacheMAX_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, observegetLogger, setLoggerprotected UserDirectoryPageHandler _userPageHandler
protected SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
public UserContentCacheObserver()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractContentObserverServiceExceptionpublic 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 rootUsersPage, Content userContent)
AbstractContentObserver_internalObserve in class AbstractContentObserverevent - the observation event.rootUsersPage - the page holding the virtual user pagesuserContent - a list containing all impacted user contents.