Uploaded image for project: '[Read Only] - CRISP'
  1. [Read Only] - CRISP
  2. CRISP-78

Way to get access to the underlying JsonNode for external connector implementation

    XMLWordPrintable

Details

    • 0.5
    • Projects team Sprint 14

    Description

      As an example, Commercetools provides their own way and utilities to map a com.fasterxml.jackson.databind.JsonNode to their built-in POJOs:

      So, developers need to use SphereJsonUtils#readObject(com.fasterxml.jackson.databind.JsonNode jsonNode, ..) instead of using CRISP's ResourceBeanMapper. If you use the latter, it throws an exception because their built-in beans do not comply fully with Jackson annotations or bean creations.

      Therefore, it would be nice if we do the following:

      • Add Object org.onehippo.cms7.crisp.api.resource.Resource#getNodeData() in CRISP API;
      • So, after invoking #findResources(...) or #resolve(...) through CRISP, they can invoke the method and cast to com.fasterxml.jackson.databind.JsonNode by themselves;
      • And then they may use SphereJsonUtils#readObject(com.fasterxml.jackson.databind.JsonNode jsonNode, ..)

      Attachments

        Activity

          People

            Unassigned Unassigned
            wko Woonsan Ko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: