Class AbstractDataSource

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

public abstract class AbstractDataSource extends Object implements DataSource
AbstractDataSource
  • Constructor Details

    • AbstractDataSource

      public AbstractDataSource()
  • Method Details

    • getId

      public String getId()
      Returns the Id
      Specified by:
      getId in interface DataSource
      Returns:
      The Id
    • setId

      public void setId(String strId)
      Sets the Id
      Parameters:
      strId - The Id
    • getName

      public String getName()
      Returns the Name
      Specified by:
      getName in interface DataSource
      Returns:
      The Name
    • setName

      public void setName(String strName)
      Sets the Name
      Parameters:
      strName - The Name
    • getTargetIndexName

      public String getTargetIndexName()
      Returns the TargetIndexName
      Specified by:
      getTargetIndexName in interface DataSource
      Returns:
      The TargetIndexName
    • setTargetIndexName

      public void setTargetIndexName(String strTargetIndexName)
      Sets the TargetIndexName
      Parameters:
      strTargetIndexName - The TargetIndexName
    • getBatchSize

      public int getBatchSize()
      Returns the BatchSize
      Specified by:
      getBatchSize in interface DataSource
      Returns:
      The BatchSize
    • setBatchSize

      public void setBatchSize(int nBatchSize)
      Sets the BatchSize
      Parameters:
      nBatchSize - The BatchSize
    • isLocalizable

      public boolean isLocalizable()
      Returns the Localizable
      Specified by:
      isLocalizable in interface DataSource
      Returns:
      The Localizable
    • setLocalizable

      public void setLocalizable(boolean bLocalizable)
      Sets the Localizable
      Parameters:
      bLocalizable - The Localizable
    • getMappings

      public String getMappings()
      Returns the Mappings
      Specified by:
      getMappings in interface DataSource
      Returns:
      The Mappings
    • setMappings

      public void setMappings(String strMappings)
      Sets the Mappings
      Parameters:
      strMappings - The Mappings
    • usesFullIndexingDaemon

      public boolean usesFullIndexingDaemon()
      Returns the FullIndexingDaemon
      Specified by:
      usesFullIndexingDaemon in interface DataSource
      Returns:
      The FullIndexingDaemon
    • setFullIndexingDaemon

      public void setFullIndexingDaemon(boolean bFullIndexingDaemon)
      Sets the FullIndexingDaemon
      Parameters:
      bFullIndexingDaemon - The FullIndexingDaemon
    • getDataObjectsIterator

      public Iterator<DataObject> getDataObjectsIterator()
      An iterator of data object
      Specified by:
      getDataObjectsIterator in interface DataSource
      Returns:
      an Iterator
    • getDataObjectsIterator

      public Iterator<DataObject> getDataObjectsIterator(List<String> listIdDataObjects)
      An iterator of data object from a list of data objects identifiers
      Specified by:
      getDataObjectsIterator in interface DataSource
      Returns:
      an Iterator
    • getExternalAttributesProvider

      public Collection<IDataSourceExternalAttributesProvider> getExternalAttributesProvider()
      Get the external providers of attributes for DataSources
      Specified by:
      getExternalAttributesProvider in interface DataSource
      Returns:
      the list of DataSourceAttributesProvider
    • getIndexingStatus

      public IndexingStatus getIndexingStatus()
      return the IndexingStatus of this datasource
      Specified by:
      getIndexingStatus in interface DataSource
      Returns:
      IndexingStatus the Indexing status
    • setExternalAttributesProvider

      public void setExternalAttributesProvider(Collection<IDataSourceExternalAttributesProvider> colExternalAttributesProvider)
      Set the external attributes provider for the data source
      Parameters:
      colExternalAttributesProvider -