C# Class CmisSync.Lib.SyncItemFactory

Factory to easily create SyncItem objects.
Exibir arquivo Open project: aegif/CmisSync

Public Methods

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

Method Details

CreateFromLocalPath() public static method

public static CreateFromLocalPath ( string path, bool isFolder, RepoInfo repoInfo, Database database ) : SyncItem
path string
isFolder bool
repoInfo RepoInfo
database Database
return SyncItem

CreateFromLocalPath() public static method

public static CreateFromLocalPath ( string folder, string fileName, bool isFolder, RepoInfo repoInfo, Database database ) : SyncItem
folder string
fileName string
isFolder bool
repoInfo RepoInfo
database Database
return SyncItem

CreateFromPaths() public static method

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

CreateFromRemoteDocument() public static method

Only use for documents!
public static CreateFromRemoteDocument ( string remoteDocumentPath, IDocument remoteDocument, RepoInfo repoInfo, Database database ) : SyncItem
remoteDocumentPath string
remoteDocument IDocument
repoInfo RepoInfo
database Database
return SyncItem

CreateFromRemoteDocument() public static method

Only use for documents!
public static CreateFromRemoteDocument ( string remoteDocumentPath, string localFilename, RepoInfo repoInfo, Database database ) : SyncItem
remoteDocumentPath string
localFilename string
repoInfo RepoInfo
database Database
return SyncItem

CreateFromRemoteFolder() public static method

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