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:
IndexingObserver,AsyncObserver,Observer,LogEnabled,Contextualizable,Serviceable
public class SolrOdfContentModifiedObserver
extends SolrPageContentModifiedObserver
implements Contextualizable
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, _solrPageIndexerFields inherited from interface org.ametys.cms.indexing.IndexingObserver
INDEXING_OBSERVERFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_updateIndexReferencingPages(String contentId, boolean recursively) Update index of all pages referencing the content for all workspaces if existsvoidcontextualize(Context context) voidservice(ServiceManager manager) Methods inherited from class org.ametys.web.indexing.observation.SolrPageContentModifiedObserver
observe, supportsMethods inherited from class org.ametys.web.indexing.observation.AbstractSolrObserver
_updateIndexReferencingPages, getPriorityMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.observation.AsyncObserver
parallelizableMethods inherited from interface org.ametys.cms.indexing.IndexingObserver
getTraitsMethods inherited from interface org.ametys.core.observation.Observer
getPriority
-
Constructor Details
-
SolrOdfContentModifiedObserver
public SolrOdfContentModifiedObserver()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractSolrObserver- Throws:
ServiceException
-
_updateIndexReferencingPages
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
-