Package org.ametys.web.indexing.explorer
Class SolrIndexWebResourceObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.indexing.explorer.AbstractSolrIndexResourceObserver
org.ametys.cms.indexing.explorer.SolrIndexResourceObserver
org.ametys.web.indexing.explorer.SolrIndexWebResourceObserver
- All Implemented Interfaces:
AsyncObserver
,Observer
,LogEnabled
,Contextualizable
,Serviceable
Observer in charge of indexing resources in web context when created, modified, moved...
-
Field Summary
Fields inherited from class org.ametys.cms.indexing.explorer.AbstractSolrIndexResourceObserver
_context, _resolver, _solrIndexer, DISABLE_INDEXING_KEY
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String[]
Get the list of workspace to indexprotected boolean
isHandledResource
(AmetysObject object) Returns true if it is aResource
orResourceCollection
handled by this observerMethods inherited from class org.ametys.cms.indexing.explorer.SolrIndexResourceObserver
onCollectionRenamedOrMoved, onResourceCreated, onResourceUpdated
Methods inherited from class org.ametys.cms.indexing.explorer.AbstractSolrIndexResourceObserver
_index, contextualize, getPriority, observe, service, supports
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.observation.AsyncObserver
parallelizable
-
Constructor Details
-
SolrIndexWebResourceObserver
public SolrIndexWebResourceObserver()
-
-
Method Details
-
isHandledResource
Description copied from class:AbstractSolrIndexResourceObserver
Returns true if it is aResource
orResourceCollection
handled by this observer- Overrides:
isHandledResource
in classSolrIndexResourceObserver
- Parameters:
object
- The resource or collection- Returns:
- true if it is handled by this observer
-
getWorkspacesToIndex
Description copied from class:AbstractSolrIndexResourceObserver
Get the list of workspace to index- Overrides:
getWorkspacesToIndex
in classSolrIndexResourceObserver
- Returns:
- An array of workspace names
-