public class FileBulkUpload extends Object
csv
, zip
and xml
, with the latter being for SBOLConstructor and Description |
---|
FileBulkUpload(String account,
Path path,
EntryType addType) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getCSVTemplateBytes(EntryType addType,
EntryType linked,
boolean linkToExisting)
Creates a CSV template for download based on the the type of entries
|
ProcessedBulkUpload |
process()
Process bulk file upload.
|
public ProcessedBulkUpload process() throws IOException
.csv
extension are processed as comma separated value files.zip
extension are processed as zip files. They are expected
to contain exactly 1 csv file and optional attachment/sequence files whose names are referenced
in the csv file.xml
extension are processed as SBOL filesIOException
public static byte[] getCSVTemplateBytes(EntryType addType, EntryType linked, boolean linkToExisting)
addType
- entry type that is to be uploadedlinked
- optional type that is linked to this entry. Should be one of EntryType
or nulllinkToExisting
- true, if addType
is to be linked to an existing entryIllegalArgumentException
- if the addType is invalidCopyright © 2017. All rights reserved.