C# Класс CmisSync.Lib.Cmis.CmisUtils

Useful CMIS methods.
Показать файл Открыть проект

Открытые методы

Метод Описание
FetchMetadata ( ICmisObject o, IObjectType typeDef ) : string[]>.Dictionary

Retrieve the CMIS metadata of a document.

GetLocalPaths ( IDocument remoteDococument, string remoteTargetFolder, string localTargetFolder ) : List
GetRepositories ( Credentials credentials ) : string>.Dictionary

Get the list of repositories of a CMIS server Each item contains id +

GetRepositoriesFuzzy ( Credentials credentials ) : Exception>.Tuple

Try to find the CMIS server associated to any URL. Users can provide the URL of the web interface, and we have to return the CMIS URL Returns the list of repositories as well.

GetSubfolderTree ( Credentials credentials, string path, int depth ) : NodeTree

Get the sub-folders of a particular CMIS folder.

GetSubfolders ( string repositoryId, string path, string address, string user, string password ) : string[]

Get the sub-folders of a particular CMIS folder.

SetLastModifiedDate ( IDocument remoteDocument, string filepath, string[]>.Dictionary metadata ) : void

Tries to set the last modified date of the given file to the last modified date of the remote document.

SetLastModifiedDate ( IFolder remoteFolder, string folderpath, string[]>.Dictionary metadata ) : void

Tries to set the last modified date of the given folder to the last modified date of the remote folder.

Описание методов

FetchMetadata() публичный статический Метод

Retrieve the CMIS metadata of a document.
public static FetchMetadata ( ICmisObject o, IObjectType typeDef ) : string[]>.Dictionary
o ICmisObject
typeDef IObjectType
Результат string[]>.Dictionary

GetLocalPaths() публичный статический Метод

public static GetLocalPaths ( IDocument remoteDococument, string remoteTargetFolder, string localTargetFolder ) : List
remoteDococument IDocument
remoteTargetFolder string
localTargetFolder string
Результат List

GetRepositories() статический публичный Метод

Get the list of repositories of a CMIS server Each item contains id +
static public GetRepositories ( Credentials credentials ) : string>.Dictionary
credentials Credentials
Результат string>.Dictionary

GetRepositoriesFuzzy() статический публичный Метод

Try to find the CMIS server associated to any URL. Users can provide the URL of the web interface, and we have to return the CMIS URL Returns the list of repositories as well.
static public GetRepositoriesFuzzy ( Credentials credentials ) : Exception>.Tuple
credentials Credentials
Результат Exception>.Tuple

GetSubfolderTree() статический публичный Метод

Get the sub-folders of a particular CMIS folder.
static public GetSubfolderTree ( Credentials credentials, string path, int depth ) : NodeTree
credentials Credentials
path string
depth int
Результат NodeTree

GetSubfolders() статический публичный Метод

Get the sub-folders of a particular CMIS folder.
static public GetSubfolders ( string repositoryId, string path, string address, string user, string password ) : string[]
repositoryId string
path string
address string
user string
password string
Результат string[]

SetLastModifiedDate() публичный статический Метод

Tries to set the last modified date of the given file to the last modified date of the remote document.
public static SetLastModifiedDate ( IDocument remoteDocument, string filepath, string[]>.Dictionary metadata ) : void
remoteDocument IDocument /// Remote document. ///
filepath string /// Filepath. ///
metadata string[]>.Dictionary /// Metadata of the remote file. ///
Результат void

SetLastModifiedDate() публичный статический Метод

Tries to set the last modified date of the given folder to the last modified date of the remote folder.
public static SetLastModifiedDate ( IFolder remoteFolder, string folderpath, string[]>.Dictionary metadata ) : void
remoteFolder IFolder /// Remote folder. ///
folderpath string /// Folderpath. ///
metadata string[]>.Dictionary /// Metadata ot the remote folder. ///
Результат void