Approach to aggregate both types is possible. However this will require some changes in existing APIs. There is the doc.getComments() API which could be extended with a parameter saying wether we want to add the annotations or not.
The default behavior could be a setting in the xwiki.cfg. This might also require to update the REST api. Ludovic 2012/2/16 Eduard Moraru <[email protected]> > Hi devs, > > Based on the work done by Anca and Sorin doring the XWiki 2011 Seminar > Hackaton, I`ve made the following pull request [1] to integrate their work > with minor changes. > > A summary of the changes contained by the pull request are described in the > jira issue [2]. > > The problem at the current stage, as Jerome also hinted, is that we need to > do a migration script to make the existing annotations (in an upgrade > scenario) use the XWikiComments class instead so that they can be picked up > by commentsinline.vm. However, this might lose the possibility to provide > custom annotations. > > An alternative would be to make commentsinline.vm use the annotation > service and handle and retrieve both Annotation and XWikiComment objects. > This way, the current annotations should need no migration script since > they are using a class configured in the AnnotationConfig page that the > annotation service knows how to handle. > > WDYT? > > Thanks, > Eduard > > ---------- > [1] https://github.com/xwiki/xwiki-platform/pull/34 > [2] http://jira.xwiki.org/browse/XWIKI-7540 > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > -- Ludovic Dubost Founder and CEO Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

