Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-876

In AtomPub bindings, output full Atom entries in response to CMIS query command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • OpenCMIS 0.12.0
    • None
    • opencmis-server
    • None

    Description

      Currently, in the AtomPub feed returned in response to a CMIS query command, the Atom entry included for each hit does not include the Atom links for that entry.

      It would be useful if the Atom entries in the response also included their links (self link, edit link, etc.).

      I believe this can be done by replacing the call to writeQueryResultEntry at line 187 in DiscoveryService.java:

      writeQueryResultEntry(entry, result, "id-" + idCounter, now, cmisVersion);
      

      with a call to the writeObjectEntry method instead:

      writeObjectEntry(service, entry, result, null, repositoryId, null, null, baseUrl, false, cmisVersion);
      

      I have attached an svn diff file with the changes.

      With this change, each Atom entry in the response also includes all its defined Atom links.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gairey Alan Gairey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: