Show / Hide Table of Contents

Class ConfigRepository

The ConfigRepository that is used for loading and saving Settings to the database.

Inheritance
java.lang.Object
RepositoryBase
ConfigRepository
Inherited Members
java.lang.Object.clone()
java.lang.Object.equals(java.lang.Object)
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
RepositoryBase.combinePath(String,String)
RepositoryBase.createMissingDirectories(String)
RepositoryBase.deleteFile(String)
RepositoryBase.deleteFolder(File)
RepositoryBase.getBaseDirectory()
RepositoryBase.loadFile(String)
RepositoryBase.loadFileRelative(String)
RepositoryBase.readFileContents(String)
RepositoryBase.renameFile(String,String)
RepositoryBase.writeToFile(String,String)
RepositoryBase.writeToFileRelative(String,String)
Namespace:
Assembly: .dll
Syntax
public class ConfigRepository extends RepositoryBase

Constructors

ConfigRepository(String configPath)

Declaration
public ConfigRepository(String configPath)
Parameters
Type Name Description
java.lang.String configPath

Methods

loadSettings(String relativeSettingsPath)

Loads the settings json from the database and deserializes it into UserSettings.

Declaration
public UserSettings loadSettings(String relativeSettingsPath)
Parameters
Type Name Description
java.lang.String relativeSettingsPath

The relative path to the settings file.

Returns
Type Description
UserSettings

The UserSettings instance

saveSettings(UserSettings settings, String relativeSavePath)

Saves a given UserSettings instance to the database.

Declaration
public void saveSettings(UserSettings settings, String relativeSavePath)
Parameters
Type Name Description
UserSettings settings

The settings to save

java.lang.String relativeSavePath

The relative path to save them to

In This Article
Back to top Generated by DocFX