Inherits from CMISFileableObject : CMISObject : CMISObjectId : NSObject
Conforms to NSURLConnectionDataDelegate
Declared in CMISDocument.h

Tasks

Properties

contentStreamFileName

@property (nonatomic, strong, readonly) NSString *contentStreamFileName

contentStreamId

@property (nonatomic, strong, readonly) NSString *contentStreamId

contentStreamLength

@property (readonly) unsigned long long contentStreamLength

contentStreamMediaType

@property (nonatomic, strong, readonly) NSString *contentStreamMediaType

isLatestMajorVersion

@property (readonly) BOOL isLatestMajorVersion

isLatestVersion

@property (readonly) BOOL isLatestVersion

isMajorVersion

@property (readonly) BOOL isMajorVersion

versionLabel

@property (nonatomic, strong, readonly) NSString *versionLabel

versionSeriesId

@property (nonatomic, strong, readonly) NSString *versionSeriesId

Instance Methods

changeContentToContentOfFile:withOverwriteExisting:completionBlock:progressBlock:

Changes the content of this document to the content of the given file.

- (CMISRequest *)changeContentToContentOfFile:(NSString *)filePath withOverwriteExisting:(BOOL)overwrite completionBlock:(void ( ^ ) ( NSError *error ))completionBlock progressBlock:(void ( ^ ) ( unsigned long long bytesUploaded , unsigned long long bytesTotal ))progressBlock

Discussion

Changes the content of this document to the content of the given file.

Optional overwrite flag: If TRUE (default), then the Repository MUST replace the existing content stream for the object (if any) with the input contentStream. If FALSE, then the Repository MUST only set the input contentStream for the object if the object currently does not have a content-stream.

Declared In

CMISDocument.h

changeContentToContentOfInputStream:bytesExpected:withFileName:withOverwriteExisting:completionBlock:progressBlock:

Changes the content of this document to the content of the given input stream.

- (CMISRequest *)changeContentToContentOfInputStream:(NSInputStream *)inputStream bytesExpected:(unsigned long long)bytesExpected withFileName:(NSString *)filename withOverwriteExisting:(BOOL)overwrite completionBlock:(void ( ^ ) ( NSError *error ))completionBlock progressBlock:(void ( ^ ) ( unsigned long long bytesUploaded , unsigned long long bytesTotal ))progressBlock

Discussion

Changes the content of this document to the content of the given input stream.

Optional overwrite flag: If TRUE (default), then the Repository MUST replace the existing content stream for the object (if any) with the input contentStream. If FALSE, then the Repository MUST only set the input contentStream for the object if the object currently does not have a content-stream.

Declared In

CMISDocument.h

deleteAllVersionsWithCompletionBlock:

Deletes the document from the document store.

- (void)deleteAllVersionsWithCompletionBlock:(void ( ^ ) ( BOOL documentDeleted , NSError *error ))completionBlock

Discussion

Deletes the document from the document store.

Declared In

CMISDocument.h

deleteContentWithCompletionBlock:

Deletes the content of this document.

- (void)deleteContentWithCompletionBlock:(void ( ^ ) ( NSError *error ))completionBlock

Discussion

Deletes the content of this document.

Declared In

CMISDocument.h

downloadContentToFile:completionBlock:progressBlock:

Downloads the content to a local file and returns the filepath. This is a synchronous call and will not return until the file is written to the given path.

- (CMISRequest *)downloadContentToFile:(NSString *)filePath completionBlock:(void ( ^ ) ( NSError *error ))completionBlock progressBlock:(void ( ^ ) ( unsigned long long bytesDownloaded , unsigned long long bytesTotal ))progressBlock

Discussion

Downloads the content to a local file and returns the filepath. This is a synchronous call and will not return until the file is written to the given path.

Declared In

CMISDocument.h

retrieveAllVersionsWithCompletionBlock:

Retrieves a collection of all versions of this document.

- (void)retrieveAllVersionsWithCompletionBlock:(void ( ^ ) ( CMISCollection *allVersionsOfDocument , NSError *error ))completionBlock

Discussion

Retrieves a collection of all versions of this document.

Declared In

CMISDocument.h

retrieveAllVersionsWithOperationContext:completionBlock:

Retrieves a collection of all versions of this document.

- (void)retrieveAllVersionsWithOperationContext:(CMISOperationContext *)operationContext completionBlock:(void ( ^ ) ( CMISCollection *collection , NSError *error ))completionBlock

Discussion

Retrieves a collection of all versions of this document.

Declared In

CMISDocument.h

retrieveObjectOfLatestVersionWithMajorVersion:completionBlock:

Retrieves the lastest version of this document.

- (void)retrieveObjectOfLatestVersionWithMajorVersion:(BOOL)major completionBlock:(void ( ^ ) ( CMISDocument *document , NSError *error ))completionBlock

Discussion

Retrieves the lastest version of this document.

Declared In

CMISDocument.h

retrieveObjectOfLatestVersionWithMajorVersion:withOperationContext:completionBlock:

Retrieves the lastest version of this document.

- (void)retrieveObjectOfLatestVersionWithMajorVersion:(BOOL)major withOperationContext:(CMISOperationContext *)operationContext completionBlock:(void ( ^ ) ( CMISDocument *document , NSError *error ))completionBlock

Discussion

Retrieves the lastest version of this document.

Declared In

CMISDocument.h