]> err.no Git - scalable-opengroupware.org/commitdiff
prepared WebDAV move/copy
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Thu, 14 Jul 2005 09:27:29 +0000 (09:27 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Thu, 14 Jul 2005 09:27:29 +0000 (09:27 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@744 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/SoObjects/SOGo/ChangeLog
SOGo/SoObjects/SOGo/SOGoContentObject.m
SOGo/SoObjects/SOGo/Version

index 7d9c6413706531b9b6e73b0c402c34bb42c19a74..fd226845758de762621f0c222bb97effabb69f67 100644 (file)
@@ -1,5 +1,7 @@
 2005-07-14  Helge Hess  <helge.hess@opengroupware.org>
 
+       * SOGoContentObject.m: added empty davCopy/davMove methods (v0.9.55)
+
        * v0.9.54
        
        * SOGoContentObject.m: added support for special 'new' key (server will
index 5316413e40400655d1bf0563864a3a11881a5e0a..57a5871f0d6605bf542ad4142fa7b1580085d90e 100644 (file)
@@ -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];
 }
index 6b46324579b1e2ddda8a68f0657272eab551de45..d4d22dfe5fe9446aee51731d2d39a549d9cde4b0 100644 (file)
@@ -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