See ChangeLog

Monotone-Parent: 2d01f07e3065ada858d69113aed1fd68f365ab66
Monotone-Revision: 216cfb18d3e04f9ead5aaae0aa501e44f20b18df

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-12-23T18:43:37
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2008-12-23 18:43:37 +00:00
parent ea017e67b6
commit 7c64a77651
6 changed files with 38 additions and 19 deletions

View File

@@ -1,3 +1,12 @@
2008-12-23 Ludovic Marcotte <lmarcotte@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolder.{h,m}
Added an additional parameter to fetchFields:...
so that we can avoid stripping relevant information.
This is useful when verifying the freebusy of
meeting participants as we must not strip the
c_partstates/c_partmails fields.
2008-12-23 Francis Lachapelle <flachapelle@inverse.ca>
* UI/Scheduler/UIxAppointmentEditor.m ([UIxAppointmentEditor

View File

@@ -1,5 +1,6 @@
/*
Copyright (C) 2004-2005 SKYRIX Software AG
Copyright (C) 2007-2008 Inverse inc.
This file is part of OpenGroupware.org.
@@ -74,13 +75,14 @@
/* fetching */
- (NSArray *) fetchFields: (NSArray *) _fields
from: (NSCalendarDate *) _startDate
to: (NSCalendarDate *) _endDate
title: (NSString *) title
component: (id) _component
additionalFilters: (NSString *) filters;
- (NSArray *) fetchFields: (NSArray *) _fields
from: (NSCalendarDate *) _startDate
to: (NSCalendarDate *) _endDate
title: (NSString *) title
component: (id) _component
additionalFilters: (NSString *) filters
includeProtectedInformation: (BOOL) _includeProtectedInformation;
- (NSArray *) fetchCoreInfosFrom: (NSCalendarDate *) _startDate
to: (NSCalendarDate *) _endDate
title: (NSString *) title

View File

@@ -838,6 +838,8 @@ static Class sogoAppointmentFolderKlass = Nil;
{
stripFields = [[NSMutableArray alloc] initWithCapacity: [fields count]];
[stripFields setArray: fields];
// What we keep....
[stripFields removeObjectsInArray: [NSArray arrayWithObjects: @"c_name",
@"c_uid", @"c_startdate",
@"c_enddate", @"c_isallday",
@@ -877,12 +879,14 @@ static Class sogoAppointmentFolderKlass = Nil;
}
}
- (NSArray *) fetchFields: (NSArray *) _fields
from: (NSCalendarDate *) _startDate
to: (NSCalendarDate *) _endDate
title: (NSString *) title
component: (id) _component
additionalFilters: (NSString *) filters
- (NSArray *) fetchFields: (NSArray *) _fields
from: (NSCalendarDate *) _startDate
to: (NSCalendarDate *) _endDate
title: (NSString *) title
component: (id) _component
additionalFilters: (NSString *) filters
includeProtectedInformation: (BOOL) _includeProtectedInformation;
{
EOQualifier *qualifier;
GCSFolder *folder;
@@ -994,13 +998,10 @@ static Class sogoAppointmentFolderKlass = Nil;
[self debugWithFormat:@"returning %i records", [ma count]];
currentLogin = [[context activeUser] login];
if (![currentLogin isEqualToString: owner])
if (![currentLogin isEqualToString: owner] && !_includeProtectedInformation)
[self _fixupProtectedInformation: [ma objectEnumerator]
inFields: _fields
forUser: currentLogin];
// [ma makeObjectsPerform: @selector (setObject:forKey:)
// withObject: owner
// withObject: @"owner"];
if (rememberRecords)
[self _rememberRecords: ma];
@@ -2226,11 +2227,14 @@ static Class sogoAppointmentFolderKlass = Nil;
infos = [[NSArray alloc] initWithObjects: @"c_partmails", @"c_partstates",
@"c_isopaque", @"c_status", @"c_cycleinfo", @"c_orgmail", nil];
// We MUST include the protected information whenc checking for freebusy info as
// we rely on the c_partmails/c_partstates fields for many operations.
return [self fetchFields: infos
from: _startDate to: _endDate
title: nil
component: @"vevent"
additionalFilters: nil];
additionalFilters: nil
includeProtectedInformation: YES];
}
- (NSArray *) fetchCoreInfosFrom: (NSCalendarDate *) _startDate
@@ -2262,7 +2266,8 @@ static Class sogoAppointmentFolderKlass = Nil;
return [self fetchFields: infos from: _startDate to: _endDate title: title
component: _component
additionalFilters: filters];
additionalFilters: filters
includeProtectedInformation: NO];
}
/* URL generation */

View File

@@ -1,5 +1,6 @@
/*
Copyright (C) 2004-2005 SKYRIX Software AG
Copyright (C) 2007-2008 Inverse inc.
This file is part of OpenGroupware.org.

View File

@@ -1,5 +1,6 @@
/*
Copyright (C) 2004-2005 SKYRIX Software AG
Copyright (C) 2007-2008 Inverse inc.
This file is part of OpenGroupware.org.

View File

@@ -34,6 +34,7 @@
- (NSString *) mailAddress;
- (NSString *) uid;
- (BOOL) hasSentBy;
- (NSString *) sentBy;
@end