mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 14:57:12 +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:
1 parent
83b1c30e43
commit
5e1a585643
5 files changed
+22
-22
No files matched your search
@@ -66,6 +66,8 @@
|
||||
/* lower level fetches */
|
||||
- (BOOL) nameExistsInFolder: (NSString *) objectName;
|
||||
|
||||
- (void) deleteEntriesWithIds: (NSArray *) ids;
|
||||
|
||||
- (NSArray *) fetchContentObjectNames;
|
||||
- (NSDictionary *) fetchContentStringsAndNamesOfAllObjects;
|
||||
|
||||
|
||||
@@ -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