Monotone-Parent: 666ed5ba35b9152f0dcf8f1e23dcc1824cdac1f6

Monotone-Revision: 3b18f3c2b4f3747d9082d436755de2ea68743aa6

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-12T20:58:57
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-12 20:58:57 +00:00
parent b82cb69f21
commit 88ff515222
3 changed files with 26 additions and 0 deletions
+4
View File
@@ -1,5 +1,9 @@
2006-10-12 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentFolder.m
([SOGoAppointmentFolder -deleteEntriesWithIds:ids]): new method
that delete identified entries in batch.
* UI/SOGoUI/UIxComponent.m ([UIxComponent
-jsCloseWithRefreshMethod:methodName]): new method with explicit purpose.
@@ -75,6 +75,8 @@
- (NSArray *) fetchFreebusyInfosFrom: (NSCalendarDate *) _startDate
to: (NSCalendarDate *) _endDate;
- (void) deleteEntriesWithIds: (NSArray *) ids;
/* URL generation */
- (NSString *) baseURLForAptWithUID: (NSString *) _uid
@@ -720,6 +720,26 @@ static NSNumber *sharedYes = nil;
return [self fetchFields: infos from: _startDate to: _endDate component: _component];
}
- (void) deleteEntriesWithIds: (NSArray *) ids
{
Class objectClass;
unsigned int count, max;
NSString *currentId;
id deleteObject;
max = [ids count];
for (count = 0; count < max; count++)
{
currentId = [ids objectAtIndex: count];
objectClass
= [self objectClassForResourceNamed: currentId];
deleteObject = [objectClass objectWithName: currentId
inContainer: self];
[deleteObject delete];
[deleteObject primaryDelete];
}
}
/* URL generation */
- (NSString *) baseURLForAptWithUID: (NSString *)_uid