CMISSession Class Reference
Inherits from | NSObject |
Declared in | CMISSession.h |
Tasks
-
isAuthenticated
property -
binding
property -
sessionParameters
property -
repositoryInfo
property -
objectConverter
property -
+ arrayOfRepositories:completionBlock:
-
+ connectWithSessionParameters:completionBlock:
-
– retrieveRootFolderWithCompletionBlock:
Retrieves the root folder for the repository.
-
– retrieveFolderWithOperationContext:completionBlock:
Retrieves the root folder for the repository using the provided operation context.
-
– retrieveObject:completionBlock:
Retrieves the object with the given identifier.
-
– retrieveObject:withOperationContext:completionBlock:
Retrieves the object with the given identifier, using the provided operation context.
-
– retrieveObjectByPath:completionBlock:
Retrieves the object for the given path.
-
– retrieveObjectByPath:withOperationContext:completionBlock:
Retrieves the object for the given path, using the provided operation context.
-
– retrieveTypeDefinition:completionBlock:
Retrieves the definition for the given type.
-
– query:searchAllVersions:completionBlock:
Retrieves all objects matching the given cmis query.
-
– query:searchAllVersions:operationContext:completionBlock:
Retrieves all objects matching the given cmis query, as CMISQueryResult objects. and using the parameters provided in the operation context.
-
– queryObjectsWithTypeid:withWhereClause:searchAllVersions:operationContext:completionBlock:
Queries for a specific type of objects. Returns a paged result set, containing CMISObject instances.
-
– createFolder:inFolder:completionBlock:
Creates a folder in the provided folder.
-
– downloadContentOfCMISObject:toFile:completionBlock:progressBlock:
Downloads the content of object with the provided object id to the given path.
-
– downloadContentOfCMISObject:toOutputStream:completionBlock:progressBlock:
Downloads the content of object with the provided object id to the given stream.
-
– createDocumentFromFilePath:withMimeType:withProperties:inFolder:completionBlock:progressBlock:
Creates a cmis document using the content from the file path.
-
– createDocumentFromInputStream:withMimeType:withProperties:inFolder:bytesExpected:completionBlock:progressBlock:
Creates a cmis document using the content from the given stream.
Class Methods
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