Package org.ametys.web.indexing.solr
Class SolrWebWorkspaceIndexer
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.cms.indexing.solr.SolrWorkspaceIndexer
-
- org.ametys.web.indexing.solr.SolrWebWorkspaceIndexer
-
- All Implemented Interfaces:
WorkspaceIndexer
,LogEnabled
,Component
,Contextualizable
,Serviceable
public class SolrWebWorkspaceIndexer extends SolrWorkspaceIndexer
Web-specific component indexing a workspace in a Solr server.
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
The Ametys object resolver.protected SiteIndexer
_siteIndexer
The site indexer.protected SiteManager
_siteManager
The site manager.-
Fields inherited from class org.ametys.cms.indexing.solr.SolrWorkspaceIndexer
_context, _docProviderEP, _repository, _solrClientProvider, _solrIndexer, _workspaceSelector
-
Fields inherited from interface org.ametys.cms.indexing.WorkspaceIndexer
ROLE
-
-
Constructor Summary
Constructors Constructor Description SolrWebWorkspaceIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doIndex(String workspaceName)
Index the given workspace.protected void
indexContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient)
Index the out-of-site contents.protected void
indexPluginsContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient)
Index the contents stored by pluginsprotected void
indexSharedResources(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient)
Index the shared resources.void
service(ServiceManager manager)
-
Methods inherited from class org.ametys.cms.indexing.solr.SolrWorkspaceIndexer
contextualize, ensureCoreExists, ensureCoresExists, index, indexAdditionalDocuments, indexAllWorkspaces
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_siteManager
protected SiteManager _siteManager
The site manager.
-
_siteIndexer
protected SiteIndexer _siteIndexer
The site indexer.
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys object resolver.
-
-
Constructor Detail
-
SolrWebWorkspaceIndexer
public SolrWebWorkspaceIndexer()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSolrWorkspaceIndexer
- Throws:
ServiceException
-
doIndex
protected void doIndex(String workspaceName) throws IndexingException
Description copied from class:SolrWorkspaceIndexer
Index the given workspace.- Overrides:
doIndex
in classSolrWorkspaceIndexer
- Parameters:
workspaceName
- The workspace name.- Throws:
IndexingException
- If an error occurs indexing the workspace.
-
indexContentRoot
protected void indexContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception
Index the out-of-site contents.- Parameters:
workspaceName
- The workspace namesolrClient
- The solr client to use- Throws:
Exception
- If an error occurs.
-
indexPluginsContentRoot
protected void indexPluginsContentRoot(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception
Index the contents stored by plugins- Parameters:
workspaceName
- The workspace namesolrClient
- The solr client to use- Throws:
Exception
- If an error occurs.
-
indexSharedResources
protected void indexSharedResources(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception
Index the shared resources.- Parameters:
workspaceName
- The workspace namesolrClient
- The solr client to use- Throws:
Exception
- If an error occurs.
-
-