Inherits from NSObject
Declared in CMISSession.h

Tasks

Properties

binding

@property (nonatomic, strong, readonly) id<CMISBinding> binding

isAuthenticated

@property (nonatomic, assign, readonly) BOOL isAuthenticated

objectConverter

@property (nonatomic, strong, readonly) CMISObjectConverter *objectConverter

repositoryInfo

@property (nonatomic, strong, readonly) CMISRepositoryInfo *repositoryInfo

sessionParameters

@property (nonatomic, strong) CMISSessionParameters *sessionParameters

Class Methods

arrayOfRepositories:completionBlock:

+ (void)arrayOfRepositories:(CMISSessionParameters *)sessionParameters completionBlock:(void ( ^ ) ( NSArray *repositories , NSError *error ))completionBlock

connectWithSessionParameters:completionBlock:

+ (void)connectWithSessionParameters:(CMISSessionParameters *)sessionParameters completionBlock:(void ( ^ ) ( CMISSession *session , NSError *error ))completionBlock

Instance Methods

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

Creates a cmis document using the content from the file path.

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

Discussion

Creates a cmis document using the content from the file path.

Declared In

CMISSession.h

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

Creates a cmis document using the content from the given stream.

- (void)createDocumentFromInputStream:(NSInputStream *)inputStream withMimeType:(NSString *)mimeType withProperties:(NSDictionary *)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

Creates a cmis document using the content from the given stream.

Declared In

CMISSession.h

createFolder:inFolder:completionBlock:

Creates a folder in the provided folder.

- (void)createFolder:(NSDictionary *)properties inFolder:(NSString *)folderObjectId completionBlock:(void ( ^ ) ( NSString *objectId , NSError *error ))completionBlock

Discussion

Creates a folder in the provided folder.

Declared In

CMISSession.h

downloadContentOfCMISObject:toFile:completionBlock:progressBlock:

Downloads the content of object with the provided object id to the given path.

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

Discussion

Downloads the content of object with the provided object id to the given path.

Declared In

CMISSession.h

downloadContentOfCMISObject:toOutputStream:completionBlock:progressBlock:

Downloads the content of object with the provided object id to the given stream.

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

Discussion

Downloads the content of object with the provided object id to the given stream.

Declared In

CMISSession.h

query:searchAllVersions:completionBlock:

Retrieves all objects matching the given cmis query.

- (void)query:(NSString *)statement searchAllVersions:(BOOL)searchAllVersion completionBlock:(void ( ^ ) ( CMISPagedResult *pagedResult , NSError *error ))completionBlock

Return Value

An array of CMISQueryResult objects.

Discussion

Retrieves all objects matching the given cmis query.

Declared In

CMISSession.h

query:searchAllVersions:operationContext:completionBlock:

Retrieves all objects matching the given cmis query, as CMISQueryResult objects. and using the parameters provided in the operation context.

- (void)query:(NSString *)statement searchAllVersions:(BOOL)searchAllVersion operationContext:(CMISOperationContext *)operationContext completionBlock:(void ( ^ ) ( CMISPagedResult *pagedResult , NSError *error ))completionBlock

Return Value

An array of CMISQueryResult objects.

Discussion

Retrieves all objects matching the given cmis query, as CMISQueryResult objects. and using the parameters provided in the operation context.

Declared In

CMISSession.h

queryObjectsWithTypeid:withWhereClause:searchAllVersions:operationContext:completionBlock:

Queries for a specific type of objects. Returns a paged result set, containing CMISObject instances.

- (void)queryObjectsWithTypeid:(NSString *)typeId withWhereClause:(NSString *)whereClause searchAllVersions:(BOOL)searchAllVersion operationContext:(CMISOperationContext *)operationContext completionBlock:(void ( ^ ) ( CMISPagedResult *result , NSError *error ))completionBlock

Discussion

Queries for a specific type of objects. Returns a paged result set, containing CMISObject instances.

Declared In

CMISSession.h

retrieveFolderWithOperationContext:completionBlock:

Retrieves the root folder for the repository using the provided operation context.

- (void)retrieveFolderWithOperationContext:(CMISOperationContext *)operationContext completionBlock:(void ( ^ ) ( CMISFolder *folder , NSError *error ))completionBlock

Discussion

Retrieves the root folder for the repository using the provided operation context.

Declared In

CMISSession.h

retrieveObject:completionBlock:

Retrieves the object with the given identifier.

- (void)retrieveObject:(NSString *)objectId completionBlock:(void ( ^ ) ( CMISObject *object , NSError *error ))completionBlock

Discussion

Retrieves the object with the given identifier.

Declared In

CMISSession.h

retrieveObject:withOperationContext:completionBlock:

Retrieves the object with the given identifier, using the provided operation context.

- (void)retrieveObject:(NSString *)objectId withOperationContext:(CMISOperationContext *)operationContext completionBlock:(void ( ^ ) ( CMISObject *object , NSError *error ))completionBlock

Discussion

Retrieves the object with the given identifier, using the provided operation context.

Declared In

CMISSession.h

retrieveObjectByPath:completionBlock:

Retrieves the object for the given path.

- (void)retrieveObjectByPath:(NSString *)path completionBlock:(void ( ^ ) ( CMISObject *object , NSError *error ))completionBlock

Discussion

Retrieves the object for the given path.

Declared In

CMISSession.h

retrieveObjectByPath:withOperationContext:completionBlock:

Retrieves the object for the given path, using the provided operation context.

- (void)retrieveObjectByPath:(NSString *)path withOperationContext:(CMISOperationContext *)operationContext completionBlock:(void ( ^ ) ( CMISObject *object , NSError *error ))completionBlock

Discussion

Retrieves the object for the given path, using the provided operation context.

Declared In

CMISSession.h

retrieveRootFolderWithCompletionBlock:

Retrieves the root folder for the repository.

- (void)retrieveRootFolderWithCompletionBlock:(void ( ^ ) ( CMISFolder *folder , NSError *error ))completionBlock

Discussion

Retrieves the root folder for the repository.

Declared In

CMISSession.h

retrieveTypeDefinition:completionBlock:

Retrieves the definition for the given type.

- (void)retrieveTypeDefinition:(NSString *)typeId completionBlock:(void ( ^ ) ( CMISTypeDefinition *typeDefinition , NSError *error ))completionBlock

Discussion

Retrieves the definition for the given type.

Declared In

CMISSession.h