public class ProjectDocumentProvider extends AbstractLogEnabled implements DocumentProvider, Serviceable, Contextualizable
DocumentProvider
for indexing documents (project resources...) during workspace indexationModifier and Type | Field and Description |
---|---|
protected Context |
_context
The component context.
|
protected DocumentWorkspaceModule |
_documentModule
The manager for documents
|
protected ProjectManager |
_projectManager
The manager for
Project s |
protected SolrProjectResourceIndexer |
_solrProjectResourceIndexer
The Solr indexer for project resources
|
Constructor and Description |
---|
ProjectDocumentProvider() |
Modifier and Type | Method and Description |
---|---|
private void |
_indexProject(String workspaceName,
Project project,
SolrClient solrClient) |
private void |
_indexProjects(String workspaceName,
SolrClient solrClient) |
void |
contextualize(Context context) |
void |
indexDocuments(String workspaceName,
SolrClient solrClient)
Index additional documents for the given workspace.
|
void |
service(ServiceManager manager) |
getLogger, setLogger
protected ProjectManager _projectManager
Project
sprotected SolrProjectResourceIndexer _solrProjectResourceIndexer
protected DocumentWorkspaceModule _documentModule
public ProjectDocumentProvider()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void indexDocuments(String workspaceName, SolrClient solrClient) throws IndexingException
DocumentProvider
indexDocuments
in interface DocumentProvider
workspaceName
- The workspace name.solrClient
- The solr client to useIndexingException
- If an error occurs indexing the documents.private void _indexProjects(String workspaceName, SolrClient solrClient) throws IndexingException
IndexingException
private void _indexProject(String workspaceName, Project project, SolrClient solrClient) throws IndexingException
IndexingException