public class ProjectDocumentProvider extends AbstractLogEnabled implements DocumentProvider, Serviceable, Contextualizable
DocumentProvider for indexing documents (project resources...) during workspace indexation| Modifier and Type | Field and Description |
|---|---|
protected Context |
_context
The component context.
|
protected DocumentWorkspaceModule |
_documentModule
The manager for documents
|
protected ProjectManager |
_projectManager
The manager for
Projects |
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, setLoggerprotected ProjectManager _projectManager
Projectsprotected SolrProjectResourceIndexer _solrProjectResourceIndexer
protected DocumentWorkspaceModule _documentModule
public ProjectDocumentProvider()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void indexDocuments(String workspaceName) throws IndexingException
DocumentProviderindexDocuments in interface DocumentProviderworkspaceName - The workspace name.IndexingException - If an error occurs indexing the documents.private void _indexProjects(String workspaceName) throws IndexingException
IndexingExceptionprivate void _indexProject(String workspaceName, Project project) throws IndexingException
IndexingException