Alan Gairey created CMIS-761:
--------------------------------

             Summary: Ability to add extension elements to Atom feed returned 
by query
                 Key: CMIS-761
                 URL: https://issues.apache.org/jira/browse/CMIS-761
             Project: Chemistry
          Issue Type: Improvement
          Components: opencmis-server
    Affects Versions: OpenCMIS 0.10.0
            Reporter: Alan Gairey
         Attachments: atom-feed-extensions-for-query.diff

It would be useful to be able to add extension elements to the end of the Atom 
feed that's returned by a query (when using the AtomPub bindings). This would 
allow extra query-specific metadata to be returned in the response.

For example: Alfresco uses Solr "under the hood" - by including extension 
elements in the Atom feed, extra information, such as faceting results, could 
be included in the feed.

The class {{DiscoveryService.Query}} for the AtomPub binding currently passes a 
{{null}} as the final argument to the call to {{CmisService.query}}. If it 
passed an instance of {{ExtensionDataImpl}}, the implementer of the 
{{CmisService}} interface could populate the object with the extension 
elements. These could then be written out at the end of the feed.

This update requires just a few changes to the {{DiscoveryService.Query}} and 
{{AtomFeed}} classes; I've attached an svn diff file with the changes.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to