You are here

updateContentOfDocument

updateContentOfDocument - Updates the content of the given document.

updateContentOfDocument

- (AlfrescoRequest *)updateContentOfDocument:(AlfrescoDocument *)document contentFile:(AlfrescoContentFile *)file completionBlock:(AlfrescoDocumentCompletionBlock)completionBlock progressBlock:(AlfrescoProgressBlock)progressBlock - Updates the content of the given document using the provided local file.

Parameters

(AlfrescoDocument *) document
The document to be updated.
(AlfrescoContentFile *) file
The contents to be used to update the document.
(AlfrescoDocumentCompletionBlock) completionBlock
The block that is called with the updated document on completion of the operation. The block has the format typedef void (^AlfrescoDocumentCompletionBlock)(AlfrescoDocument *document, NSError *error).
(AlfrescoProgressBlock) progressBlock
The block that is called with the upload progress. The block has the format typedef void (^AlfrescoProgressBlock)(NSInteger bytesTransferred, NSInteger bytesTotal).

Returns

(AlfrescoRequest *)

Example



        

updateContentOfDocument

- (AlfrescoRequest *)updateContentOfDocument:(AlfrescoDocument *)document contentStream:(AlfrescoContentStream *)contentStream completionBlock:(AlfrescoDocumentCompletionBlock)completionBlock progressBlock:(AlfrescoProgressBlock)progressBlock - Updates the content of the given document using the provided local file.

Parameters

(AlfrescoDocument *) document
The document to be updated.
(AlfrescoContentStream *)contentStream
The content stream to be used to update the document.
(AlfrescoDocumentCompletionBlock) completionBlock
The block that is called with the updated document on completion of the operation. The block has the format typedef void (^AlfrescoDocumentCompletionBlock)(AlfrescoDocument *document, NSError *error).
(AlfrescoProgressBlock) progressBlock
The block that is called with the upload progress. The block has the format typedef void (^AlfrescoProgressBlock)(NSInteger bytesTransferred, NSInteger bytesTotal).

Returns

(AlfrescoRequest *)

Example