2009-09-25 16:42:33 +02:00
|
|
|
/* SOGoUserManager.h - this file is part of SOGo
|
2007-05-09 21:07:35 +02:00
|
|
|
*
|
2009-02-24 02:54:59 +01:00
|
|
|
* Copyright (C) 2007-2009 Inverse inc.
|
2007-05-09 21:07:35 +02:00
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2009-09-25 16:42:33 +02:00
|
|
|
#ifndef SOGOUSERMANAGER_H
|
|
|
|
#define SOGOUSERMANAGER_H
|
2007-05-09 21:07:35 +02:00
|
|
|
|
|
|
|
#import <Foundation/NSObject.h>
|
|
|
|
|
|
|
|
@class NSDictionary;
|
|
|
|
@class NSMutableDictionary;
|
|
|
|
@class NSString;
|
|
|
|
@class NSTimer;
|
2009-04-30 23:17:55 +02:00
|
|
|
@class NGLdapEntry;
|
2007-05-09 21:07:35 +02:00
|
|
|
|
|
|
|
@class LDAPSource;
|
|
|
|
|
2009-09-25 16:42:33 +02:00
|
|
|
@interface SOGoUserManager : NSObject
|
2007-05-09 21:07:35 +02:00
|
|
|
{
|
2009-02-24 02:54:59 +01:00
|
|
|
@private
|
2009-09-25 16:42:33 +02:00
|
|
|
NSMutableDictionary *_sources;
|
|
|
|
NSMutableDictionary *_sourcesMetadata;
|
2007-05-09 21:07:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (id) sharedUserManager;
|
|
|
|
|
2008-02-07 17:53:19 +01:00
|
|
|
+ (BOOL) defaultMailDomainIsConfigured;
|
|
|
|
|
2007-05-09 21:07:35 +02:00
|
|
|
- (NSArray *) sourceIDs;
|
2007-10-10 20:44:26 +02:00
|
|
|
- (NSDictionary *) metadataForSourceID: (NSString *) sourceID;
|
2007-05-09 21:07:35 +02:00
|
|
|
- (NSArray *) authenticationSourceIDs;
|
|
|
|
- (NSArray *) addressBookSourceIDs;
|
|
|
|
|
|
|
|
- (LDAPSource *) sourceWithID: (NSString *) sourceID;
|
|
|
|
- (NSString *) displayNameForSourceWithID: (NSString *) sourceID;
|
|
|
|
- (NSDictionary *) contactInfosForUserWithUIDorEmail: (NSString *) uid;
|
|
|
|
- (NSArray *) fetchContactsMatching: (NSString *) match;
|
2008-07-28 22:29:24 +02:00
|
|
|
- (NSArray *) fetchUsersMatching: (NSString *) filter;
|
2007-05-09 21:07:35 +02:00
|
|
|
|
|
|
|
- (NSString *) getCNForUID: (NSString *) uid;
|
|
|
|
- (NSString *) getEmailForUID: (NSString *) uid;
|
2007-05-30 22:11:19 +02:00
|
|
|
- (NSString *) getFullEmailForUID: (NSString *) uid;
|
2008-05-22 17:52:25 +02:00
|
|
|
- (NSString *) getImapLoginForUID: (NSString *) uid;
|
2007-05-09 21:07:35 +02:00
|
|
|
- (NSString *) getUIDForEmail: (NSString *) email;
|
2009-05-03 19:50:57 +02:00
|
|
|
- (NSString *) getLoginForDN: (NSString *) theDN;
|
2007-05-09 21:07:35 +02:00
|
|
|
|
|
|
|
- (BOOL) checkLogin: (NSString *) login
|
|
|
|
andPassword: (NSString *) password;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2009-09-25 16:42:33 +02:00
|
|
|
#endif /* SOGOUSERMANAGER_H */
|