C# Класс CmisSync.Lib.SyncItemFactory

Factory to easily create SyncItem objects.
Показать файл Открыть проект

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

Метод Описание
CreateFromLocalPath ( string path, bool isFolder, RepoInfo repoInfo, Database database ) : SyncItem
CreateFromLocalPath ( string folder, string fileName, bool isFolder, RepoInfo repoInfo, Database database ) : SyncItem
CreateFromPaths ( string localPathPrefix, string localPath, string remotePathPrefix, string remotePath, bool isFolder ) : SyncItem

Specify all local and remote paths. That's the only case where a database is not needed as no conversions are needed.

CreateFromRemoteDocument ( string remoteDocumentPath, IDocument remoteDocument, RepoInfo repoInfo, Database database ) : SyncItem

Only use for documents!

CreateFromRemoteDocument ( string remoteDocumentPath, string localFilename, RepoInfo repoInfo, Database database ) : SyncItem

Only use for documents!

CreateFromRemoteFolder ( string remoteFolderPath, RepoInfo repoInfo, Database database ) : SyncItem

Create sync item from the path of a remote folder.

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

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

public static CreateFromLocalPath ( string path, bool isFolder, RepoInfo repoInfo, Database database ) : SyncItem
path string
isFolder bool
repoInfo RepoInfo
database Database
Результат SyncItem

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

public static CreateFromLocalPath ( string folder, string fileName, bool isFolder, RepoInfo repoInfo, Database database ) : SyncItem
folder string
fileName string
isFolder bool
repoInfo RepoInfo
database Database
Результат SyncItem

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

Specify all local and remote paths. That's the only case where a database is not needed as no conversions are needed.
public static CreateFromPaths ( string localPathPrefix, string localPath, string remotePathPrefix, string remotePath, bool isFolder ) : SyncItem
localPathPrefix string
localPath string
remotePathPrefix string
remotePath string
isFolder bool
Результат SyncItem

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

Only use for documents!
public static CreateFromRemoteDocument ( string remoteDocumentPath, IDocument remoteDocument, RepoInfo repoInfo, Database database ) : SyncItem
remoteDocumentPath string
remoteDocument IDocument
repoInfo RepoInfo
database Database
Результат SyncItem

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

Only use for documents!
public static CreateFromRemoteDocument ( string remoteDocumentPath, string localFilename, RepoInfo repoInfo, Database database ) : SyncItem
remoteDocumentPath string
localFilename string
repoInfo RepoInfo
database Database
Результат SyncItem

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

Create sync item from the path of a remote folder.
public static CreateFromRemoteFolder ( string remoteFolderPath, RepoInfo repoInfo, Database database ) : SyncItem
remoteFolderPath string Example: /sites/aproject/adir
repoInfo RepoInfo
database Database
Результат SyncItem