Changes between Version 5 and Version 6 of TracDev/NotificationApi
- Timestamp:
- Jul 31, 2015, 2:17:33 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/NotificationApi
v5 v6 1 [[PageOutline(2-3 )]]1 [[PageOutline(2-3,Contents)]] 2 2 3 3 = Trac Notification API 4 4 5 == New API 6 ''(since Trac 1.1.3)'' 5 == Current API 7 6 8 The new API keeps the `IEmailSender` extension point and the `NotificationSystem` component almost unchanged from the [#OldAPI old API], but deprecates the entire `Notify` hierarchy. 7 Since Trac 1.1.3. 8 9 The current API keeps the `IEmailSender` extension point and the `NotificationSystem` component almost unchanged from the [#PreviousAPI previous API], but deprecates the entire `Notify` hierarchy. 9 10 10 11 It is replaced by a new class hierarchy. An instance of such a class contains all known data about an event that requires sending notifications: … … 16 17 17 18 === !NotificationEvent 19 18 20 Contains the following properties: 19 21 * `realm`: a string of the affected resource realm (e.g. `'ticket'` or `'wiki'`) … … 24 26 25 27 === !TicketChangeEvent 28 26 29 * `realm` is 'ticket'. 27 30 * Known values for `category` are `'created'`, `'changed'`, `'attachment added'` and `'attachment deleted'`. … … 33 36 34 37 === !BatchTicketChangeEvent 38 35 39 * `realm` is 'ticket'. 36 40 * `category` is 'batchmodify'. … … 41 45 * `action`: a ticket action controller action 42 46 43 == Old API 44 ''(since Trac 0.7, deprecated since Trac 1.1.3)'' 47 See also: /TracDev/Proposals/AdvancedNotification/NotificationApi#OpenQuestions 48 49 == Previous API 50 51 Since Trac 0.7, deprecated since Trac 1.1.3. 45 52 46 53 The original notification API consisted mainly of a class hierarchy: