Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-194

Allow JSON viewer to work with object stores other than the in-memory objectstore.

    Details

      Description

      In attempting to get the json viewer to run with the SQL object store, discovered that it makes the wrong call to the AdapterManager and so fails to load objects via its OID.

      Exploring further, realized that the SqlOid impl does include the relevant information to call the right API of AdapterManager / PersistenceSession, namely that the className (=> objectSpec) is also included.

      This change is therefore to introduce a new subtype of Oid, namely OidWithSpecification, that is a self-contained Oid, and have the json viewer depend only on object stores that support OidWithSpecification. (Note: it isn't practicable to do what the html and scimpi viewers do, which is to cache the spec per Oid in session state, since the idea is that the json viewer is entirely stateless).

      Also retrofit SqlOid to implement this new interface.

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: