mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 21:53:19 +00:00
Monotone-Parent: e12096cc6ff6073a01d0cbde47b002dad0ed03eb
Monotone-Revision: 6de89dc14458ae60cd4838acc7d8fa5d2a91c345 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-09-14T23:16:48 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#import "NSArray+Utilities.h"
|
||||
#import "NSString+Utilities.h"
|
||||
|
||||
#import "SOGoContentObject.h"
|
||||
#import "SOGoPermissions.h"
|
||||
#import "SOGoUser.h"
|
||||
|
||||
@@ -338,6 +339,22 @@ static NSString *defaultUserID = @"<default>";
|
||||
&& [records count] > 0);
|
||||
}
|
||||
|
||||
- (void) deleteEntriesWithIds: (NSArray *) ids
|
||||
{
|
||||
unsigned int count, max;
|
||||
NSString *currentID;
|
||||
SOGoContentObject *deleteObject;
|
||||
|
||||
max = [ids count];
|
||||
for (count = 0; count < max; count++)
|
||||
{
|
||||
currentID = [ids objectAtIndex: count];
|
||||
deleteObject = [self lookupName: currentID
|
||||
inContext: context acquire: NO];
|
||||
[deleteObject delete];
|
||||
}
|
||||
}
|
||||
|
||||
- (NSDictionary *) fetchContentStringsAndNamesOfAllObjects
|
||||
{
|
||||
NSDictionary *files;
|
||||
|
||||
Reference in New Issue
Block a user