2 Copyright (C) 2004-2005 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __AgenorUserManager_H_
23 #define __AgenorUserManager_H_
25 #import <Foundation/NSObject.h>
33 @class NSString, NSArray, NSURL, NSUserDefaults;
37 @interface AgenorUserManager : NSObject
39 SOGoLRUCache *cnCache;
40 SOGoLRUCache *serverCache;
41 SOGoLRUCache *uidCache;
42 SOGoLRUCache *emailCache;
43 SOGoLRUCache *shareStoreCache;
44 SOGoLRUCache *shareEMailCache;
47 + (id)sharedUserManager;
49 - (NSString *)getUIDForEmail:(NSString *)_email;
50 - (NSString *)getEmailForUID:(NSString *)_uid;
52 - (NSString *)getUIDForICalPerson:(iCalPerson *)_person;
53 /* may insert NSNulls into returned array if _mapStrictly -> YES */
54 - (NSArray *)getUIDsForICalPersons:(NSArray *)_persons
55 applyStrictMapping:(BOOL)_mapStrictly;
57 /* i.e. BUTTO Hercule, CETE Lyon/DI/ET/TEST */
58 - (NSString *)getCNForUID:(NSString *)_uid;
60 /* i.e. hercule.butto@amelie-ida01.melanie2.i2 */
61 - (NSString *)getIMAPAccountStringForUID:(NSString *)_uid;
63 /* i.e. amelie-ida01.melanie2.i2 */
64 - (NSString *)getServerForUID:(NSString *)_uid;
66 - (NSArray *)getSharedMailboxAccountStringsForUID:(NSString *)_uid;
67 - (NSArray *)getSharedMailboxEMailsForUID:(NSString *)_uid;
69 - (NSURL *)getFreeBusyURLForUID:(NSString *)_uid;
71 - (NSUserDefaults *)getUserDefaultsForUID:(NSString *)_uid;
75 #endif /* __AgenorUserManager_H_ */