public class InvalidateCacheOnContentValidationOrUnpublishingObserver extends AbstractODFObserver
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, _context, _odfHelper, _resolverMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
InvalidateCacheOnContentValidationOrUnpublishingObserver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_internalObserve(Event event,
Map<String,Object> transientVars,
Page odfRootPage,
Set<Program> rootPrograms,
SubProgram subProgram,
Course course)
Do the actual work.
|
private void |
_invalidate(Site site,
Content content) |
protected String |
_workspaceToUse()
The workspace to use.
|
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.
|
_getContentArgument, _getCourse, _getODFRootPages, _getPrograms, _getSubProgram, contextualize, observegetLogger, setLoggerprotected CacheInvalidationPolicy _cachePolicy
public InvalidateCacheOnContentValidationOrUnpublishingObserver()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class AbstractODFObserverServiceExceptionpublic boolean supports(Event event)
Observerevent - the event.true for observing this event, false otherwise.public int getPriority(Event event)
Observerevent - the event.protected String _workspaceToUse()
AbstractODFObserverdefault,
override this method to work on a different workspace_workspaceToUse in class AbstractODFObserverprotected void _internalObserve(Event event, Map<String,Object> transientVars, Page odfRootPage, Set<Program> rootPrograms, SubProgram subProgram, Course course)
AbstractODFObserver_internalObserve in class AbstractODFObserverevent - the event.transientVars - transientVars passed from one Observer to another when processing a single Event.
This may allow optimizations between observers.odfRootPage - the Page holding the virtual factory.rootPrograms - the root programs.subProgram - The subprogram. Can be nullcourse - The course. Can be null.private void _invalidate(Site site, Content content)