From: helge Date: Thu, 14 Jul 2005 09:27:29 +0000 (+0000) Subject: prepared WebDAV move/copy X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b790ef882953ab0dc2d145b2dbc5adbd6489271a;p=scalable-opengroupware.org prepared WebDAV move/copy git-svn-id: http://svn.opengroupware.org/SOGo/trunk@744 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/SoObjects/SOGo/ChangeLog b/SOGo/SoObjects/SOGo/ChangeLog index 7d9c6413..fd226845 100644 --- a/SOGo/SoObjects/SOGo/ChangeLog +++ b/SOGo/SoObjects/SOGo/ChangeLog @@ -1,5 +1,7 @@ 2005-07-14 Helge Hess + * SOGoContentObject.m: added empty davCopy/davMove methods (v0.9.55) + * v0.9.54 * SOGoContentObject.m: added support for special 'new' key (server will diff --git a/SOGo/SoObjects/SOGo/SOGoContentObject.m b/SOGo/SoObjects/SOGo/SOGoContentObject.m index 5316413e..57a5871f 100644 --- a/SOGo/SoObjects/SOGo/SOGoContentObject.m +++ b/SOGo/SoObjects/SOGo/SOGoContentObject.m @@ -372,6 +372,34 @@ static BOOL kontactGroupDAV = YES; /* WebDAV */ +- (NSException *)davMoveToTargetObject:(id)_target newName:(NSString *)_name + inContext:(id)_ctx +{ + /* + Note: even for new objects we won't get a new name but a preinstantiated + object representing the new one. + */ + [self logWithFormat: + @"TODO: move not implemented:\n target: %@\n new name: %@", + _target, _name]; + return [NSException exceptionWithHTTPStatus:405 /* not allowed */ + reason:@"this object cannot be copied via WebDAV"]; +} + +- (NSException *)davCopyToTargetObject:(id)_target newName:(NSString *)_name + inContext:(id)_ctx +{ + /* + Note: even for new objects we won't get a new name but a preinstantiated + object representing the new one. + */ + [self logWithFormat: + @"TODO: copy not implemented:\n target: %@\n new name: %@", + _target, _name]; + return [NSException exceptionWithHTTPStatus:405 /* not allowed */ + reason:@"this object cannot be copied via WebDAV"]; +} + - (BOOL)davIsCollection { return [self isFolderish]; } diff --git a/SOGo/SoObjects/SOGo/Version b/SOGo/SoObjects/SOGo/Version index 6b463245..d4d22dfe 100644 --- a/SOGo/SoObjects/SOGo/Version +++ b/SOGo/SoObjects/SOGo/Version @@ -1,6 +1,6 @@ # version file -SUBMINOR_VERSION:=54 +SUBMINOR_VERSION:=55 # v0.9.50 requires libGDLContentStore v4.5.30 # v0.9.34 requires libGDLContentStore v4.5.26