Public Member Functions | |
nsISupportsArray | getItems () |
List of configuration items. | |
boolean | hasValue (in AString name) |
Return if configuration exists. | |
boolean | addValue (in long itemType, in AString name, in AString value) |
Add value. | |
void | deleteItem (in AString name) |
Delete Item. | |
AString | getValue (in AString name) |
Return configuration value. | |
boolean | setValue (in AString name, in AString value) |
Set value. | |
long | getItemSource (in AString name) |
Return source of the item. | |
AString | expandVariables (in AString value) |
Expand variables. | |
Public Attributes | |
const long | SOURCE_DOMAIN = 0 |
Specific option is defined in the domain.xml. | |
const long | SOURCE_CONFIG = 1 |
Specific option is defined in the config.xml. | |
const long | SOURCE_USER = 2 |
Specific option is defined by the user. |
Domain specific configuration. Object can be used to access domain configuration. If requested value is not member of the domain configuration it will be returned/set in shared configuration.
boolean addValue | ( | in long | itemType, | |
in AString | name, | |||
in AString | value | |||
) |
Add value.
Add item and value to the configuration.
itemType | type of the item. Type if one of the following
| |
name | Name of the new item | |
value | New value |
void deleteItem | ( | in AString | name | ) |
Delete Item.
Delete item from this configuration object.
name | Name of the deleted item |
AString expandVariables | ( | in AString | value | ) |
Expand variables.
Function will expand variables in the string. Variables are written like VARIABLE%.
List of available variables:
nsISupportsArray getItems | ( | ) |
List of configuration items.
List contains strings - names of items
long getItemSource | ( | in AString | name | ) |
Return source of the item.
Source of the item can be:
SOURCE_DOMAIN
SOURCE_CONFIG
SOURCE_USER
AString getValue | ( | in AString | name | ) |
Return configuration value.
Return domain specific value for given configuration. If value is not found in the domain configuration method return value from shared configuration.
name | Name of the item |
boolean hasValue | ( | in AString | name | ) |
Return if configuration exists.
name | Name of the item. |
boolean setValue | ( | in AString | name, | |
in AString | value | |||
) |
Set value.
Set value of existing configuration.
name | Name of the item | |
value | New value |
const long SOURCE_CONFIG = 1 |
Specific option is defined in the config.xml.
config.xml can be uploaded to the server
const long SOURCE_DOMAIN = 0 |
Specific option is defined in the domain.xml.
domain.xml is core configuration file for the domain. This file is always located on the client computer.