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
This
Observer
observes ODF content modification
in order to synchronize the solr index of referencing pages-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
_updateIndexReferencingPages, getPriority
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
SolrOdfContentModifiedObserver
public SolrOdfContentModifiedObserver()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractSolrObserver
- Throws:
ServiceException
-
_updateIndexReferencingPages
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
-