C# Class CmisSync.Lib.Cmis.CmisUtils

Useful CMIS methods.
Afficher le fichier Open project: OpenDataSpace/CmisSync

Méthodes publiques

Méthode 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 méthode

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

GetLocalPaths() public static méthode

public static GetLocalPaths ( IDocument remoteDococument, string remoteTargetFolder, string localTargetFolder ) : List
remoteDococument IDocument
remoteTargetFolder string
localTargetFolder string
Résultat List

GetRepositories() static public méthode

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

GetRepositoriesFuzzy() static public méthode

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
Résultat Exception>.Tuple

GetSubfolderTree() static public méthode

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
Résultat NodeTree

GetSubfolders() static public méthode

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
Résultat string[]

SetLastModifiedDate() public static méthode

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. ///
Résultat void

SetLastModifiedDate() public static méthode

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. ///
Résultat void