public class SolrWorkspaceIndexer extends AbstractLogEnabled implements WorkspaceIndexer, Component, Serviceable, Contextualizable
| Modifier and Type | Field and Description | 
|---|---|
protected Context | 
_context
The component context. 
 | 
protected DocumentProviderExtensionPoint | 
_docProviderEP
Additional documents provider extension point. 
 | 
protected Repository | 
_repository
The repository. 
 | 
protected SolrIndexer | 
_solrIndexer
The solr indexer. 
 | 
protected WorkspaceSelector | 
_workspaceSelector
The workspace selector. 
 | 
ROLE| Constructor and Description | 
|---|
SolrWorkspaceIndexer()  | 
| Modifier and Type | Method and Description | 
|---|---|
private void | 
_forceWorkspaceAndDoIndex(String workspaceName)  | 
void | 
contextualize(Context context)  | 
protected void | 
doIndex(String workspaceName)
Index the given workspace. 
 | 
protected void | 
ensureCoreExists(String coreName)
Create the given core if it doesn't exist. 
 | 
void | 
index(String workspaceName)
Index a workspace. 
 | 
protected void | 
indexAdditionalDocuments(String workspaceName)
Index additional documents provided by the extensions. 
 | 
void | 
indexAllWorkspaces()
Index all the workspaces. 
 | 
void | 
service(ServiceManager manager)  | 
getLogger, setLoggerprotected Repository _repository
protected SolrIndexer _solrIndexer
protected WorkspaceSelector _workspaceSelector
protected DocumentProviderExtensionPoint _docProviderEP
public SolrWorkspaceIndexer()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void indexAllWorkspaces() throws IndexingException
WorkspaceIndexerindexAllWorkspaces in interface WorkspaceIndexerIndexingException - If an error occurs while indexing.public void index(String workspaceName) throws IndexingException
WorkspaceIndexerindex in interface WorkspaceIndexerworkspaceName - The workspace name.IndexingException - If an error occurs while indexing the workspace.private void _forceWorkspaceAndDoIndex(String workspaceName) throws IndexingException
IndexingExceptionprotected void doIndex(String workspaceName) throws IndexingException
workspaceName - The workspace name.IndexingException - If an error occurs indexing the workspace.protected void indexAdditionalDocuments(String workspaceName) throws IndexingException
workspaceName - The workspace name.IndexingException - If an error occurs while indexing.protected void ensureCoreExists(String coreName) throws IOException, SolrServerException
coreName - The core name.IOException - If an I/O error occurs.SolrServerException - If a solr error occurs.