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
/* 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];
}