Configuration

Injectable as: config

Provides access to the Noonian configuration store, as well as the running instance configuration.

Todo

Move this to a CodeModule in the sys package; make instanceConf injectable by itself

instanceConf

A reference to the instance configuration (instance-config.js)

getValue(key, defaultValue)

Retrieve a value from the config store

Arguments
  • key (string) – config key

  • defaultValue – value to return if key is not present in store

saveValue(key, value, userId)

Save a value to the config store. If userId is not null, a user-specific config key will be saved.

Arguments
  • key (string) – config key

  • value – value to save

  • userId (string) – ID of User account