Interface ExportDataProcessorService

All Known Implementing Classes:
DefaultExportDataProcessorService

public interface ExportDataProcessorService
ExportDataProcessorService. Main service that queries, looks up and converts data.
  • Method Details

    • lookupBean

      Object lookupBean(String beanName)
      Lookup the bean with the name specified
      Parameters:
      beanName - the bean name
      Returns:
      the bean
    • computeFilename

      String computeFilename(org.springframework.messaging.Message<?> message, PipelineConfig pipelineConfig)
      Compute the filename of the generated file for the export event.
      Parameters:
      message - message containing the event
      pipelineConfig - the configuration used in this export
      Returns:
      the filename
    • search

      List<PK> search(org.springframework.messaging.Message<ExportDataEvent> message, PipelineConfig pipelineConfig) throws Throwable
      Search for a list of items.
      Parameters:
      message - message containing the event
      pipelineConfig - object that holds the export configuration
      Returns:
      List of item PK's
      Throws:
      Throwable - throwable
    • lookupItemForPk

      ItemModel lookupItemForPk(PK pk)
      Get the Item model for the specified PK
      Parameters:
      pk - pk to look up
      Returns:
      Item model for the specified PK
    • convertItem

      Object convertItem(org.springframework.messaging.Message<? extends ItemModel> message, PipelineConfig pipelineConfig)
      Convert the Item model to a POJO
      Parameters:
      message - message that contains the Item model
      pipelineConfig - object that holds the export configuration. Should hold the converter
      Returns:
      the POJO representing the Item model
    • convertOutput

      Object convertOutput(List<Object> records, PipelineConfig pipelineConfig)
      Convert a POJO to an object that could be outputted to file.
      Parameters:
      records - List of POJO's
      pipelineConfig - pipelineConfig object that holds the export configuration. Should hold the output converter
      Returns:
      an object that can be sent to a writer