Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-43

Make the unmarshallers pluggable on the Nuxeo object

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0, 2.1.0
    • Component/s: Browser, Node.js

      Description

      Allow to register unmarshallers based on the 'entity-type' field.
      Those unmarshallers will be used when retrieving a JSON response with an 'entity-type' field.

      Add default ones for:

      • document
      • documents
      • user
      • group
      • directory

      Let the user be able to register custom ones:

      Nuxeo.registerUnmarshaller('document', DocumentMarshaller);
      Nuxeo.registerUnmarshaller('user', UserMarshaller);
      ...
      

      Those unmarshallers will be called at the same place, in Nuxeo#_http method based on the resolved response.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: