Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
OpenCMIS 0.10.0
-
None
Description
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.