Monotone-Parent: 0c4734653a7d9bf2c83bb1be51525aee8006bf7a

Monotone-Revision: ebf9e259f35f824bac1d65aaaeb22d27c2e81357

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-06-01T20:45:16
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-06-01 20:45:16 +00:00
parent 73cc84de3e
commit 671992802b
3 changed files with 25 additions and 16 deletions
+9
View File
@@ -1,5 +1,14 @@
2007-06-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Contacts/SOGoContactLDAPFolder.m
([SOGoContactLDAPFolder -init]): no longer handle the
nameInContainer no the container ivars. They were removed because
this class is a descendant of SOGoObject which already has them.
([SOGoContactLDAPFolder -davDisplayName]): new overriden method
returning "displayName".
([SOGoContactLDAPFolder -isFolderish]): new overriden method
returning "YES".
* SoObjects/Appointments/SOGoCalendarComponent.m
([SOGoCalendarComponent -isOrganizerOrOwner:user]): commented out.
([SOGoCalendarComponent -findParticipant:user]): new name for
@@ -31,7 +31,6 @@
@interface SOGoContactLDAPFolder : SOGoObject <SOGoContactFolder>
{
NSString *name;
NSString *displayName;
LDAPSource *ldapSource;
NSMutableDictionary *entries;
+16 -15
View File
@@ -70,9 +70,7 @@
{
if ((self = [super init]))
{
name = nil;
displayName = nil;
container = nil;
entries = nil;
ldapSource = nil;
}
@@ -84,20 +82,18 @@
andDisplayName: (NSString *) newDisplayName
inContainer: (SOGoObject *) newContainer
{
self = [self init];
ASSIGN (name, newName);
ASSIGN (displayName, newDisplayName);
ASSIGN (container, newContainer);
if ((self = [self initWithName: newName
inContainer: newContainer]))
{
ASSIGN (displayName, newDisplayName);
}
return self;
}
- (void) dealloc
{
[name release];
[displayName release];
[container release];
[entries release];
[ldapSource release];
[super dealloc];
@@ -113,11 +109,6 @@
return displayName;
}
- (NSString *) nameInContainer
{
return name;
}
- (id) lookupName: (NSString *) objectName
inContext: (WOContext *) lookupContext
acquire: (BOOL) acquire
@@ -133,7 +124,7 @@
{
ldifEntry = [ldapSource lookupContactEntry: objectName];
obj = ((ldifEntry)
? [SOGoContactLDIFEntry contactEntryWithName: name
? [SOGoContactLDIFEntry contactEntryWithName: objectName
withLDIFEntry: ldifEntry
inContainer: self]
: [NSException exceptionWithHTTPStatus: 404]);
@@ -194,6 +185,16 @@
return YES;
}
- (NSString *) davDisplayName
{
return displayName;
}
- (BOOL) isFolderish
{
return YES;
}
/* acls */
/* TODO: this might change one day when we support LDAP acls */
- (NSArray *) aclsForUser: (NSString *) uid