Class ProjectDocumentProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.indexing.solr.ProjectDocumentProvider
- All Implemented Interfaces:
DocumentProvider,LogEnabled,Contextualizable,Serviceable
public class ProjectDocumentProvider
extends AbstractLogEnabled
implements DocumentProvider, Serviceable, Contextualizable
DocumentProvider for indexing documents (project resources...) during workspace indexation-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContextThe component context.protected DocumentWorkspaceModuleThe manager for documentsprotected ProjectManagerThe manager forProjectsprotected SolrProjectResourceIndexerThe Solr indexer for project resources -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) voidindexDocuments(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Index additional documents for the given workspace.voidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_projectManager
The manager forProjects -
_solrProjectResourceIndexer
The Solr indexer for project resources -
_documentModule
The manager for documents -
_context
The component context.
-
-
Constructor Details
-
ProjectDocumentProvider
public ProjectDocumentProvider()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
indexDocuments
public void indexDocuments(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws IndexingException Description copied from interface:DocumentProviderIndex additional documents for the given workspace.- Specified by:
indexDocumentsin interfaceDocumentProvider- Parameters:
workspaceName- The workspace name.solrClient- The solr client to use- Throws:
IndexingException- If an error occurs indexing the documents.
-