diff --git a/ChangeLog b/ChangeLog index 89bf1d669..b492fefdf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-01-29 Wolfgang Sourdeau + + * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder + -davSetProperties:setPropsremovePropertiesNamed:removedPropsinContext:localContext]): + new method that takes the displayname into account. + + * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder + -davCreateCollection:pathInfoinContext:localContext]): new method + that acts as a proxy to newFolderWithName:andNameInContainer:. + 2008-01-28 Wolfgang Sourdeau * UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor diff --git a/SoObjects/SOGo/SOGoGCSFolder.m b/SoObjects/SOGo/SOGoGCSFolder.m index b1f0e6df4..7b8732397 100644 --- a/SoObjects/SOGo/SOGoGCSFolder.m +++ b/SoObjects/SOGo/SOGoGCSFolder.m @@ -503,6 +503,19 @@ static BOOL sendFolderAdvisories = NO; return [self _subscribe: NO inContext: localContext]; } +- (NSException *) davSetProperties: (NSDictionary *) setProps + removePropertiesNamed: (NSDictionary *) removedProps + inContext: (WOContext *) localContext +{ + NSString *newDisplayName; + + newDisplayName = [setProps objectForKey: @"davDisplayName"]; + if ([newDisplayName length]) + [self renameTo: newDisplayName]; + + return nil; +} + /* acls as a container */ - (NSArray *) aclUsersForObjectAtPath: (NSArray *) objectPathArray; diff --git a/SoObjects/SOGo/SOGoParentFolder.m b/SoObjects/SOGo/SOGoParentFolder.m index fb27adcb3..c7291168a 100644 --- a/SoObjects/SOGo/SOGoParentFolder.m +++ b/SoObjects/SOGo/SOGoParentFolder.m @@ -314,4 +314,11 @@ static SoSecurityManager *sm = nil; sortedArrayUsingSelector: @selector (compare:)]; } +- (NSException *) davCreateCollection: (NSString *) pathInfo + inContext: (WOContext *) localContext +{ + return [self newFolderWithName: pathInfo + andNameInContainer: pathInfo]; +} + @end