You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2014/12/12 17:15:13 UTC

[jira] [Commented] (CMIS-876) In AtomPub bindings, output full Atom entries in response to CMIS query command

    [ https://issues.apache.org/jira/browse/CMIS-876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244389#comment-14244389 ] 

Florian Müller commented on CMIS-876:
-------------------------------------

A CMIS query does not return objects. It returns a list of bags of properties. In most cases one bag of properties belongs to one object, but that's not always the case. For example, if you JOIN object types, these bags can contains properties of different objects. Because most Atom links address excatly one object, it doesn't make sense to add those links to a query hit and it would be sematiclly wrong.

> In AtomPub bindings, output full Atom entries in response to CMIS query command
> -------------------------------------------------------------------------------
>
>                 Key: CMIS-876
>                 URL: https://issues.apache.org/jira/browse/CMIS-876
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-server
>    Affects Versions: OpenCMIS 0.12.0
>            Reporter: Alan Gairey
>         Attachments: full-atom-entries-in-query-response.diff
>
>
> 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:
> {code}
> writeQueryResultEntry(entry, result, "id-" + idCounter, now, cmisVersion);
> {code}
> with a call to the writeObjectEntry method instead:
> {code}
> writeObjectEntry(service, entry, result, null, repositoryId, null, null, baseUrl, false, cmisVersion);
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)