[
http://jira.xwiki.org/jira/browse/XWIKI-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22605
]
Vincent Massol commented on XWIKI-2105:
---------------------------------------
Note also that I've reimplemented the notification code as a component here:
http://svn.xwiki.org/svnroot/xwiki/xwiki-platform/core/trunk/xwiki-observation/
I'd like that we use it in the core and replace the current notification
mechanism with it too but this can be done in 2 steps since the change asked
above needs to be done quickly for Curriki:
* Step 1: Marius makes the change in the activitystream and/or we apply a patch
to the current code (depends on Sergiu's own work in this area)
* Step 2: We integrate the xwiki-observation component. We could even integrate
it without removing the current notification code and only deprecate it if we
wanted.
> Notifications - Always EVENT_CHANGE
> -----------------------------------
>
> Key: XWIKI-2105
> URL: http://jira.xwiki.org/jira/browse/XWIKI-2105
> Project: XWiki Core
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.2
> Environment: Any
> Reporter: Marius Dumitru Florea
> Priority: Blocker
>
> In com.xpn.xwiki.XWiki#saveDocument(XWikiDocument, String, XWikiContext)
> there is only:
> // Notify listeners about the document change
> getNotificationManager().verify(doc, originalDocument,
> XWikiDocChangeNotificationInterface.EVENT_CHANGE, context);
> In com.xpn.xwiki.XWiki#deleteDocument(XWikiDocument, XWikiContext) there is
> only:
> getNotificationManager().verify(new XWikiDocument(doc.getSpace(),
> doc.getName()), doc, XWikiDocChangeNotificationInterface.EVENT_CHANGE,
> context);
> Other events like EVENT_NEW, EVENT_DELETE etc. must be fired. See
> com.xpn.xwiki.notify.XWikiDocChangeNotificationInterface for a full list of
> possible events.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications