Interface ExportDataProcessorService
-
- All Known Implementing Classes:
DefaultExportDataProcessorService
public interface ExportDataProcessorServiceExportDataProcessorService. Main service that queries, looks up and converts data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringcomputeFilename(org.springframework.messaging.Message<?> message, PipelineConfig pipelineConfig)Compute the filename of the generated file for the export event.java.lang.ObjectconvertItem(org.springframework.messaging.Message<? extends ItemModel> message, PipelineConfig pipelineConfig)Convert the Item model to a POJOjava.lang.ObjectconvertOutput(java.util.List<java.lang.Object> records, PipelineConfig pipelineConfig)Convert a POJO to an object that could be outputted to file.java.lang.ObjectlookupBean(java.lang.String beanName)Lookup the bean with the name specifiedItemModellookupItemForPk(PK pk)Get the Item model for the specified PKjava.util.List<PK>search(org.springframework.messaging.Message<ExportDataEvent> message, PipelineConfig pipelineConfig)Search for a list of items.
-
-
-
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 modelpipelineConfig- 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'spipelineConfig- pipelineConfig object that holds the export configuration. Should hold the output converter- Returns:
- an object that can be sent to a writer
-
-