C# 클래스 CmisSync.Lib.Cmis.CmisUtils

Useful CMIS methods.
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync

공개 메소드들

메소드 설명
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