Methods
(static) GetConfigTree() → {dynamic}
Read config tree from json config file and return
- Source
- Type:
- dynamic
(static) RegistryReadAll(section) → {dynamic}
Return all data found inside a registry section
| Name | Type | Description |
|---|---|---|
section | string |
- Source
- Type:
- dynamic
(static) findConfigTreeKey(key, tree) → {dynamic}
Recursivly search the config tree for entry with settingname equal to key
| Name | Type | Description |
|---|---|---|
key | string | |
tree | dynamic |
- Source
- Type:
- dynamic
(static) getGlobalRegistrySection() → {string}
Helper to get the global registry section name Returns "test-global" during tests, "JellyRock" in production
- Source
- Type:
- string
(static) getRegistrySections() → {object}
Return an array of all the registry section keys
- Source
- Type:
- object
(static) getSavedUsers() → {object}
Returns an array of saved users from the registry that belong to the active server
- Source
- Type:
- object
(static) getSetting(key, defaultValueopt) → {dynamic}
"JellyRock" registry accessors for the default global settings
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | dynamic | |||
defaultValue | dynamic | <optional> | invalid |
- Source
- Type:
- dynamic
(static) getSettingKeysToDelete(allKeys, preserveKeys) → {object}
Filter registry keys to find those that should be deleted during a settings reset Preserves session/identity keys, deletes everything else
| Name | Type | Description |
|---|---|---|
allKeys | object | associative array of all registry key-value pairs |
preserveKeys | object | array of key names to preserve |
- Source
- array of key names that should be deleted
- Type:
- object
(static) getUserSetting(key) → {dynamic}
User registry accessors for the currently active user
| Name | Type | Description |
|---|---|---|
key | string |
- Source
- Type:
- dynamic
(static) isGlobalSetting(key) → {boolean}
Helper to determine if a setting is global (applies to all users)
| Name | Type | Description |
|---|---|---|
key | string |
- Source
- Type:
- boolean
(static) registryDelete(key, sectionopt) → {void}
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | dynamic | |||
section | dynamic | <optional> | invalid |
- Source
- Type:
- void
(static) registryRead(key, sectionopt) → {dynamic}
Generic registry accessors
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | dynamic | |||
section | dynamic | <optional> | invalid |
- Source
- Type:
- dynamic
(static) registryWrite(key, value, sectionopt) → {void}
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
key | dynamic | |||
value | dynamic | |||
section | dynamic | <optional> | invalid |
- Source
- Type:
- void
(static) setSetting(key, value) → {void}
| Name | Type | Description |
|---|---|---|
key | dynamic | |
value | dynamic |
- Source
- Type:
- void
(static) setUserSetting(key, value) → {void}
| Name | Type | Description |
|---|---|---|
key | string | |
value | dynamic |
- Source
- Type:
- void
(static) unsetSetting(key) → {void}
| Name | Type | Description |
|---|---|---|
key | dynamic |
- Source
- Type:
- void
(static) unsetUserSetting(key) → {void}
| Name | Type | Description |
|---|---|---|
key | string |
- Source
- Type:
- void
(static) valueToString(value) → {string}
Convert dynamic value to string for registry storage
| Name | Type | Description |
|---|---|---|
value | dynamic |
- Source
- Type:
- string