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

Provide adapter to manipulate DocumentModel as a blob

    XMLWordPrintable

    Details

    • Type: User story
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2 M4
    • Component/s: None
    • Impact type:
      API added

      Description

      There are several place in the code where we need to manipulate the DocumentModel as a blob :

      • in all download links
      • in the preview addon
      • in all file oriented interfaces (WebDav, Flex filemanager ...)
      • ...

      Each time, there is ugly code that looks for file:content.
      => This needs to be encapsulated

      Furthermore some services (like tranformers or Tiling) take as input something that is homogene to a blob.
      In these case, using a blob instread of a Adapter DocumentModel makes us loose information : there is not way to compute a cache key based on the blob.

      We need to define :

      • a BlobHolder interface
        (that can be implemented on top of DocumentModel or on top of other resources)
      • a pluggable adapter factory to manage how BlobHolder is defined for each DocumentModel Type

        Attachments

          Activity

            People

            • Assignee:
              tdelprat Thierry Delprat
              Reporter:
              tdelprat Thierry Delprat
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: