tmozIDomainConfiguration Interface Reference

Domain configuration. More...

List of all members.

Public Member Functions

nsISupportsArray getItems ()
 List of configuration items.
boolean hasValue (in AString name)
 Return if configuration exists.
boolean addValue (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.
AString expandVariables (in AString value)
 Expand variables.


Detailed Description

Domain configuration.

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.


Member Function Documentation

boolean addValue ( in AString  name,
in AString  value 
)

Add value.

Add item and value to the configuration.

Parameters:
name Name of the new item
value New value
Returns:
Return true if configuration was set. Return false if error or item already exists.

void deleteItem ( in AString  name  ) 

Delete Item.

Delete item from this configuration object.

Parameters:
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:

  • TAHITI_USER - user name - name of logged user
  • TAHITI_PASSWORD - password
  • TAHITI_REPOSITORY - path to the repository
  • TAHITI_DOMAIN - domain
  • TAHITI_BIN_PATH - path to the binaries
  • CSIDL_DESKTOPDIRECTORY - desktop directory
  • CSIDL_PERSONAL - documents folder
  • CSIDL_APPDATA - application folder
  • CSIDL_LOCAL_APPDATA - local application folder (not part of roaming profiles)
  • CSIDL_PROGRAM_FILES - program files

nsISupportsArray getItems (  ) 

List of configuration items.

List contains strings - name of items

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.

Parameters:
name Name of the item
Returns:
Return value of the item. Throw exception if option does not exist.

boolean hasValue ( in AString  name  ) 

Return if configuration exists.

Parameters:
name Name of the item.
Returns:
Return true if configuration exists. Return false if configuration does not exists.

boolean setValue ( in AString  name,
in AString  value 
)

Set value.

Set value of existing configuration.

Parameters:
name Name of the item
value New value
Returns:
Return true if configuration was set. Return false if error or item does not exists.


Generated on Thu Aug 27 12:37:06 2009 for Tahiti XPCOM API