C# Class CmisSync.Lib.Cmis.CmisUtils

Useful CMIS methods.
ファイルを表示 Open project: OpenDataSpace/CmisSync

Public Methods

Method Description
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.

Method Details

FetchMetadata() public static method

Retrieve the CMIS metadata of a document.
public static FetchMetadata ( ICmisObject o, IObjectType typeDef ) : string[]>.Dictionary
o ICmisObject
typeDef IObjectType
return string[]>.Dictionary

GetLocalPaths() public static method

public static GetLocalPaths ( IDocument remoteDococument, string remoteTargetFolder, string localTargetFolder ) : List
remoteDococument IDocument
remoteTargetFolder string
localTargetFolder string
return List

GetRepositories() static public method

Get the list of repositories of a CMIS server Each item contains id +
static public GetRepositories ( Credentials credentials ) : string>.Dictionary
credentials Credentials
return string>.Dictionary

GetRepositoriesFuzzy() static public method

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
return Exception>.Tuple

GetSubfolderTree() static public method

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
return NodeTree

GetSubfolders() static public method

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
return string[]

SetLastModifiedDate() public static method

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. ///
return void

SetLastModifiedDate() public static method

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. ///
return void