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) |
private void |
_indexProjects(String workspaceName) |
void |
contextualize(Context context) |
void |
indexDocuments(String workspaceName)
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) throws IndexingException
DocumentProvider
indexDocuments
in interface DocumentProvider
workspaceName
- The workspace name.IndexingException
- If an error occurs indexing the documents.private void _indexProjects(String workspaceName) throws IndexingException
IndexingException
private void _indexProject(String workspaceName, Project project) throws IndexingException
IndexingException