mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
Refactored GCSFolder: -writeContent and fixed sogo-tool restore
This commit is contained in:
@@ -118,13 +118,10 @@
|
||||
|
||||
- (NSException *) writeContent: (NSString *) _content
|
||||
fromComponent: (id) theComponent
|
||||
container: (id) theContainer
|
||||
toName: (NSString *) _name
|
||||
baseVersion: (unsigned int *) _baseVersion;
|
||||
|
||||
- (NSException *) writeContent: (NSString *) _content
|
||||
fromComponent: (id) theComponent
|
||||
toName: (NSString *) _name;
|
||||
|
||||
- (NSException *) deleteContentWithName: (NSString *) _name;
|
||||
- (NSException *) deleteAllContent;
|
||||
|
||||
|
||||
@@ -882,7 +882,8 @@ andAttribute: (EOAttribute *)_attribute
|
||||
|
||||
- (NSException *) writeContent: (NSString *) _content
|
||||
fromComponent: (id) theComponent
|
||||
toName: (NSString *) _name
|
||||
container: (id) theContainer
|
||||
toName: (NSString *) _name
|
||||
baseVersion: (unsigned int *) _baseVersion
|
||||
{
|
||||
EOAdaptorChannel *storeChannel, *quickChannel;
|
||||
@@ -943,7 +944,7 @@ andAttribute: (EOAttribute *)_attribute
|
||||
|| *_baseVersion == [storedVersion unsignedIntValue])
|
||||
{
|
||||
/* extract quick info */
|
||||
quickRow = [theComponent performSelector: @selector(quickRecordForContainer:) withObject: self];
|
||||
quickRow = [theComponent performSelector: @selector(quickRecordForContainer:) withObject: theContainer];
|
||||
if (quickRow)
|
||||
{
|
||||
[quickRow setObject:_name forKey:@"c_name"];
|
||||
@@ -1099,16 +1100,6 @@ andAttribute: (EOAttribute *)_attribute
|
||||
return error;
|
||||
}
|
||||
|
||||
|
||||
- (NSException *)writeContent:(NSString *)_content
|
||||
fromComponent: (id) theComponent
|
||||
toName:(NSString *)_name
|
||||
{
|
||||
/* this method does not check for concurrent writes */
|
||||
unsigned int v = 0;
|
||||
return [self writeContent:_content fromComponent: theComponent toName:_name baseVersion:&v];
|
||||
}
|
||||
|
||||
- (NSException *)deleteContentWithName:(NSString *)_name {
|
||||
EOAdaptorChannel *storeChannel, *quickChannel;
|
||||
EOAdaptorContext *adaptorCtx;
|
||||
|
||||
Reference in New Issue
Block a user