C# Class CmisSync.Lib.Consumer.SituationSolver.LocalObjectChanged

A local object has been changed and should be uploaded (if necessary) to server or updated on the server.
Inheritance: AbstractEnhancedSolver
Mostra file Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
LocalObjectChanged ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage, ITransmissionManager transmissionManager ) : System

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

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

Solve the specified situation by using the storage, localFile and remoteId. Uploads the file content if content has been changed. Otherwise simply saves the last modification date.

Method Details

LocalObjectChanged() public method

Initializes a new instance of the CmisSync.Lib.Consumer.SituationSolver.LocalObjectChanged class.
public LocalObjectChanged ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage, ITransmissionManager transmissionManager ) : System
session ISession Cmis session.
storage IMetaDataStorage Meta data storage.
transmissionStorage IFileTransmissionStorage
transmissionManager ITransmissionManager Transmission manager.
return System

Solve() public method

Solve the specified situation by using the storage, localFile and remoteId. Uploads the file content if content has been changed. Otherwise simply saves the last modification date.
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