diff --git a/SoObjects/SOGo/SOGoGCSFolder.h b/SoObjects/SOGo/SOGoGCSFolder.h index 9eab2ff90..7b23b0a52 100644 --- a/SoObjects/SOGo/SOGoGCSFolder.h +++ b/SoObjects/SOGo/SOGoGCSFolder.h @@ -1,6 +1,6 @@ /* Copyright (C) 2004-2005 SKYRIX Software AG - Copyright (C) 2006-2010 Inverse inc. + Copyright (C) 2006-2013 Inverse inc. This file is part of SOGo. @@ -125,6 +125,9 @@ - (NSString *) davCollectionTag; +- (NSArray *) syncTokenFieldsWithProperties: (NSDictionary *) properties + matchingSyncToken: (NSString *) syncToken; + /* multiget helper */ - (WOResponse *) performMultigetInContext: (WOContext *) queryContext inNamespace: (NSString *) namespace; diff --git a/SoObjects/SOGo/SOGoGCSFolder.m b/SoObjects/SOGo/SOGoGCSFolder.m index f5b2ee691..99a92ce40 100644 --- a/SoObjects/SOGo/SOGoGCSFolder.m +++ b/SoObjects/SOGo/SOGoGCSFolder.m @@ -1093,8 +1093,14 @@ static NSArray *childRecordFields = nil; return @""; } -- (NSArray *) _fetchSyncTokenFields: (NSDictionary *) properties - matchingSyncToken: (NSString *) syncToken +// +// Method used to get all changes since a particular sync token +// +// It'll return standard properties (c_name, c_creationdate, etc...) +// of new, modified and deleted components. +// +- (NSArray *) syncTokenFieldsWithProperties: (NSDictionary *) properties + matchingSyncToken: (NSString *) syncToken { /* TODO: - validation: @@ -1400,8 +1406,8 @@ static NSArray *childRecordFields = nil; propElement = [(NGDOMNodeWithChildren *) documentElement firstElementWithTag: @"prop" inNamespace: XMLNS_WEBDAV]; properties = [self parseDAVRequestedProperties: propElement]; - records = [self _fetchSyncTokenFields: properties - matchingSyncToken: syncToken]; + records = [self syncTokenFieldsWithProperties: properties + matchingSyncToken: syncToken]; [self _appendComponentProperties: [properties allKeys] fromRecords: records matchingSyncToken: [syncToken intValue]