C# Class Mono.Addins.Database.AddinDatabase

Datei anzeigen Open project: mono/mono-addins Class Usage Examples

Private Properties

Property Type Description
AddinDependsOn bool
AddinIdExists bool
BuildMissingAddinsList string
CheckFolders bool
DatabaseInfrastructureCheck bool
EnableAddin void
FilterById IEnumerable
FindNodeSet Mono.Addins.Description.ExtensionNodeSet
GetAddinFiles IEnumerable
GetAddinHostIndex Mono.Addins.Database.AddinHostIndex
GetDescriptionPath string
GetDomains string[]
GetInstalledDomainAddin Addin
GetSetupHandler ISetupHandler
GetUniqueAddinId string
HasPendingUninstalls bool
InternalGetInstalledAddins IEnumerable
InternalGetInstalledAddins IEnumerable
IsAddinEnabled bool
OnResolveAddinAssembly System.Reflection.Assembly
RemoveAddinDescriptionFile bool
ResetBasicCachedData void
ResetCachedData void
ScanFolders void
UninstallAddin void

Public Methods

Method Description
AddChildExtensions ( AddinDescription conf, ModuleDescription module, Mono.Addins.Database.AddinUpdateData updateData, AddinIndex index, string path, ExtensionNodeDescriptionCollection nodes, bool conditionChildren ) : void
AddNodeSorted ( ExtensionNodeDescriptionCollection list, Mono.Addins.Description.ExtensionNodeDescription node, int &curPos ) : void
AddinDatabase ( AddinEngine addinEngine, AddinRegistry registry ) : System
AddinDependsOn ( string domain, string id1, string id2 ) : bool
AddinDescriptionExists ( string domain, string addinId ) : bool
Clear ( ) : void
CollectExtensionData ( IProgressStatus monitor, AddinIndex addinHash, AddinDescription conf, Mono.Addins.Database.AddinUpdateData updateData ) : void
CollectExtensionPointData ( AddinDescription conf, Mono.Addins.Database.AddinUpdateData updateData ) : void
CollectModuleExtensionData ( AddinDescription conf, ModuleDescription module, Mono.Addins.Database.AddinUpdateData updateData, AddinIndex index ) : void
ConsolidateExtensions ( AddinDescription conf ) : void
CopyExtensions ( AddinDatabase other ) : void
DeleteFolderInfo ( IProgressStatus monitor, Mono.Addins.Database.AddinScanFolderInfo folderInfo ) : bool
DisableAddin ( string domain, string id, bool exactVersionMatch = false ) : void
EnableAddin ( string domain, string id ) : void
EnsureInsertionsSorted ( ExtensionNodeDescriptionCollection list ) : void
FindInstalledAddins ( Addin>.Dictionary result, string domain, string idFilter ) : void
FindNodeSet ( string domain, string addinId, string id ) : Mono.Addins.Description.ExtensionNodeSet
GenerateAddinExtensionMapsInternal ( IProgressStatus monitor, string domain, List addinsToUpdate, List addinsToUpdateRelations, List removedAddins ) : void
GetAddinDescription ( IProgressStatus monitor, string domain, string addinId, string addinFile, AddinDescription &description ) : bool
GetAddinForHostAssembly ( string domain, string assemblyLocation ) : Addin
GetFolderConfigFile ( string path ) : string
GetFolderDomain ( IProgressStatus progressStatus, string path ) : string
GetFolderInfoForPath ( IProgressStatus monitor, string path, Mono.Addins.Database.AddinScanFolderInfo &folderInfo ) : bool
GetInstalledAddin ( string domain, string id ) : Addin
GetInstalledAddin ( string domain, string id, bool exactVersionMatch ) : Addin
GetInstalledAddin ( string domain, string id, bool exactVersionMatch, bool enabledOnly ) : Addin
GetInstalledAddins ( string domain, AddinSearchFlagsInternal flags ) : IEnumerable
GetUniqueDomainId ( ) : string
InternalCheck ( string domain ) : void
InternalScanFolders ( IProgressStatus monitor, Mono.Addins.Database.AddinScanResult scanResult ) : void
InternalScanFolders2 ( IProgressStatus monitor, Mono.Addins.Database.AddinScanResult scanResult ) : void
IsAddinEnabled ( string domain, string id ) : bool
IsRegisteredForUninstall ( string domain, string addinId ) : bool
ParseAddin ( IProgressStatus progressStatus, string domain, string file, string outFile, bool inProcess ) : void
ReadAddinDescription ( IProgressStatus monitor, string file, AddinDescription &description ) : bool
ReadFolderInfo ( IProgressStatus monitor, string file, Mono.Addins.Database.AddinScanFolderInfo &folderInfo ) : bool
RegisterExtension ( object extension ) : void
RegisterForUninstall ( string domain, string id, IEnumerable files ) : void
Repair ( IProgressStatus monitor, string domain ) : void
ResetConfiguration ( ) : void
RunPendingUninstalls ( IProgressStatus monitor ) : void
RunScannerProcess ( IProgressStatus monitor ) : void
SafeDelete ( IProgressStatus monitor, string file ) : bool
SafeDeleteDir ( IProgressStatus monitor, string dir ) : bool
SaveAddinHostIndex ( ) : void
SaveConfiguration ( ) : void
SaveDescription ( IProgressStatus monitor, AddinDescription desc, string replaceFileName ) : bool
SaveFolderInfo ( IProgressStatus monitor, Mono.Addins.Database.AddinScanFolderInfo folderInfo ) : bool
ScanFolders ( IProgressStatus monitor, Mono.Addins.Database.AddinScanResult scanResult ) : void
Shutdown ( ) : void
UnregisterExtension ( object extension ) : void
Update ( IProgressStatus monitor, string domain ) : void
UpdateLastVersionFlags ( List addins ) : void

