public class SolrContentValidatedPart1Observer extends AbstractSolrODFObserver
Modifier and Type | Field and Description |
---|---|
protected OdfPageHandler |
_odfPageHandler
The ODF page handler
|
protected Repository |
_repository
The JCR repository
|
protected SiteConfigurationExtensionPoint |
_siteConf
The site configuration extension point.
|
_odfPageResolver, _solrIndexer, _solrPageIndexer
_cocoonContext, _context, _odfHelper, _resolver
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
SolrContentValidatedPart1Observer() |
Modifier and Type | Method and Description |
---|---|
protected void |
_updateIndex(Event event,
Map<String,Object> transientVars,
Page odfRootPage,
Program program,
SubProgram subProgram,
Course course)
Update the index from the observed event.
|
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 manager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
_internalObserve
_getContentArgument, _getCourse, _getODFRootPages, _getPrograms, _getSubProgram, contextualize, observe
getLogger, setLogger
protected SiteConfigurationExtensionPoint _siteConf
protected Repository _repository
protected OdfPageHandler _odfPageHandler
public SolrContentValidatedPart1Observer()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSolrODFObserver
ServiceException
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.public int getPriority(Event event)
Observer
getPriority
in interface Observer
getPriority
in class AbstractSolrODFObserver
event
- the event.protected String _workspaceToUse()
AbstractODFObserver
default
,
override this method to work on a different workspace_workspaceToUse
in class AbstractODFObserver
protected void _updateIndex(Event event, Map<String,Object> transientVars, Page odfRootPage, Program program, SubProgram subProgram, Course course) throws Exception
AbstractSolrODFObserver
_updateIndex
in class AbstractSolrODFObserver
event
- the event.transientVars
- transientVars passed from one Observer to another when processing a single Event.
This may allow optimizations between observers.odfRootPage
- the odf root pageprogram
- the target programsubProgram
- The subprogram. Can be nullcourse
- the course. Can be null.Exception
- if an error occurs.