C# Класс CmisSync.Lib.Storage.Database.MetaDataStorage

Meta data storage.
Наследование: IMetaDataStorage
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetChildren ( IMappedObject parent ) : List

Gets the children of the given parent object.

GetLocalPath ( IMappedObject mappedObject ) : string

Gets the local path. Return null if not exists.

GetObjectByGuid ( System.Guid guid ) : IMappedObject

Gets the object by GUID.

GetObjectByLocalPath ( IFileSystemInfo path ) : IMappedObject

Gets the object by passing the local path.

GetObjectByRemoteId ( string id ) : IMappedObject

Gets the object by remote identifier.

GetObjectTree ( ) : IObjectTree

Gets the tree of mapped objects.

GetRemotePath ( IMappedObject obj ) : string

Gets the remote path.

RemoveObject ( IMappedObject obj ) : void

Removes the saved object.

SaveMappedObject ( IMappedObject obj ) : void

Saves the mapped object.

ToFindString ( ) : string

Prints the file/folder structure like unix "find" command.

ToString ( ) : string

Returns a System.String that represents the current CmisSync.Lib.Storage.FileSystem.MetaDataStorage.

ValidateObjectStructure ( ) : void

Validates the object structure.

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

Метод Описание
GetId ( IMappedObject obj ) : string

Gets the identifier of the given object and throws Exceptions if object or remote object id is null

GetRelativePathSegments ( Transaction tran, string id ) : string[]
GetSubTree ( List nodes, MappedObject parent ) : IObjectTree
MetaDataStorage ( ) : System
MetaDataStorage ( DBreezeEngine engine, IPathMatcher matcher, bool fullValidation, bool disableInitialValidation = false ) : System
PrintFindLines ( List objects, MappedObject parent, string prefix ) : string
RemoveChildren ( Transaction tran, MappedObject root, List &objects ) : void
RemoveChildrenRecursively ( List objects, MappedObject root ) : void
ValidateObjectStructureIfFullValidationIsEnabled ( ) : void

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

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

Gets the children of the given parent object.
public GetChildren ( IMappedObject parent ) : List
parent IMappedObject /// Parent of the children. ///
Результат List

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

Gets the local path. Return null if not exists.
public GetLocalPath ( IMappedObject mappedObject ) : string
mappedObject IMappedObject /// Mapped object. Must not be null. ///
Результат string

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

Gets the object by GUID.
public GetObjectByGuid ( System.Guid guid ) : IMappedObject
guid System.Guid GUID of the requested object.
Результат IMappedObject

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

Gets the object by passing the local path.
public GetObjectByLocalPath ( IFileSystemInfo path ) : IMappedObject
path IFileSystemInfo /// Local path from the saved object ///
Результат IMappedObject

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

Gets the object by remote identifier.
public GetObjectByRemoteId ( string id ) : IMappedObject
id string /// CMIS Object Id. ///
Результат IMappedObject

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

Gets the tree of mapped objects.
public GetObjectTree ( ) : IObjectTree
Результат IObjectTree

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

Gets the remote path.
public GetRemotePath ( IMappedObject obj ) : string
obj IMappedObject /// The MappedObject instance. ///
Результат string

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

Removes the saved object.
public RemoveObject ( IMappedObject obj ) : void
obj IMappedObject /// Object to be removed. ///
Результат void

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

Saves the mapped object.
Is thrown when guid already in database
public SaveMappedObject ( IMappedObject obj ) : void
obj IMappedObject /// The MappedObject instance. ///
Результат void

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

Prints the file/folder structure like unix "find" command.
public ToFindString ( ) : string
Результат string

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

Returns a System.String that represents the current CmisSync.Lib.Storage.FileSystem.MetaDataStorage.
public ToString ( ) : string
Результат string

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

Validates the object structure.
public ValidateObjectStructure ( ) : void
Результат void