Private Methods

Method Description
AddinDependsOn ( Hashtable visited, string domain, string id1, string id2 ) : bool
AddinIdExists ( string id ) : bool
BuildMissingAddinsList ( AddinIndex addinHash, AddinDescription conf, IEnumerable missingDeps ) : string
CheckFolders ( IProgressStatus monitor, string domain ) : bool
DatabaseInfrastructureCheck ( IProgressStatus monitor ) : bool
EnableAddin ( string domain, string id, bool exactVersionMatch ) : void
FilterById ( List addins, string id ) : IEnumerable
FindNodeSet ( string domain, string addinId, string id, Hashtable visited ) : Mono.Addins.Description.ExtensionNodeSet
GetAddinFiles ( string fullId, string domains ) : IEnumerable
GetAddinHostIndex ( ) : Mono.Addins.Database.AddinHostIndex
GetDescriptionPath ( string domain, string id ) : string
GetDomains ( ) : string[]
GetInstalledDomainAddin ( string domain, string id, bool exactVersionMatch, bool enabledOnly, bool dbLockCheck ) : Addin
GetSetupHandler ( ) : ISetupHandler
GetUniqueAddinId ( string file, string oldId, string ns, string version ) : string
HasPendingUninstalls ( string domain ) : bool
InternalGetInstalledAddins ( string domain, AddinSearchFlagsInternal type ) : IEnumerable
InternalGetInstalledAddins ( string domain, string idFilter, AddinSearchFlagsInternal type ) : IEnumerable
IsAddinEnabled ( string domain, string id, bool exactVersionMatch ) : bool
OnResolveAddinAssembly ( object s, ResolveEventArgs args ) : Assembly
RemoveAddinDescriptionFile ( IProgressStatus monitor, string file ) : bool
ResetBasicCachedData ( ) : void
ResetCachedData ( ) : void
ScanFolders ( IProgressStatus monitor, string currentDomain, string folderToScan, StringCollection filesToIgnore ) : void
UninstallAddin ( IProgressStatus monitor, string domain, string addinId, string addinFile, Mono.Addins.Database.AddinScanResult scanResult ) : void

Method Details

AddChildExtensions() public method

public AddChildExtensions ( AddinDescription conf, ModuleDescription module, Mono.Addins.Database.AddinUpdateData updateData, AddinIndex index, string path, ExtensionNodeDescriptionCollection nodes, bool conditionChildren ) : void
conf Mono.Addins.Description.AddinDescription
module Mono.Addins.Description.ModuleDescription
updateData Mono.Addins.Database.AddinUpdateData
index AddinIndex
path string
nodes Mono.Addins.Description.ExtensionNodeDescriptionCollection
conditionChildren bool
return void

AddNodeSorted() public method

public AddNodeSorted ( ExtensionNodeDescriptionCollection list, Mono.Addins.Description.ExtensionNodeDescription node, int &curPos ) : void
list Mono.Addins.Description.ExtensionNodeDescriptionCollection
node Mono.Addins.Description.ExtensionNodeDescription
curPos int
return void

AddinDatabase() public method

public AddinDatabase ( AddinEngine addinEngine, AddinRegistry registry ) : System
addinEngine AddinEngine
registry AddinRegistry
return System

