]> err.no Git - scalable-opengroupware.org/blob - SOGo/SoObjects/SOGo/AgenorUserManager.h
7df36f4dfcc6def46594ec994215f5f74bdadc7c
[scalable-opengroupware.org] / SOGo / SoObjects / SOGo / AgenorUserManager.h
1 /*
2   Copyright (C) 2004-2005 SKYRIX Software AG
3
4   This file is part of OpenGroupware.org.
5
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
9   later version.
10
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.
15
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
19   02111-1307, USA.
20 */
21
22 #ifndef __AgenorUserManager_H_
23 #define __AgenorUserManager_H_
24
25 #import <Foundation/NSObject.h>
26
27 /*
28   AgenorUserManager
29
30   TODO: document
31 */
32
33 @class NSString, NSArray, NSURL;
34 @class SOGoLRUCache;
35
36 @interface AgenorUserManager : NSObject
37 {
38   SOGoLRUCache *cnCache;
39   SOGoLRUCache *serverCache;
40   SOGoLRUCache *uidCache;
41   SOGoLRUCache *emailCache;
42   SOGoLRUCache *shareStoreCache;
43   SOGoLRUCache *shareEMailCache;
44 }
45
46 + (id)sharedUserManager;
47
48 - (NSString *)getUIDForEmail:(NSString *)_email;
49 - (NSString *)getEmailForUID:(NSString *)_uid;
50
51 /* i.e. BUTTO Hercule, CETE Lyon/DI/ET/TEST */
52 - (NSString *)getCNForUID:(NSString *)_uid;
53
54 /* i.e. hercule.butto@amelie-ida01.melanie2.i2 */
55 - (NSString *)getIMAPAccountStringForUID:(NSString *)_uid;
56
57 /* i.e. amelie-ida01.melanie2.i2 */
58 - (NSString *)getServerForUID:(NSString *)_uid;
59
60 - (NSArray *)getSharedMailboxAccountStringsForUID:(NSString *)_uid;
61 - (NSArray *)getSharedMailboxEMailsForUID:(NSString *)_uid;
62
63 - (NSURL *)getFreeBusyURLForUID:(NSString *)_uid;
64
65 @end
66
67 #endif  /* __AgenorUserManager_H_ */