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
Modifier and TypeFieldDescriptionprotected Context
The component context.protected DocumentWorkspaceModule
The manager for documentsprotected ProjectManager
The manager forProject
sprotected SolrProjectResourceIndexer
The Solr indexer for project resources -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) void
indexDocuments
(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Index additional documents for the given workspace.void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_projectManager
The manager forProject
s -
_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:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
indexDocuments
public void indexDocuments(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws IndexingException Description copied from interface:DocumentProvider
Index additional documents for the given workspace.- Specified by:
indexDocuments
in interfaceDocumentProvider
- Parameters:
workspaceName
- The workspace name.solrClient
- The solr client to use- Throws:
IndexingException
- If an error occurs indexing the documents.
-