public class SolrContentUnpublishedPart2Observer extends AbstractLiveSolrObserver
_context, _resolver, _solrIndexer, _solrPageIndexer
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
SolrContentUnpublishedPart2Observer() |
Modifier and Type | Method and Description |
---|---|
protected void |
_updateIndex(Event event,
Map<String,Object> transientVars)
Update the index from the event observed.
|
protected void |
_updatePageDocumentsForUnpublishedContent(Content content)
Update the page documents for an unpublished content (the content is no more in live workspace).
|
boolean |
supports(Event event)
Checks if the event is supported.
|
_deletePageDocumentsForContent, _getPageInLive, _updatePageDocument, _updatePageDocument, _updatePageDocumentsForContent, contextualize, getPriority, observe, service
getLogger, setLogger
public SolrContentUnpublishedPart2Observer()
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.protected void _updateIndex(Event event, Map<String,Object> transientVars) throws Exception
AbstractLiveSolrObserver
_updateIndex
in class AbstractLiveSolrObserver
event
- the event.transientVars
- the transient vars passed from one Observer to another when processing a single Event.Exception
- if an error occurs.protected void _updatePageDocumentsForUnpublishedContent(Content content) throws Exception
content
- the unpublished content.Exception
- if an error occurs.