Interface ExportDataProcessorService

  • All Known Implementing Classes:
    DefaultExportDataProcessorService

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

      • lookupBean

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

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

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

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

        java.lang.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

        java.lang.Object convertOutput​(java.util.List<java.lang.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