Monotone-Parent: c8aafc081b56ac07184d9161b10f7f392068fc71

Monotone-Revision: d7db5635191ba2f21ed857960885518d9ff22bc4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-02-09T21:21:35
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-02-09 21:21:35 +00:00
parent ff11c1bfe4
commit ed76724cc5
4 changed files with 50 additions and 8 deletions
+11
View File
@@ -1,5 +1,16 @@
2007-02-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoFolder.m ([SOGoFolder -create]): new method
that requests the folder manager to create a folder table with the
specified type at the specified path. The type is taken from [self
folderType].
* SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder
-folderType]): implemented.
* SoObjects/Appointments/SOGoAppointmentFolder.m
([SOGoAppointmentFolder -folderType]): implemented.
* SoObjects/Contacts/SOGoContactFolders.m ([SOGoContactFolders
-appendPersonalSourcesInContext:context]): we now fetch all
folders with type "Contact" that belong to the current user.
@@ -23,9 +23,11 @@
#import <SaxObjC/SaxObjC.h>
#import <NGCards/NGCards.h>
#import <NGObjWeb/SoObject+SoDAV.h>
#import <NGObjWeb/WOContext.h>
#import <NGObjWeb/WOMessage.h>
#import <NGExtensions/NGCalendarDateRange.h>
#import <NGObjWeb/SoClassSecurityInfo.h>
// #import <NGObjWeb/SoClassSecurityInfo.h>
#import <SOGo/SOGoCustomGroupFolder.h>
#import <SOGo/AgenorUserManager.h>
#import <SOGo/SOGoPermissions.h>
@@ -58,7 +60,7 @@ static NSNumber *sharedYes = nil;
{
NGLoggerManager *lm;
static BOOL didInit = NO;
SoClassSecurityInfo *securityInfo;
// SoClassSecurityInfo *securityInfo;
if (didInit) return;
didInit = YES;
@@ -1081,6 +1083,11 @@ static NSNumber *sharedYes = nil;
/* folder type */
- (NSString *) folderType
{
return @"Appointment";
}
- (NSString *) outlookFolderClass
{
return @"IPF.Appointment";
@@ -200,6 +200,11 @@
/* folder type */
- (NSString *) folderType
{
return @"Contact";
}
- (NSString *)outlookFolderClass {
return @"IPF.Contact";
}
+25 -6
View File
@@ -20,13 +20,14 @@
*/
#import <NGObjWeb/SoObject.h>
#import <GDLContentStore/GCSFolderManager.h>
#import <GDLContentStore/GCSFolder.h>
#import <GDLContentStore/GCSFolderType.h>
#include "SOGoFolder.h"
#include "common.h"
#include <GDLContentStore/GCSFolderManager.h>
#include <GDLContentStore/GCSFolder.h>
#include <unistd.h>
#include <stdlib.h>
#import "SOGoFolder.h"
#import "common.h"
#import <unistd.h>
#import <stdlib.h>
#import "SOGoAclsFolder.h"
@@ -83,6 +84,7 @@
ASSIGNCOPY(self->ocsPath, _path);
}
- (NSString *)ocsPath {
return self->ocsPath;
}
@@ -109,6 +111,23 @@
return folder;
}
- (NSString *) folderType
{
return @"";
}
- (BOOL) create
{
NSException *result;
[GCSFolderType setFolderNamePrefix: @"SOGo_"];
result = [[self folderManager] createFolderOfType: [self folderType]
atPath: ocsPath];
return (result == nil);
}
- (NSArray *)fetchContentObjectNames {
NSArray *fields, *records;