java.lang.Object
fr.paris.lutece.plugins.elasticdata.business.AbstractDataSource
fr.paris.lutece.plugins.elasticdata.modules.forms.business.FormsDataSource
All Implemented Interfaces:
fr.paris.lutece.plugins.elasticdata.business.DataSource

@ApplicationScoped public class FormsDataSource extends fr.paris.lutece.plugins.elasticdata.business.AbstractDataSource
FormsDataSource
  • Field Summary

    Fields inherited from interface fr.paris.lutece.plugins.elasticdata.business.DataSource

    BATCH_SIZE, PROPERTY_BULK_BATCH_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    FormsDataSource(String strDataSourceId, String strDataSourceName, String strDataSourceTargetIndexName, String strDataSourceMappings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getDataObjects(List<fr.paris.lutece.plugins.forms.business.FormResponse> listformResponse, List<fr.paris.lutece.plugins.forms.business.FormQuestionResponse> listFormQuestionResponse, List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory> listResourceHistory, fr.paris.lutece.plugins.forms.business.Form form)
    Get a list of documents to index
    List<fr.paris.lutece.plugins.elasticdata.business.DataObject>
    getDataObjects(List<String> listIdDataObjects)
     
    getFieldCode(int nIdField)
    Retrieves the field code for the specified field ID.
     
    void
    indexDocument(int nIdResource, int nIdTask)
    Index Form Response data object to Elasticdata

    Methods inherited from class fr.paris.lutece.plugins.elasticdata.business.AbstractDataSource

    getBatchSize, getDataObjectsIterator, getDataObjectsIterator, getExternalAttributesProvider, getId, getIndexingStatus, getMappings, getName, getTargetIndexName, isLocalizable, setBatchSize, setExternalAttributesProvider, setFullIndexingDaemon, setId, setLocalizable, setMappings, setName, setTargetIndexName, usesFullIndexingDaemon

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FormsDataSource

      public FormsDataSource()
    • FormsDataSource

      @Inject public FormsDataSource(String strDataSourceId, String strDataSourceName, String strDataSourceTargetIndexName, String strDataSourceMappings)
  • Method Details

    • getIdDataObjects

      public List<String> getIdDataObjects()
    • getDataObjects

      public List<fr.paris.lutece.plugins.elasticdata.business.DataObject> getDataObjects(List<String> listIdDataObjects)
    • getDataObjects

      public List<FormResponseDataObject> getDataObjects(List<fr.paris.lutece.plugins.forms.business.FormResponse> listformResponse, List<fr.paris.lutece.plugins.forms.business.FormQuestionResponse> listFormQuestionResponse, List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory> listResourceHistory, fr.paris.lutece.plugins.forms.business.Form form)
      Get a list of documents to index
      Parameters:
      listformResponse - The list of form response
      listFormQuestionResponse - The list of form question response
      listResourceHistory - The list of ressource history
      form - The form
      Returns:
      a list of form response object
    • indexDocument

      public void indexDocument(int nIdResource, int nIdTask)
      Index Form Response data object to Elasticdata
      Parameters:
      nIdResource - The FormResponse id
      nIdTask - The task id
    • getFieldCode

      public String getFieldCode(int nIdField)
      Retrieves the field code for the specified field ID.
      Parameters:
      nIdField - The ID of the field.
      Returns:
      The field code associated with the specified ID, or null if not found.