Conforms to NSObject
Declared in CMISObjectService.h

Tasks

Instance Methods

changeContentOfObject:toContentOfFile:withOverwriteExisting:withChangeToken:completionBlock:progressBlock:

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

- (CMISRequest *)changeContentOfObject:(CMISStringInOutParameter *)objectIdParam toContentOfFile:(NSString *)filePath withOverwriteExisting:(BOOL)overwrite withChangeToken:(CMISStringInOutParameter *)changeTokenParam completionBlock:(void ( ^ ) ( NSError *error ))completionBlock progressBlock:(void ( ^ ) ( unsigned long long bytesUploaded , unsigned long long bytesTotal ))progressBlock

Discussion

Changes the content of the given document to the content of a 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.

NOTE for atom pub binding: This does not return the new object id and change token as specified by the domain model. (This is not possible without introducing a new HTTP header).

Declared In

CMISObjectService.h

changeContentOfObject:toContentOfInputStream:bytesExpected:withFilename:withOverwriteExisting:withChangeToken:completionBlock:progressBlock:

Changes the content of the given document to the content from a give input stream.

- (CMISRequest *)changeContentOfObject:(CMISStringInOutParameter *)objectId toContentOfInputStream:(NSInputStream *)inputStream bytesExpected:(unsigned long long)bytesExpected withFilename:(NSString *)filename withOverwriteExisting:(BOOL)overwrite withChangeToken:(CMISStringInOutParameter *)changeToken completionBlock:(void ( ^ ) ( NSError *error ))completionBlock progressBlock:(void ( ^ ) ( unsigned long long bytesUploaded , unsigned long long bytesTotal ))progressBlock

Discussion

Changes the content of the given document to the content from a give 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.

NOTE for atom pub binding: This does not return the new object id and change token as specified by the domain model. (This is not possible without introducing a new HTTP header).

Declared In

CMISObjectService.h

createDocumentFromFilePath:withMimeType:withProperties:inFolder:completionBlock:progressBlock:

uploads the file from the given path to the given folder.

- (CMISRequest *)createDocumentFromFilePath:(NSString *)filePath withMimeType:(NSString *)mimeType withProperties:(CMISProperties *)properties inFolder:(NSString *)folderObjectId completionBlock:(void ( ^ ) ( NSString *objectId , NSError *error ))completionBlock progressBlock:(void ( ^ ) ( unsigned long long bytesUploaded , unsigned long long bytesTotal ))progressBlock

Discussion

uploads the file from the given path to the given folder.

Declared In

CMISObjectService.h

createDocumentFromInputStream:withMimeType:withProperties:inFolder:bytesExpected:completionBlock:progressBlock:

uploads the file from the given input stream to the given folder.

- (CMISRequest *)createDocumentFromInputStream:(NSInputStream *)inputStream withMimeType:(NSString *)mimeType withProperties:(CMISProperties *)properties inFolder:(NSString *)folderObjectId bytesExpected:(unsigned long long)bytesExpected completionBlock:(void ( ^ ) ( NSString *objectId , NSError *error ))completionBlock progressBlock:(void ( ^ ) ( unsigned long long bytesUploaded , unsigned long long bytesTotal ))progressBlock

Discussion

uploads the file from the given input stream to the given folder.

Declared In

CMISObjectService.h

createFolderInParentFolder:withProperties:completionBlock:

Creates a new folder with given properties under the provided parent folder.

- (void)createFolderInParentFolder:(NSString *)folderObjectId withProperties:(CMISProperties *)properties completionBlock:(void ( ^ ) ( NSString *objectId , NSError *error ))completionBlock

Discussion

Creates a new folder with given properties under the provided parent folder.

Declared In

CMISObjectService.h

deleteContentOfObject:withChangeToken:completionBlock:

Deletes the content stream for the specified document object.

- (void)deleteContentOfObject:(CMISStringInOutParameter *)objectIdParam withChangeToken:(CMISStringInOutParameter *)changeTokenParam completionBlock:(void ( ^ ) ( NSError *error ))completionBlock

Discussion

Deletes the content stream for the specified document object.

A Repository MAY automatically create new Document versions as part of this service method. Therefore, the objectId output NEED NOT be identical to the objectId input

NOTE for atom pub binding: deleteContentStream: This does not return the new object id and change token as specified by the domain model. This is not possible without introducing a new HTTP header.

Declared In

CMISObjectService.h

deleteObject:allVersions:completionBlock:

Deletes the given object.

- (void)deleteObject:(NSString *)objectId allVersions:(BOOL)allVersions completionBlock:(void ( ^ ) ( BOOL objectDeleted , NSError *error ))completionBlock

Discussion

Deletes the given object.

The allVersions parameter is currently ignored.

Declared In

CMISObjectService.h

deleteTree:allVersion:unfileObjects:continueOnFailure:completionBlock:

