Property | Type | Description | |
---|---|---|---|
OperationsLogger | log4net.ILog |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
DownloadCacheFile ( IFileInfo target, IDocument remoteDocument, |
||
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, |
Uploads the file content to the remote document.
|
|
WriteOrUseUuidIfSupported ( IFileSystemInfo info ) : System.Guid |
Method | Description | |
---|---|---|
LoadCacheFile ( IFileInfo target, IDocument remoteDocument, IFileSystemInfoFactory fsFactory ) : bool | ||
SaveCacheFile ( IFileInfo target, IDocument remoteDocument, byte hash, long length, |
public AbstractEnhancedSolver ( ISession session, IMetaDataStorage storage, IFileTransmissionStorage transmissionStorage = null ) : System | ||
session | ISession | Cmis Session. |
storage | IMetaDataStorage | Meta Data Storage. |
transmissionStorage | IFileTransmissionStorage | File Transmission Storage. |
return | System |
protected DownloadCacheFile ( IFileInfo target, IDocument remoteDocument, |
||
target | IFileInfo | |
remoteDocument | IDocument | |
transmission | ||
fsFactory | IFileSystemInfoFactory | |
return | byte[] |
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 | |
return | byte[] |
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. |
return | void |
protected GetParent ( IFileSystemInfo fileInfo ) : IDirectoryInfo | ||
fileInfo | IFileSystemInfo | |
return | IDirectoryInfo |
protected IsParentReadOnly ( IFileSystemInfo localFileSystemInfo ) : bool | ||
localFileSystemInfo | IFileSystemInfo | |
return | bool |
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. |
return | void |
protected UploadFile ( IFileInfo localFile, IDocument doc, |
||
localFile | IFileInfo | Local file. |
doc | IDocument | Remote document. |
transmission | ||
return | byte[] |
protected WriteOrUseUuidIfSupported ( IFileSystemInfo info ) : System.Guid | ||
info | IFileSystemInfo | |
return | System.Guid |