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) getLabel()
The label of the document providervoid
indexDocuments
(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Index additional documents for the given workspace.void
indexDocuments
(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) 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
-
getLabel
Description copied from interface:DocumentProvider
The label of the document provider- Specified by:
getLabel
in interfaceDocumentProvider
- Returns:
- The label
-
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.
-
indexDocuments
public void indexDocuments(String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) 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 useprogressionTracker
- The progression tracker- Throws:
IndexingException
- If an error occurs indexing the documents.
-