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

Factory the DocumentSnapshot web service structure

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Detail
    • Resolution: Won't Fix
    • Affects Version/s: 5.2 GA
    • Fix Version/s: None
    • Component/s: Web API (REST or WS*)

      Description

      The DocumentSnapshot lacks factories: from DocumentModel and to DocumentModel. Currently, the DocumentModel is read and a DocumentSnapshot is created through protected methods in NuxeoRemotingBean. My proposal would be to move the implementation in the DocumetnSnapshot itself, as a true method factory. A need of detecting existence of blobs could be also thought (as for synchronization).
      The factory updating a DocumentModel from the DocumentSnapshot (at least for non blobs properties, but it would be easy to add blobs support too) can be also added.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day, 1 hour
                1d 1h
                Remaining:
                Remaining Estimate - 1 day, 1 hour
                1d 1h
                Logged:
                Time Spent - Not Specified
                Not Specified