Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Proposed solution (backwards compatible with the about-to-be released clients):

API

1) Add an API that gives a list of possible upload locations by ID and label for a given synapse container:

...

UploadDestinationLocation[] getUploadDestinationLocations(String parentId);
2) Add an API that gives a single specific upload destination by uploadId (parentId is redundant, but used for extra check against the valid uploadIds):
UploadDestination getUploadDestination(String parentId, String uploadId)
Add an API that gives a single specific upload destination by fileHandleId (parentId is redundant, but used for extra check against the valid uploadIds):

...

 

Object Model

Add uploadId as a new optional field to an ExternalFileHandle (perhaps S3FileHandle has this field too).
Note:  Need ExternallyManagedFileHandle to distinguish from non-managed ExternalFileHandleThe new sequences:

Sequence

For uploading a new file:

...