Oracle Collaboration Suite Discussions Java API Reference
10g (10.1.1)

Part No. B16232-01


oracle.discussions.sdk
Interface TdGlobalSettings

All Superinterfaces:
java.util.Map

public interface TdGlobalSettings
extends java.util.Map

Represents the settings at the entire oracle discussions application level.

TdGlobalSettings extend a hashmap and they represent a set of key-value pairs representing system level properties.
They are set during the installation of discussions and can be changed by the global administrator.
Settings set at lower levels override these global settings.

Oracle discussions elements names have been changed in the webui compared to that of sdk portion. The existing names to the new names mapping is as shown.

Sample code illustrating the usage of TdGlobalSettings

  //gsettings is an instance of TdGlobalSettings
  //tdstore is an instance of TdStore
  //Extract the reply prefix from the global settings.
  String settings = (String) gsettings.get(TdBoardSettings.REPLY_PREFIX);
  //set a differnt value for the reply prefix
  gsettings.put(TdBoardSettings.REPLY_PREFIX, "test value");
  //update the settings
  tdstore.updateGlobalSettings(_tdgsAdmin);
  
Since:
OCS 10.1.1
See Also:
HashMap

Nested Class Summary

Nested classes inherited from class java.util.Map
java.util.Map.Entry

Method Summary
java.util.Map currents()
Returns all the current keys with a value without returning the defaults
void validate()
Validates the value of the parameters currently set in this container settings instance.

Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values

Method Detail

currents

public java.util.Map currents()
Returns all the current keys with a value without returning the defaults
Returns:
Map

validate

public void validate()
              throws TdException
Validates the value of the parameters currently set in this container settings instance.
Throws:
TdException - if a parameter has an invalid value

Copyright © 2005, Oracle. All rights reserved.