mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 11:25:24 +00:00
Monotone-Parent: f95c202e8a677fb1f00e60e9dde0d8bb8e420572
Monotone-Revision: 006f9f5fa97b150e56360e2767123d6b1e77e8cc Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-11-15T19:02:23 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#import <SoObjects/Appointments/SOGoAppointmentFolders.h>
|
||||
#import <SoObjects/Appointments/SOGoAppointmentObject.h>
|
||||
#import <SoObjects/Appointments/SOGoTaskObject.h>
|
||||
#import <SoObjects/SOGo/LDAPUserManager.h>
|
||||
#import <SoObjects/SOGo/NSString+Utilities.h>
|
||||
#import <SoObjects/SOGo/SOGoUser.h>
|
||||
#import <SoObjects/SOGo/SOGoPermissions.h>
|
||||
@@ -65,6 +66,7 @@
|
||||
componentOwner = @"";
|
||||
organizer = nil;
|
||||
attendeesNames = nil;
|
||||
attendeesUIDs = nil;
|
||||
attendeesEmails = nil;
|
||||
calendarList = nil;
|
||||
}
|
||||
@@ -86,6 +88,7 @@
|
||||
[cycleEnd release];
|
||||
[url release];
|
||||
[attendeesNames release];
|
||||
[attendeesUIDs release];
|
||||
[attendeesEmails release];
|
||||
[calendarList release];
|
||||
|
||||
@@ -96,10 +99,14 @@
|
||||
{
|
||||
NSEnumerator *attendees;
|
||||
iCalPerson *currentAttendee;
|
||||
NSMutableString *names, *emails;
|
||||
NSMutableString *names, *uids, *emails;
|
||||
NSString *uid;
|
||||
LDAPUserManager *um;
|
||||
|
||||
names = [NSMutableString new];
|
||||
uids = [NSMutableString new];
|
||||
emails = [NSMutableString new];
|
||||
um = [LDAPUserManager sharedUserManager];
|
||||
|
||||
attendees = [[component attendees] objectEnumerator];
|
||||
currentAttendee = [attendees nextObject];
|
||||
@@ -107,12 +114,18 @@
|
||||
{
|
||||
[names appendFormat: @"%@,", [currentAttendee cn]];
|
||||
[emails appendFormat: @"%@,", [currentAttendee rfc822Email]];
|
||||
uid = [um getUIDForEmail: [currentAttendee rfc822Email]];
|
||||
if (uid != nil)
|
||||
[uids appendFormat: @"%@,", uid];
|
||||
else
|
||||
[uids appendString: @","];
|
||||
currentAttendee = [attendees nextObject];
|
||||
}
|
||||
|
||||
if ([names length] > 0)
|
||||
{
|
||||
ASSIGN (attendeesNames, [names substringToIndex: [names length] - 1]);
|
||||
ASSIGN (attendeesUIDs, [uids substringToIndex: [uids length] - 1]);
|
||||
ASSIGN (attendeesEmails,
|
||||
[emails substringToIndex: [emails length] - 1]);
|
||||
}
|
||||
@@ -242,6 +255,16 @@
|
||||
return attendeesNames;
|
||||
}
|
||||
|
||||
- (void) setAttendeesUIDs: (NSString *) newAttendeesUIDs
|
||||
{
|
||||
ASSIGN (attendeesUIDs, newAttendeesUIDs);
|
||||
}
|
||||
|
||||
- (NSString *) attendeesUIDs
|
||||
{
|
||||
return attendeesUIDs;
|
||||
}
|
||||
|
||||
- (void) setAttendeesEmails: (NSString *) newAttendeesEmails
|
||||
{
|
||||
ASSIGN (attendeesEmails, newAttendeesEmails);
|
||||
|
||||
Reference in New Issue
Block a user