Deletes the given folder and all of its subfolder and files

- (void)deleteTree:(NSString *)folderObjectId allVersion:(BOOL)allVersions unfileObjects:(CMISUnfileObject)unfileObjects continueOnFailure:(BOOL)continueOnFailure completionBlock:(void ( ^ ) ( NSArray *failedObjects , NSError *error ))completionBlock

Discussion

Deletes the given folder and all of its subfolder and files

Returns a list of objects which failed to be deleted.

Declared In

CMISObjectService.h

downloadContentOfObject:withStreamId:toFile:completionBlock:progressBlock:

Gets the content stream for the specified Document object, or gets a rendition stream for a specified rendition of a document or folder object. Downloads the content to a local file.

- (CMISRequest *)downloadContentOfObject:(NSString *)objectId withStreamId:(NSString *)streamId toFile:(NSString *)filePath completionBlock:(void ( ^ ) ( NSError *error ))completionBlock progressBlock:(void ( ^ ) ( unsigned long long bytesDownloaded , unsigned long long bytesTotal ))progressBlock

Discussion

Gets the content stream for the specified Document object, or gets a rendition stream for a specified rendition of a document or folder object. Downloads the content to a local file.

Declared In

CMISObjectService.h

downloadContentOfObject:withStreamId:toOutputStream:completionBlock:progressBlock:

Gets the content stream for the specified Document object, or gets a rendition stream for a specified rendition of a document or folder object. Downloads the content to an output stream.

- (CMISRequest *)downloadContentOfObject:(NSString *)objectId withStreamId:(NSString *)streamId toOutputStream:(NSOutputStream *)outputStream completionBlock:(void ( ^ ) ( NSError *error ))completionBlock progressBlock:(void ( ^ ) ( unsigned long long bytesDownloaded , unsigned long long bytesTotal ))progressBlock

Discussion

Gets the content stream for the specified Document object, or gets a rendition stream for a specified rendition of a document or folder object. Downloads the content to an output stream.

Declared In

CMISObjectService.h

retrieveObject:withFilter:andIncludeRelationShips:andIncludePolicyIds:andRenditionFilder:andIncludeACL:andIncludeAllowableActions:completionBlock:

Retrieves the object with the given object identifier.

- (void)retrieveObject:(NSString *)objectId withFilter:(NSString *)filter andIncludeRelationShips:(CMISIncludeRelationship)includeRelationship andIncludePolicyIds:(BOOL)includePolicyIds andRenditionFilder:(NSString *)renditionFilter andIncludeACL:(BOOL)includeACL andIncludeAllowableActions:(BOOL)includeAllowableActions completionBlock:(void ( ^ ) ( CMISObjectData *objectData , NSError *error ))completionBlock

Discussion

Retrieves the object with the given object identifier.

Declared In

CMISObjectService.h

retrieveObjectByPath:withFilter:andIncludeRelationShips:andIncludePolicyIds:andRenditionFilder:andIncludeACL:andIncludeAllowableActions:completionBlock:

Retrieves an object using its path.

- (void)retrieveObjectByPath:(NSString *)path withFilter:(NSString *)filter andIncludeRelationShips:(CMISIncludeRelationship)includeRelationship andIncludePolicyIds:(BOOL)includePolicyIds andRenditionFilder:(NSString *)renditionFilter andIncludeACL:(BOOL)includeACL andIncludeAllowableActions:(BOOL)includeAllowableActions completionBlock:(void ( ^ ) ( CMISObjectData *objectData , NSError *error ))completionBlock

Discussion

Retrieves an object using its path.

Declared In

CMISObjectService.h

retrieveRenditions:withRenditionFilter:withMaxItems:withSkipCount:completionBlock:

Gets the list of associated Renditions for the specified object. Only rendition attributes are returned, not rendition stream

- (void)retrieveRenditions:(NSString *)objectId withRenditionFilter:(NSString *)renditionFilter withMaxItems:(NSNumber *)maxItems withSkipCount:(NSNumber *)skipCount completionBlock:(void ( ^ ) ( NSArray *renditions , NSError *error ))completionBlock

Discussion

Gets the list of associated Renditions for the specified object. Only rendition attributes are returned, not rendition stream

Note: the paging parameters (maxItems and skipCount) are not used in the atom pub binding. Ie. the whole set is always returned.

Declared In

CMISObjectService.h

updatePropertiesForObject:withProperties:withChangeToken:completionBlock:

Updates the properties of the given object.

- (void)updatePropertiesForObject:(CMISStringInOutParameter *)objectIdParam withProperties:(CMISProperties *)properties withChangeToken:(CMISStringInOutParameter *)changeTokenParam completionBlock:(void ( ^ ) ( NSError *error ))completionBlock

Discussion

Updates the properties of the given object.

Declared In

CMISObjectService.h