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
public class SolrIndexWebResourceObserver extends SolrIndexResourceObserver
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
Constructors Constructor Description SolrIndexWebResourceObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]
getWorkspacesToIndex()
Get the list of workspace to indexprotected boolean
isHandledResource(AmetysObject object)
Returns true if it is aResource
orResourceCollection
handled by this observer-
Methods 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 Detail
-
SolrIndexWebResourceObserver
public SolrIndexWebResourceObserver()
-
-
Method Detail
-
isHandledResource
protected boolean isHandledResource(AmetysObject object)
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
protected String[] getWorkspacesToIndex()
Description copied from class:AbstractSolrIndexResourceObserver
Get the list of workspace to index- Overrides:
getWorkspacesToIndex
in classSolrIndexResourceObserver
- Returns:
- An array of workspace names
-
-