C# Class CmisSync.Lib.Storage.Database.MetaDataStorage

Meta data storage.
Inheritance: IMetaDataStorage
ファイルを表示 Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

GetChildren() public method

Gets the children of the given parent object.
public GetChildren ( IMappedObject parent ) : List
parent IMappedObject /// Parent of the children. ///
return List

GetLocalPath() public method

Gets the local path. Return null if not exists.
public GetLocalPath ( IMappedObject mappedObject ) : string
mappedObject IMappedObject /// Mapped object. Must not be null. ///
return string

GetObjectByGuid() public method

Gets the object by GUID.
public GetObjectByGuid ( System.Guid guid ) : IMappedObject
guid System.Guid GUID of the requested object.
return IMappedObject

GetObjectByLocalPath() public method

Gets the object by passing the local path.
public GetObjectByLocalPath ( IFileSystemInfo path ) : IMappedObject
path IFileSystemInfo /// Local path from the saved object ///
return IMappedObject

GetObjectByRemoteId() public method

Gets the object by remote identifier.
public GetObjectByRemoteId ( string id ) : IMappedObject
id string /// CMIS Object Id. ///
return IMappedObject

GetObjectTree() public method

Gets the tree of mapped objects.
public GetObjectTree ( ) : IObjectTree
return IObjectTree

GetRemotePath() public method

Gets the remote path.
public GetRemotePath ( IMappedObject obj ) : string
obj IMappedObject /// The MappedObject instance. ///
return string

RemoveObject() public method

Removes the saved object.
public RemoveObject ( IMappedObject obj ) : void
obj IMappedObject /// Object to be removed. ///
return void

SaveMappedObject() public method

Saves the mapped object.
Is thrown when guid already in database
public SaveMappedObject ( IMappedObject obj ) : void
obj IMappedObject /// The MappedObject instance. ///
return void

ToFindString() public method

Prints the file/folder structure like unix "find" command.
public ToFindString ( ) : string
return string

ToString() public method

Returns a System.String that represents the current CmisSync.Lib.Storage.FileSystem.MetaDataStorage.
public ToString ( ) : string
return string

ValidateObjectStructure() public method

Validates the object structure.
public ValidateObjectStructure ( ) : void
return void