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

Reuse an existing session when retrieving documents for relation resources

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2 M1
    • Fix Version/s: 5.2 M2
    • Component/s: Relations
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      Resource adapter interface changes:

      • added Resource getResource(Serializable object, Map<String, Serializable> context) to replace Resource getResource(Object object)
      • added Serializable getResourceRepresentation(Resource resource, Map<String, Serializable> context) to replace Object getResourceRepresentation(Resource resource);

      The core session id can now be passed in context map.

      Similar methods have been added to the RelationManager interface.

      Show
      Resource adapter interface changes: added Resource getResource(Serializable object, Map<String, Serializable> context) to replace Resource getResource(Object object) added Serializable getResourceRepresentation(Resource resource, Map<String, Serializable> context) to replace Object getResourceRepresentation(Resource resource); The core session id can now be passed in context map. Similar methods have been added to the RelationManager interface.

      Description

      When transforming a relation resource into a document, a new core session is opened.
      This could be avoided using the session id as a reference for an existing session.

      Some API needs to be added so that this context variable (the session id) can be passed to the transformation chain.

        Attachments

          Activity

            People

            • Assignee:
              atchertchian Anahide Tchertchian
              Reporter:
              atchertchian Anahide Tchertchian
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: