1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| Quintiq file version 2.0
| #parent: #root
| Method SetSubscribers (
| LibCal_Calendars subscribers_i,
| Boolean useLeadingPeriod_i
| )
| {
| TextBody:
| [*
| // Remove the current subscriptions from which the calendars are not part of the new set of subscribers.
| traverse( this, Subscription, subscription,
| subscribers_i.Find( subscription.Calendar() ) < 0 )
| {
| subscription.Delete();
| }
|
| // Add new participants if necessary.
| this.AddSubscribers( subscribers_i, useLeadingPeriod_i );
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|