AddinDependsOn() public method

public AddinDependsOn ( string domain, string id1, string id2 ) : bool
domain string
id1 string
id2 string
return bool

AddinDescriptionExists() public method

public AddinDescriptionExists ( string domain, string addinId ) : bool
domain string
addinId string
return bool

Clear() public method

public Clear ( ) : void
return void

CollectExtensionData() public method

public CollectExtensionData ( IProgressStatus monitor, AddinIndex addinHash, AddinDescription conf, Mono.Addins.Database.AddinUpdateData updateData ) : void
monitor IProgressStatus
addinHash AddinIndex
conf Mono.Addins.Description.AddinDescription
updateData Mono.Addins.Database.AddinUpdateData
return void

CollectExtensionPointData() public method

public CollectExtensionPointData ( AddinDescription conf, Mono.Addins.Database.AddinUpdateData updateData ) : void
conf Mono.Addins.Description.AddinDescription
updateData Mono.Addins.Database.AddinUpdateData
return void

CollectModuleExtensionData() public method

public CollectModuleExtensionData ( AddinDescription conf, ModuleDescription module, Mono.Addins.Database.AddinUpdateData updateData, AddinIndex index ) : void
conf Mono.Addins.Description.AddinDescription
module Mono.Addins.Description.ModuleDescription
updateData Mono.Addins.Database.AddinUpdateData
index AddinIndex
return void

ConsolidateExtensions() public method

public ConsolidateExtensions ( AddinDescription conf ) : void
conf Mono.Addins.Description.AddinDescription
return void

CopyExtensions() public method

public CopyExtensions ( AddinDatabase other ) : void
other AddinDatabase
return void

DeleteFolderInfo() public method

public DeleteFolderInfo ( IProgressStatus monitor, Mono.Addins.Database.AddinScanFolderInfo folderInfo ) : bool
monitor IProgressStatus
folderInfo Mono.Addins.Database.AddinScanFolderInfo
return bool

DisableAddin() public method

public DisableAddin ( string domain, string id, bool exactVersionMatch = false ) : void
domain string
id string
exactVersionMatch bool
return void

EnableAddin() public method

public EnableAddin ( string domain, string id ) : void
domain string
id string
return void

EnsureInsertionsSorted() public method

public EnsureInsertionsSorted ( ExtensionNodeDescriptionCollection list ) : void
list Mono.Addins.Description.ExtensionNodeDescriptionCollection
return void

FindInstalledAddins() public method

public FindInstalledAddins ( Addin>.Dictionary result, string domain, string idFilter ) : void
result Addin>.Dictionary
domain string
idFilter string
return void

FindNodeSet() public method

public FindNodeSet ( string domain, string addinId, string id ) : Mono.Addins.Description.ExtensionNodeSet
domain string
addinId string
id string
return Mono.Addins.Description.ExtensionNodeSet

GenerateAddinExtensionMapsInternal() public method

public GenerateAddinExtensionMapsInternal ( IProgressStatus monitor, string domain, List addinsToUpdate, List addinsToUpdateRelations, List removedAddins ) : void
monitor IProgressStatus
domain string
addinsToUpdate List
addinsToUpdateRelations List
removedAddins List
return void

GetAddinDescription() public method

public GetAddinDescription ( IProgressStatus monitor, string domain, string addinId, string addinFile, AddinDescription &description ) : bool
monitor IProgressStatus
domain string
addinId string
addinFile string
description Mono.Addins.Description.AddinDescription
return bool

GetAddinForHostAssembly() public method

public GetAddinForHostAssembly ( string domain, string assemblyLocation ) : Addin
domain string
assemblyLocation string
return Addin

GetFolderConfigFile() public method

public GetFolderConfigFile ( string path ) : string
path string
return string

GetFolderDomain() public method

public GetFolderDomain ( IProgressStatus progressStatus, string path ) : string
progressStatus IProgressStatus
path string
return string

GetFolderInfoForPath() public method

public GetFolderInfoForPath ( IProgressStatus monitor, string path, Mono.Addins.Database.AddinScanFolderInfo &folderInfo ) : bool
monitor IProgressStatus
path string
folderInfo Mono.Addins.Database.AddinScanFolderInfo
return bool

GetInstalledAddin() public method

public GetInstalledAddin ( string domain, string id ) : Addin
domain string
id string
return Addin

GetInstalledAddin() public method

public GetInstalledAddin ( string domain, string id, bool exactVersionMatch ) : Addin
domain string
id string
exactVersionMatch bool
return Addin

