public class UserContentCacheObserver extends AbstractUserObserver
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, _resolverMAX_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. 
 | 
_getTarget, _getUserContent, _getUserDirectoryRootPages, contextualize, observegetLogger, setLoggerprotected UserDirectoryPageHandler _userPageHandler
protected SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
public UserContentCacheObserver()
public void service(ServiceManager manager) 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 rootUsersPage, Content userContent)
AbstractUserObserver_internalObserve in class AbstractUserObserverevent - the observation event.rootUsersPage - the page holding the virtual user pagesuserContent - a list containing all impacted user contents.