You are here

checkinDocument:document:asMajorVersion:contentFile:properties:comment:completionBlock:progressBlock

- (AlfrescoRequest *)checkinDocument:(AlfrescoDocument *)document asMajorVersion:(BOOL)majorVersion contentFile:(AlfrescoContentFile *)file properties:(NSDictionary *)properties comment:(NSString *)comment completionBlock:(AlfrescoDocumentCompletionBlock)completionBlock progressBlock:(AlfrescoProgressBlock)progressBlock - Checks in the private working copy document, if successful the new version of the document is returned.

Parameters

(AlfrescoDocument *) document
The target document in the repository to be checked in to.
(BOOL)majorVersion
Major version update or not.
(AlfrescoContentFile *)file
The local content file to be checked into the target document in the repository.
(NSDictionary *)properties
The target document properties. For example, you could update the title property when you update the content.
(NSString *)comment
Checkin comment.
(AlfrescoDocumentCompletionBlock) completionBlock
The block that is called with the result on completion of the operation. The completion block has the format typedef void (^AlfrescoDocumentCompletionBlock)(AlfrescoDocument *document, NSError *error);.
(AlfrescoProgressBlock)progressBlock
Called periodically until completion. It has the format typedef void (^AlfrescoProgressBlock)(unsigned long long bytesTransferred, unsigned long long bytesTotal);.

Returns

(AlfrescoRequest *)

Example




        

checkinDocument:document:asMajorVersion:contentStream:properties:comment:completionBlock:progressBlock

- (AlfrescoRequest *)checkinDocument:(AlfrescoDocument *)document asMajorVersion:(BOOL)majorVersion contentStream:(AlfrescoContentStream *)contentStream properties:(NSDictionary *)properties comment:(NSString *)comment completionBlock:(AlfrescoDocumentCompletionBlock)completionBlock progressBlock:(AlfrescoProgressBlock)progressBlock - Checks in the private working copy document, if successful the new version of the document is returned.

Parameters

(AlfrescoDocument *) document
The target document to be checked in to.
(BOOL)majorVersion
Major version update or not.
(AlfrescoContentStream *)contentStream
The local content stream to be checked into the target document in the repository.
(NSDictionary *)properties
The target document properties. For example, you could update the title property when you update the content.
(NSString *)comment
Checkin comment.
(AlfrescoDocumentCompletionBlock) completionBlock
The block that is called with the result on completion of the operation. The completion block has the format typedef void (^AlfrescoDocumentCompletionBlock)(AlfrescoDocument *document, NSError *error);.
(AlfrescoProgressBlock)progressBlock
Called periodically until completion. It has the format typedef void (^AlfrescoProgressBlock)(unsigned long long bytesTransferred, unsigned long long bytesTotal);.

Returns

(AlfrescoRequest *)

Example