public class BatchUpload
Modifier and Type | Method and Description |
---|---|
DSResponse | batchUpload(DSRequest dsRequest) Takes an DSRequest sent by the BatchUploader UI component, which contains an uploaded CSV file and target DataSource, and returns a DSResponse containing the rows validated against the target DataSource. |
public DSResponse batchUpload(DSRequest dsRequest) throws java.lang.Exception
This API may only be used by the BatchUploader UI component. It is documented solely to allow pre- or post-processing checks to be added as a substitute DMI for the default DMI declared in batchUpload.ds.xml
.
For checks involving the uploaded file, the binary field name is always "file" (so getUploadedFileStream("file") allows access to the uploaded CSV InputStream, just as it would for any other binary field named "file").
NOTE: the BatchUploader feature as a whole is only available with a Power or better license.
dsRequest
- inbound DSRequest containing the uploaded CSV filejava.lang.Exception
- if an exception occurs during validation