#import <Cocoa/Cocoa.h>
#import <DirectoryService/DirectoryService.h>
enum {
DIRECTORYSCOPE_UNDEFINED = -1,
DIRECTORYSCOPE_LOCAL = 0,
DIRECTORYSCOPE_SEARCH = 1
};
@class ODSession;
@class ODNode;
@interface JABDirectory : NSObject {
NSInteger _searchScope;
ODSession *_directorySession; ODNode *_directoryNode;
}
@property(assign, readwrite) NSInteger searchScope;
@property(retain, readwrite) ODSession *directorySession;
@property(retain, readwrite) ODNode *directoryNode;
+ (id) jabDirectory;
+ (id) jabDirectoryWithScope: (NSInteger) iScope;
+ (NSString *) getRecordName: (NSObject *) aRec;
+ (NSString *) getAttributeValue: (NSString *) attribKey fromRecord: (NSObject *) aRec;
- (id) initWithScope: (NSInteger) iScope;
- (void) dealloc;
- (void) openLocalNode;
- (void) openSearchNode;
- (void) openNodeWithScope: (NSInteger) iScope;
- (void) closeNode;
- (BOOL) isNodeOpen;
- (NSString *) findAttribute: (NSString *) attrName inRecord: (NSString *) recName ofType: (NSString *) recType;
- (NSArray *) findAllRecordsOfType: (NSString *) recType;
- (NSString *) findGroupNameForGeneratedUID: (NSString *) groupGuid;
@end