com.isomorphic.tools

## Class BatchUpload

- com.isomorphic.tools.BatchUpload

-     public class BatchUpload

  This class implements the server side of the BatchUploader tool. See the client-side docs for full details of this feature. NOTE: this feature is only available with a Power or better license.

- - ### Method Summary

    Methods
    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.

- - ### Method Detail

    - #### batchUpload

          public DSResponse batchUpload(DSRequest dsRequest)
                                 throws java.lang.Exception

      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.

      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.

      Parameters:
        `dsRequest` - inbound DSRequest containing the uploaded CSV file
      Returns:
        DSResponse containing the rows parsed from CSV, with validation errors if any
      Throws:
        `java.lang.Exception` - if an exception occurs during validation