]> err.no Git - scalable-opengroupware.org/blob - SoObjects/SOGo/AgenorUserManager.h
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1045 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / 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, NSUserDefaults, NSMutableDictionary, NSTimer;
34 @class NSDictionary;
35 @class iCalPerson;
36
37 @interface AgenorUserManager : NSObject
38 {
39   NSMutableDictionary *cnCache;
40   NSMutableDictionary *serverCache;
41   NSMutableDictionary *uidCache;
42   NSMutableDictionary *emailCache;
43   NSMutableDictionary *shareStoreCache;
44   NSMutableDictionary *shareEMailCache;
45   NSMutableDictionary *changeInternetAccessCache;
46   NSMutableDictionary *internetAutoresponderFlagCache;
47   NSMutableDictionary *intranetAutoresponderFlagCache;
48   NSTimer *gcTimer;
49 }
50
51 + (id)sharedUserManager;
52
53 - (NSString *)getUIDForEmail:(NSString *)_email;
54 - (NSString *)getEmailForUID:(NSString *)_uid;
55
56 - (iCalPerson *) iCalPersonWithUid: (NSString *) uid;
57
58 - (NSString *) getUIDForICalPerson: (iCalPerson *) _person;
59 /* may insert NSNulls into returned array if _mapStrictly -> YES */
60 - (NSArray  *)getUIDsForICalPersons:(NSArray *)_persons
61   applyStrictMapping:(BOOL)_mapStrictly;
62
63 /* i.e. BUTTO Hercule, CETE Lyon/DI/ET/TEST */
64 - (NSString *)getCNForUID:(NSString *)_uid;
65
66 /* i.e. hercule.butto@amelie-ida01.melanie2.i2 */
67 - (NSString *)getIMAPAccountStringForUID:(NSString *)_uid;
68
69 /* i.e. amelie-ida01.melanie2.i2 */
70 - (NSString *)getServerForUID:(NSString *)_uid;
71
72 - (NSArray *)getSharedMailboxAccountStringsForUID:(NSString *)_uid;
73 - (NSArray *)getSharedMailboxEMailsForUID:(NSString *)_uid;
74 - (NSDictionary *)getSharedMailboxesAndEMailsForUID:(NSString *)_uid;
75
76 - (NSURL *)getFreeBusyURLForUID:(NSString *)_uid;
77
78 - (NSUserDefaults *) getUserDefaultsForUID: (NSString *) uid;
79 - (NSUserDefaults *) getUserSettingsForUID: (NSString *) uid;
80
81 - (BOOL)isUserAllowedToChangeSOGoInternetAccess:(NSString *)_uid;
82
83 - (BOOL)isInternetAutoresponderEnabledForUser:(NSString *)_uid;
84 - (BOOL)isIntranetAutoresponderEnabledForUser:(NSString *)_uid;
85
86 @end
87
88 #endif  /* __AgenorUserManager_H_ */