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
ThisObserverobserves 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 existsvoidservice(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:
servicein interfaceServiceable- Overrides:
servicein classAbstractSolrObserver- Throws:
ServiceException
-
_updateIndexReferencingPages
protected void _updateIndexReferencingPages(String contentId, boolean recursively) throws Exception
Description copied from class:AbstractSolrObserverUpdate index of all pages referencing the content for all workspaces if exists- Overrides:
_updateIndexReferencingPagesin 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
-
-