chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <>
Subject [jira] [Commented] (CMIS-876) In AtomPub bindings, output full Atom entries in response to CMIS query command
Date Fri, 12 Dec 2014 16:36:13 GMT


Florian Müller commented on CMIS-876:

It depends on your client. It can treat a query hit as an object. The OpenCMIS client API
has the Session.queryObjects() method that does exactly that. 
Aparts from that, switch to the Browser Binding if you can. It's siginifcantlly faster, more
compact, and doesn't require any links,

> In AtomPub bindings, output full Atom entries in response to CMIS query command
> -------------------------------------------------------------------------------
>                 Key: CMIS-876
>                 URL:
>             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
> {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,
> {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

This message was sent by Atlassian JIRA

View raw message