C# Класс CmisSync.Lib.Consumer.SituationSolver.AbstractEnhancedSolver

Abstract enhanced solver.
Наследование: ISolver
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
OperationsLogger log4net.ILog

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

Метод Описание
AbstractEnhancedSolver ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage = null ) : System

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

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

Solve the specified situation by using localFile and remote object.

Защищенные методы

Метод Описание
DownloadCacheFile ( IFileInfo target, IDocument remoteDocument, Transmission transmission, IFileSystemInfoFactory fsFactory ) : byte[]
DownloadChanges ( IFileInfo target, IDocument remoteDocument, IMappedObject obj, IFileSystemInfoFactory fsFactory, ITransmissionManager transmissionManager, log4net.ILog logger ) : byte[]
EnsureThatLocalFileNameContainsLegalCharacters ( IFileSystemInfo localFile, DotCMIS.Exceptions.CmisConstraintException e ) : void

Ensures the that local file name contains legal characters. If the given file contains UTF-8 only character and the given exception has been returned from the server on creating a file/folder, an interaction exception is thrown with a hint about the problem. Otherwise nothing happens.

GetParent ( IFileSystemInfo fileInfo ) : IDirectoryInfo
IsParentReadOnly ( IFileSystemInfo localFileSystemInfo ) : bool
UploadFile ( IFileInfo localFile, IDocument doc, Transmission transmission ) : byte[]

Uploads the file content to the remote document.

WriteOrUseUuidIfSupported ( IFileSystemInfo info ) : System.Guid

Приватные методы

Метод Описание
LoadCacheFile ( IFileInfo target, IDocument remoteDocument, IFileSystemInfoFactory fsFactory ) : bool
SaveCacheFile ( IFileInfo target, IDocument remoteDocument, byte hash, long length, Transmission transmissionEvent ) : void

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

AbstractEnhancedSolver() публичный Метод

Initializes a new instance of the CmisSync.Lib.Consumer.SituationSolver.AbstractEnhancedSolver class.
public AbstractEnhancedSolver ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage = null ) : System
session ISession Cmis Session.
storage IMetaDataStorage Meta Data Storage.
transmissionStorage IFileTransmissionStorage File Transmission Storage.
Результат System

DownloadCacheFile() защищенный Метод

protected DownloadCacheFile ( IFileInfo target, IDocument remoteDocument, Transmission transmission, IFileSystemInfoFactory fsFactory ) : byte[]
target IFileInfo
remoteDocument IDocument
transmission CmisSync.Lib.FileTransmission.Transmission
fsFactory IFileSystemInfoFactory
Результат byte[]

DownloadChanges() защищенный Метод

protected DownloadChanges ( IFileInfo target, IDocument remoteDocument, IMappedObject obj, IFileSystemInfoFactory fsFactory, ITransmissionManager transmissionManager, log4net.ILog logger ) : byte[]
target IFileInfo
remoteDocument IDocument
obj IMappedObject
fsFactory IFileSystemInfoFactory
transmissionManager ITransmissionManager
logger log4net.ILog
Результат byte[]

EnsureThatLocalFileNameContainsLegalCharacters() защищенный Метод

Ensures the that local file name contains legal characters. If the given file contains UTF-8 only character and the given exception has been returned from the server on creating a file/folder, an interaction exception is thrown with a hint about the problem. Otherwise nothing happens.
protected EnsureThatLocalFileNameContainsLegalCharacters ( IFileSystemInfo localFile, DotCMIS.Exceptions.CmisConstraintException e ) : void
localFile IFileSystemInfo Local file which produces a CmisConstraintException on the server.
e DotCMIS.Exceptions.CmisConstraintException The returned CmisConstraintException returned by the server.
Результат void

GetParent() защищенный Метод

protected GetParent ( IFileSystemInfo fileInfo ) : IDirectoryInfo
fileInfo IFileSystemInfo
Результат IDirectoryInfo

IsParentReadOnly() защищенный Метод

protected IsParentReadOnly ( IFileSystemInfo localFileSystemInfo ) : bool
localFileSystemInfo IFileSystemInfo
Результат bool

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

Solve the specified situation by using localFile and remote object.
public abstract Solve ( IFileSystemInfo localFileSystemInfo, IObjectId remoteId, ContentChangeType localContent, ContentChangeType remoteContent ) : void
localFileSystemInfo IFileSystemInfo Local filesystem info instance.
remoteId IObjectId Remote identifier or object.
localContent ContentChangeType Signalizes how the local content has been modified.
remoteContent ContentChangeType Signalizes how the remote content has been modified.
Результат void

UploadFile() защищенный Метод

Uploads the file content to the remote document.
protected UploadFile ( IFileInfo localFile, IDocument doc, Transmission transmission ) : byte[]
localFile IFileInfo Local file.
doc IDocument Remote document.
transmission CmisSync.Lib.FileTransmission.Transmission
Результат byte[]

WriteOrUseUuidIfSupported() защищенный Метод

protected WriteOrUseUuidIfSupported ( IFileSystemInfo info ) : System.Guid
info IFileSystemInfo
Результат System.Guid

Описание свойств

OperationsLogger защищенное статическое свойство

The file operations logger.
protected static ILog,log4net OperationsLogger
Результат log4net.ILog