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

Missing Document APIs for complex properties

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3
    • Component/s: Core
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      New Document APIs, that get/set a complex structure of Map of scalars / arrays / Lists of Maps corresponding to a full document or complex property.

      • Document.getValue(xpath)
      • Document.setValue(xpath, value)

      New Document API to visit all blobs of a Document. The visitor is a Consumer<BlobAccessor> and the BlobAccessor can read and write the blob and know its xpath.

      • Document.visitBlobs(visitor)
      • BlobAccessor.getXPath()
      • BlobAccessor.getBlob()
      • BlobAccessor.setBlob(blob)
      Show
      New Document APIs, that get/set a complex structure of Map of scalars / arrays / Lists of Maps corresponding to a full document or complex property. Document.getValue(xpath) Document.setValue(xpath, value) New Document API to visit all blobs of a Document. The visitor is a Consumer<BlobAccessor> and the BlobAccessor can read and write the blob and know its xpath. Document.visitBlobs(visitor) BlobAccessor.getXPath() BlobAccessor.getBlob() BlobAccessor.setBlob(blob)

      Description

      The the low-level Document API needs a way to get/set a property that's complex.

      Currently getPropertyValue only works with basic simple properties, which is fine for most internal uses (lifecycle, versions, fulltext system props) but this is not enough for developer extensions that need to hit the full Document: security policies, versioning service, blob providers.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: