Class DefaultExportDataProcessorService

    • Constructor Detail

      • DefaultExportDataProcessorService

        public DefaultExportDataProcessorService()
    • Method Detail

      • getBeanFactory

        protected org.springframework.beans.factory.BeanFactory getBeanFactory()
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        Specified by:
        setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
        Throws:
        org.springframework.beans.BeansException
      • getModelService

        protected ModelService getModelService()
      • setModelService

        public void setModelService​(ModelService modelService)
      • computeFilename

        public java.lang.String computeFilename​(org.springframework.messaging.Message<?> message,
                                                @Header("pipelineConfig")
                                                PipelineConfig pipelineConfig)
        Description copied from interface: ExportDataProcessorService
        Compute the filename of the generated file for the export event.
        Specified by:
        computeFilename in interface ExportDataProcessorService
        pipelineConfig - the configuration used in this export
        Returns:
        the filename
      • search

        public java.util.List<PK> search​(org.springframework.messaging.Message<ExportDataEvent> message,
                                         @Header("pipelineConfig")
                                         PipelineConfig pipelineConfig)
                                  throws java.lang.Throwable
        Description copied from interface: ExportDataProcessorService
        Search for a list of items.
        Specified by:
        search in interface ExportDataProcessorService
        pipelineConfig - object that holds the export configuration
        Returns:
        List of item PK's
        Throws:
        java.lang.Throwable
      • convertItem

        public java.lang.Object convertItem​(org.springframework.messaging.Message<? extends ItemModel> message,
                                            @Header("pipelineConfig")
                                            PipelineConfig pipelineConfig)
        Description copied from interface: ExportDataProcessorService
        Convert the Item model to a POJO
        Specified by:
        convertItem in interface ExportDataProcessorService
        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

        public java.lang.Object convertOutput​(java.util.List<java.lang.Object> records,
                                              @Header("pipelineConfig")
                                              PipelineConfig pipelineConfig)
        Description copied from interface: ExportDataProcessorService
        Convert a POJO to an object that could be outputted to file.
        Specified by:
        convertOutput in interface ExportDataProcessorService
        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
      • evalExpression

        protected <T> T evalExpression​(org.springframework.messaging.Message<?> message,
                                       java.lang.String expressionString,
                                       java.lang.Class<T> resultType)