C# Class CmisSync.Lib.Config.Config

Datei anzeigen Open project: OpenDataSpace/CmisSync

Private Properties

Property Type Description
Config System
Config System
CreateDefaultLog4NetElement System.Xml.XmlElement
Load Config

Public Methods

Method Description
CreateInitialConfig ( string fullPath ) : Config

Create an initial XML configuration file with default settings and zero remote folders.

CreateInitialListOfGloballyHiddenRepoNames ( ) : List

Creates the initial list of globally hidden repo names.

CreateInitialListOfGloballyIgnoredFileNames ( ) : List

Creates the initial list of globally ignored file names.

CreateInitialListOfGloballyIgnoredFolderNames ( ) : List

Creates the initial list of globally ignored folder names.

CreateOrLoadByPath ( string fullPath ) : Config

Creates the config or loads the config by path.

GetConfigPath ( ) : string

Path of the folder where configuration files are. These files are in particular the XML configuration file, the database files, and the log file.

GetFoldersPath ( ) : string

Path where the synchronized folders are stored by default.

GetFullPath ( ) : string

Gets the full path to this config file.

GetHomePath ( ) : string

Path to the user's home folder.

GetLog4NetConfig ( ) : XmlElement

Log4net configuration, as an XML tree readily usable by Log4net.

GetLogFilePath ( ) : string

Get the configured path to the log file.

GetLogFilePath ( string configPath ) : string

Gets the log file path.

GetOperationsLogFilePath ( string configPath ) : string

Gets the operations log file path.

GetRepoInfo ( string displayName ) : RepoInfo

Gets the configured folder with the given name or null if no folder with this name exists.

Save ( ) : void

Save the currently loaded (in memory) configuration back to the XML file.

SetLog4NetConfig ( XmlNode node ) : void

Sets a new XmlNode as Log4NetConfig. Is useful for config migration

Private Methods

Method Description
Config ( ) : System
Config ( string fullPath ) : System
CreateDefaultLog4NetElement ( string logFilePath, string operationsLogFilePath ) : XmlElement
Load ( string fullPath ) : Config

Method Details

CreateInitialConfig() public static method

Create an initial XML configuration file with default settings and zero remote folders.
public static CreateInitialConfig ( string fullPath ) : Config
fullPath string /// Absolute full path to config file ///
return Config

CreateInitialListOfGloballyHiddenRepoNames() public static method

Creates the initial list of globally hidden repo names.
public static CreateInitialListOfGloballyHiddenRepoNames ( ) : List
return List

CreateInitialListOfGloballyIgnoredFileNames() public static method

Creates the initial list of globally ignored file names.
public static CreateInitialListOfGloballyIgnoredFileNames ( ) : List
return List

CreateInitialListOfGloballyIgnoredFolderNames() public static method

Creates the initial list of globally ignored folder names.
public static CreateInitialListOfGloballyIgnoredFolderNames ( ) : List
return List

CreateOrLoadByPath() public static method

Creates the config or loads the config by path.
public static CreateOrLoadByPath ( string fullPath ) : Config
fullPath string /// Full path. ///
return Config

GetConfigPath() public method

Path of the folder where configuration files are. These files are in particular the XML configuration file, the database files, and the log file.
public GetConfigPath ( ) : string
return string

GetFoldersPath() public method

Path where the synchronized folders are stored by default.
public GetFoldersPath ( ) : string
return string

GetFullPath() public method

Gets the full path to this config file.
public GetFullPath ( ) : string
return string

GetHomePath() public method

Path to the user's home folder.
public GetHomePath ( ) : string
return string

GetLog4NetConfig() public method

Log4net configuration, as an XML tree readily usable by Log4net.
public GetLog4NetConfig ( ) : XmlElement
return System.Xml.XmlElement

GetLogFilePath() public method

Get the configured path to the log file.
public GetLogFilePath ( ) : string
return string

GetLogFilePath() public static method

Gets the log file path.
public static GetLogFilePath ( string configPath ) : string
configPath string Config path.
return string

GetOperationsLogFilePath() public static method

Gets the operations log file path.
public static GetOperationsLogFilePath ( string configPath ) : string
configPath string Config path.
return string

GetRepoInfo() public method

Gets the configured folder with the given name or null if no folder with this name exists.
public GetRepoInfo ( string displayName ) : RepoInfo
displayName string The name of the repoInfo Name.
return RepoInfo

Save() public method

Save the currently loaded (in memory) configuration back to the XML file.
public Save ( ) : void
return void

SetLog4NetConfig() public method

Sets a new XmlNode as Log4NetConfig. Is useful for config migration
public SetLog4NetConfig ( XmlNode node ) : void
node System.Xml.XmlNode log4net xml config section
return void