Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28005

Refactor DownloadService.downloadBlob to use builder pattern

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF15, 11.1, 2021.0
    • Component/s: Web Common
    • Tags:
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      New API: DownloadService.downloadBlob(DownloadContext).

      A DownloadContext can be constructed through DownloadContext.builder(request, response)...<setters>...build().

      The other DownloadService.downloadBlob methods with lots of arguments are now deprecated.

      Show
      New API: DownloadService.downloadBlob(DownloadContext) . A DownloadContext can be constructed through DownloadContext.builder(request, response)...<setters>...build() . The other DownloadService.downloadBlob methods with lots of arguments are now deprecated.
    • Sprint:
      nxFG 11.1.10
    • Story Points:
      2

      Description

      The API DownloadService.downloadBlob has lots of different overloaded versions with different numbers of arguments. We should use a builder pattern itself, to pass a download context object with all the required information.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h