Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-197

Missing important properties on Document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Core
    • Tags:
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #11
    • Story Points:
      1

      Description

      A user asked on answer how to get the isVersion field in the Document JSON response, but this is not possible with current implementation as we don't deserialize it on the Document class.

      On nightly we get:

      // 20200529155035
      // https://nightly.nuxeo.com/nuxeo/api/v1/path/default-domain/workspaces/Sample%20Content/Pictures/Winter.jpg
      
      {
        "entity-type": "document",
        "repository": "default",
        "uid": "44eb5cfc-4993-494a-9abc-49b926dfb950",
        "path": "/default-domain/workspaces/Sample Content/Pictures/Winter.jpg",
        "type": "Picture",
        "state": "project",
        "parentRef": "b7ffc1a1-5439-4050-9562-bcaa4db0624f",
        "isCheckedOut": false,
        "isRecord": false,
        "retainUntil": null,
        "hasLegalHold": false,
        "isUnderRetentionOrLegalHold": false,
        "isVersion": false,
        "isProxy": false,
        "changeToken": "5-0",
        "isTrashed": false,
        "title": "Winter.jpg",
        "lastModified": "2020-05-29T04:31:37.290Z",
        "facets": [
          "Versionable",
          "NXTag",
          "Publishable",
          "Picture",
          "Commentable",
          "HasRelatedText",
          "Thumbnail"
        ],
        "schemas": [
          {
            "name": "uid",
            "prefix": "uid"
          },
          {
            "name": "image_metadata",
            "prefix": "imd"
          },
          {
            "name": "thumbnail",
            "prefix": "thumb"
          },
          {
            "name": "file",
            "prefix": "file"
          },
          {
            "name": "common",
            "prefix": "common"
          },
          {
            "name": "dublincore",
            "prefix": "dc"
          },
          {
            "name": "relatedtext",
            "prefix": "relatedtext"
          },
          {
            "name": "picture",
            "prefix": "picture"
          },
          {
            "name": "facetedTag",
            "prefix": "nxtag"
          }
        ]
      }
      

      We want to add all missing fields to the Document class.

      Another example on a version:

      // 20200529155350
      // https://nightly.nuxeo.com/nuxeo/api/v1/id/c83afd03-6339-4d69-bbe7-5f87518515b5
      
      {
        "entity-type": "document",
        "repository": "default",
        "uid": "c83afd03-6339-4d69-bbe7-5f87518515b5",
        "path": "/default-domain/workspaces/Sample Content/Pictures/Winter.jpg",
        "type": "Picture",
        "state": "project",
        "parentRef": "b7ffc1a1-5439-4050-9562-bcaa4db0624f",
        "isCheckedOut": false,
        "isRecord": false,
        "retainUntil": null,
        "hasLegalHold": false,
        "isUnderRetentionOrLegalHold": false,
        "isVersion": true,
        "isProxy": false,
        "versionableId": "44eb5cfc-4993-494a-9abc-49b926dfb950",
        "changeToken": "7-0",
        "isTrashed": false,
        "title": "Winter.jpg",
        "lastModified": "2020-05-29T04:31:37.290Z",
        "facets": [
          "Immutable",
          "Versionable",
          "NXTag",
          "Publishable",
          "Picture",
          "Commentable",
          "HasRelatedText",
          "Thumbnail"
        ],
        "schemas": [
          {
            "name": "uid",
            "prefix": "uid"
          },
          {
            "name": "image_metadata",
            "prefix": "imd"
          },
          {
            "name": "thumbnail",
            "prefix": "thumb"
          },
          {
            "name": "file",
            "prefix": "file"
          },
          {
            "name": "common",
            "prefix": "common"
          },
          {
            "name": "dublincore",
            "prefix": "dc"
          },
          {
            "name": "relatedtext",
            "prefix": "relatedtext"
          },
          {
            "name": "picture",
            "prefix": "picture"
          },
          {
            "name": "facetedTag",
            "prefix": "nxtag"
          }
        ]
      }
      

        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 - 1 hour
                  1h

                    PagerDuty