Class FormEntryDocumentProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.forms.indexing.solr.FormEntryDocumentProvider
- All Implemented Interfaces:
LogEnabled,SiteDocumentProvider,Contextualizable,Serviceable
public class FormEntryDocumentProvider
extends AbstractLogEnabled
implements SiteDocumentProvider, Serviceable, Contextualizable
DocumentProvider for indexing form entries during workspace indexation-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContextThe contextprotected SolrFormEntryIndexerThe Solr form entry indexer.The list of Solr repositories to index form entries into. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) getLabel()The label of the document providervoidindexSiteDocuments(Site site, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) Add documents to the index.voidindexSitemapDocuments(Sitemap sitemap, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) Add documents to the index.voidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
SOLR_WORKSPACES
The list of Solr repositories to index form entries into. By default, form entries are indexed in the default and live workspaces. -
_solrFormEntryIndexer
The Solr form entry indexer. -
_context
The context
-
-
Constructor Details
-
FormEntryDocumentProvider
public FormEntryDocumentProvider()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
getLabel
Description copied from interface:SiteDocumentProviderThe label of the document provider- Specified by:
getLabelin interfaceSiteDocumentProvider- Returns:
- The label
-
indexSitemapDocuments
public void indexSitemapDocuments(Sitemap sitemap, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient) throws Exception Description copied from interface:SiteDocumentProviderAdd documents to the index.- Specified by:
indexSitemapDocumentsin interfaceSiteDocumentProvider- Parameters:
sitemap- the sitemap to index.workspaceName- The workspace name.solrClient- The solr client to use- Throws:
Exception- if an error occurs.
-
indexSiteDocuments
public void indexSiteDocuments(Site site, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) throws Exception Description copied from interface:SiteDocumentProviderAdd documents to the index.- Specified by:
indexSiteDocumentsin interfaceSiteDocumentProvider- Parameters:
site- the site to index.workspaceName- The workspace name.solrClient- The solr client to useprogressionTracker- The progression tracker- Throws:
Exception- if an error occurs.
-