GetInstalledAddin() public method

public GetInstalledAddin ( string domain, string id, bool exactVersionMatch, bool enabledOnly ) : Addin
domain string
id string
exactVersionMatch bool
enabledOnly bool
return Addin

GetInstalledAddins() public method

public GetInstalledAddins ( string domain, AddinSearchFlagsInternal flags ) : IEnumerable
domain string
flags AddinSearchFlagsInternal
return IEnumerable

GetUniqueDomainId() public method

public GetUniqueDomainId ( ) : string
return string

InternalCheck() public method

public InternalCheck ( string domain ) : void
domain string
return void

InternalScanFolders() public method

public InternalScanFolders ( IProgressStatus monitor, Mono.Addins.Database.AddinScanResult scanResult ) : void
monitor IProgressStatus
scanResult Mono.Addins.Database.AddinScanResult
return void

InternalScanFolders2() public method

public InternalScanFolders2 ( IProgressStatus monitor, Mono.Addins.Database.AddinScanResult scanResult ) : void
monitor IProgressStatus
scanResult Mono.Addins.Database.AddinScanResult
return void

IsAddinEnabled() public method

public IsAddinEnabled ( string domain, string id ) : bool
domain string
id string
return bool

IsRegisteredForUninstall() public method

public IsRegisteredForUninstall ( string domain, string addinId ) : bool
domain string
addinId string
return bool

ParseAddin() public method

public ParseAddin ( IProgressStatus progressStatus, string domain, string file, string outFile, bool inProcess ) : void
progressStatus IProgressStatus
domain string
file string
outFile string
inProcess bool
return void

ReadAddinDescription() public method

public ReadAddinDescription ( IProgressStatus monitor, string file, AddinDescription &description ) : bool
monitor IProgressStatus
file string
description Mono.Addins.Description.AddinDescription
return bool

ReadFolderInfo() public method

public ReadFolderInfo ( IProgressStatus monitor, string file, Mono.Addins.Database.AddinScanFolderInfo &folderInfo ) : bool
monitor IProgressStatus
file string
folderInfo Mono.Addins.Database.AddinScanFolderInfo
return bool

RegisterExtension() public method

public RegisterExtension ( object extension ) : void
extension object
return void

RegisterForUninstall() public method

public RegisterForUninstall ( string domain, string id, IEnumerable files ) : void
domain string
id string
files IEnumerable
return void

Repair() public method

public Repair ( IProgressStatus monitor, string domain ) : void
monitor IProgressStatus
domain string
return void

ResetConfiguration() public method

public ResetConfiguration ( ) : void
return void

RunPendingUninstalls() public method

public RunPendingUninstalls ( IProgressStatus monitor ) : void
monitor IProgressStatus
return void

RunScannerProcess() public method

public RunScannerProcess ( IProgressStatus monitor ) : void
monitor IProgressStatus
return void

SafeDelete() public method

public SafeDelete ( IProgressStatus monitor, string file ) : bool
monitor IProgressStatus
file string
return bool

SafeDeleteDir() public method

public SafeDeleteDir ( IProgressStatus monitor, string dir ) : bool
monitor IProgressStatus
dir string
return bool

SaveAddinHostIndex() public method

public SaveAddinHostIndex ( ) : void
return void

SaveConfiguration() public method

public SaveConfiguration ( ) : void
return void

SaveDescription() public method

public SaveDescription ( IProgressStatus monitor, AddinDescription desc, string replaceFileName ) : bool
monitor IProgressStatus
desc Mono.Addins.Description.AddinDescription
replaceFileName string
return bool

SaveFolderInfo() public method

public SaveFolderInfo ( IProgressStatus monitor, Mono.Addins.Database.AddinScanFolderInfo folderInfo ) : bool
monitor IProgressStatus
folderInfo Mono.Addins.Database.AddinScanFolderInfo
return bool

ScanFolders() public method

public ScanFolders ( IProgressStatus monitor, Mono.Addins.Database.AddinScanResult scanResult ) : void
monitor IProgressStatus
scanResult Mono.Addins.Database.AddinScanResult
return void

Shutdown() public method

public Shutdown ( ) : void
return void

UnregisterExtension() public method

public UnregisterExtension ( object extension ) : void
extension object
return void

Update() public method

public Update ( IProgressStatus monitor, string domain ) : void
monitor IProgressStatus
domain string
return void

UpdateLastVersionFlags() public method

public UpdateLastVersionFlags ( List addins ) : void
addins List
return void