C# Class CmisSync.Lib.Consumer.SituationSolver.PWC.LocalObjectAddedWithPWC

Local object added and the server is able to update PWC. If a folder is added => calls the given local folder added solver implementation
Inheritance: AbstractEnhancedSolverWithPWC
显示文件 Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
LocalObjectAddedWithPWC ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage, ITransmissionManager manager, ISolver localFolderOrEmptyFileAddedSolver ) : System

Initializes a new instance of the CmisSync.Lib.Consumer.SituationSolver.PWC.LocalObjectAddedWithPWC class.

Solve ( IFileSystemInfo localFileSystemInfo, IObjectId remoteId, ContentChangeType localContent = ContentChangeType.NONE, ContentChangeType remoteContent = ContentChangeType.NONE ) : void

Solve the specified situation by using localFile and remote object.

Private Methods

Method Description
CreateCheckedOutDocument ( IFileInfo localFile, IObjectId parentId ) : IDocument
CreateOrLoadExistingRemoteDocument ( IFileInfo localFile, IObjectId parentId ) : IDocument

Method Details

LocalObjectAddedWithPWC() public method

Initializes a new instance of the CmisSync.Lib.Consumer.SituationSolver.PWC.LocalObjectAddedWithPWC class.
public LocalObjectAddedWithPWC ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage, ITransmissionManager manager, ISolver localFolderOrEmptyFileAddedSolver ) : System
session ISession Cmis session.
storage IMetaDataStorage Meta data storage.
transmissionStorage IFileTransmissionStorage Transmission storage.
manager ITransmissionManager Active activities manager.
localFolderOrEmptyFileAddedSolver ISolver Local folder or empty file added solver.
return System

Solve() public method

Solve the specified situation by using localFile and remote object.
public Solve ( IFileSystemInfo localFileSystemInfo, IObjectId remoteId, ContentChangeType localContent = ContentChangeType.NONE, ContentChangeType remoteContent = ContentChangeType.NONE ) : void
localFileSystemInfo IFileSystemInfo Local filesystem info instance.
remoteId IObjectId Remote identifier or object.
localContent ContentChangeType Hint if the local content has been changed.
remoteContent ContentChangeType Information if the remote content has been changed.
return void