Class SolrOdfContentModifiedObserver
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.web.indexing.observation.AbstractSolrObserver
-
- org.ametys.web.indexing.observation.SolrPageContentModifiedObserver
-
- org.ametys.plugins.odfweb.observation.solr.SolrOdfContentModifiedObserver
-
- All Implemented Interfaces:
Observer
,LogEnabled
,Serviceable
public class SolrOdfContentModifiedObserver extends SolrPageContentModifiedObserver
ThisObserver
observes ODF content modification in order to synchronize the solr index of referencing pages
-
-
Field Summary
Fields Modifier and Type Field Description private OdfPageResolver
_odfPageResolver
-
Fields inherited from class org.ametys.web.indexing.observation.AbstractSolrObserver
_resolver, _siteIndexer, _solrIndexer, _solrPageIndexer
-
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description SolrOdfContentModifiedObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_updateIndexReferencingPages(String contentId, boolean recursively)
Update index of all pages referencing the content for all workspaces if existsvoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.web.indexing.observation.SolrPageContentModifiedObserver
observe, supports
-
Methods inherited from class org.ametys.web.indexing.observation.AbstractSolrObserver
getPriority
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_odfPageResolver
private OdfPageResolver _odfPageResolver
-
-
Constructor Detail
-
SolrOdfContentModifiedObserver
public SolrOdfContentModifiedObserver()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractSolrObserver
- Throws:
ServiceException
-
_updateIndexReferencingPages
protected void _updateIndexReferencingPages(String contentId, boolean recursively) throws Exception
Description copied from class:AbstractSolrObserver
Update index of all pages referencing the content for all workspaces if exists- Overrides:
_updateIndexReferencingPages
in classAbstractSolrObserver
- Parameters:
contentId
- The id of contentrecursively
- true to index recursively the subpages- Throws:
AmetysRepositoryException
- If an error occurredException
- if an error occurred during indexing
-
-