mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-22 23:02:43 +00:00
Monotone-Parent: 873e19c6a1402fe9683b74b247566e9aced6d354
Monotone-Revision: 744c3e733b57edb33736f8baa6507148efdf032a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-22T20:44:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
2007-07-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder -davNamespaces]): added new overriden
|
||||
method that declares the DAV namespace related to CardDAV.
|
||||
([SOGoContactGCSFolder -davComplianceClassesInContext:]): new
|
||||
method that declares the "access-control" and "addressbook-access"
|
||||
classes to the list.
|
||||
|
||||
* SoObjects/Appointments/SOGoAppointmentFolder.m
|
||||
([-lookupActionForCalDAVMethod:]): removed method.
|
||||
([SOGoAppointmentFolder -davNamespaces]): added new overriden
|
||||
|
||||
@@ -19,10 +19,17 @@
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <NGObjWeb/NSException+HTTP.h>
|
||||
#import <NGObjWeb/SoObject+SoDAV.h>
|
||||
#import <NGObjWeb/WOContext.h>
|
||||
#import <NGObjWeb/WORequest.h>
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
#import <EOControl/EOQualifier.h>
|
||||
#import <EOControl/EOSortOrdering.h>
|
||||
#import <GDLContentStore/GCSFolder.h>
|
||||
|
||||
#import "common.h"
|
||||
|
||||
#import "SOGoContactGCSEntry.h"
|
||||
#import "SOGoContactGCSFolder.h"
|
||||
|
||||
@@ -180,6 +187,28 @@
|
||||
return records;
|
||||
}
|
||||
|
||||
- (NSArray *) davNamespaces
|
||||
{
|
||||
return [NSArray arrayWithObject: @"urn:ietf:params:xml:ns:carddav"];
|
||||
}
|
||||
|
||||
- (NSArray *) davComplianceClassesInContext: (id)_ctx
|
||||
{
|
||||
NSMutableArray *classes;
|
||||
NSArray *primaryClasses;
|
||||
|
||||
classes = [NSMutableArray new];
|
||||
[classes autorelease];
|
||||
|
||||
primaryClasses = [super davComplianceClassesInContext: _ctx];
|
||||
if (primaryClasses)
|
||||
[classes addObjectsFromArray: primaryClasses];
|
||||
[classes addObject: @"access-control"];
|
||||
[classes addObject: @"addressbook-access"];
|
||||
|
||||
return classes;
|
||||
}
|
||||
|
||||
- (NSString *) groupDavResourceType
|
||||
{
|
||||
return @"vcard-collection";
|
||||
|
||||
Reference in New Issue
Block a user