Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1803

Enhance connector SPI to support identities coming from external repository

    Details

      Description

      In order to properly implement CMIS connector (see MODE-650) for modeshape and include support for creation at right place of sub-types of cmis:folder and cmis:document, connector SPI needs to be updated.
      To get an object ID from CMIS repository, object needs to be created first, but to create an object there may be required metadata which needs to be present, so generation of ID is possible only AFTER node get's persisted into external repo.
      This differs from current implementation where ID generated before touching external repo.
      One idea is to change signature of storeDocument function and return ID of the generated node, so repository then can update internal state with new ID.

         public abstract String storeDocument( Document document );
      

      See discussion here: MODE-1772

      Example:
      http://chemistry.apache.org/java/examples/example-create-update.html

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  vasilievip Ivan Vasyliev
                • Votes:
                  4 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: