com.microstrategy.web.objects.admin.DataSource |
The DataSource interface represents a single Data Source, which represents the settings
for a 2- or 3-tier connection. DataSource objects can be obtained and created from
the DataSourceEnumerator
interface. The name and connection type of a
DataSource object is set upon creation, and cannot be changed. Note that any changes
made to the DataSource object will not take place until either the save method on the
DataSourceEnumerator
interface or the save method on this interface is called.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
changePassword(String newPassword)
This method changes the password to the newly
set password on the Intelligence Server which this data source points to.
| ||||||||||
abstract void |
clearKeyValues()
Clears all key values from the key values collection.
| ||||||||||
abstract WebIServerSession |
createSession()
Creates a 4-tier session using the parameters set on this interface.
| ||||||||||
abstract int |
getApplicationType()
Returns the application type set on the DataSource, from
EnumDSSXMLApplicationType .} | ||||||||||
abstract int |
getAuthMode()
Returns the current setting of the AuthMode parameter.
| ||||||||||
abstract int |
getAvailableAuthModes()
Returns the list of available auth modes, based on the type of the DataSource.
| ||||||||||
abstract String |
getCacheSetting(int settingType)
This method will return the current setting for the given cache setting type.
| ||||||||||
abstract String |
getClientID()
Returns the identifier that will be sent to the IntelligenceServer upon calling createSession,
which identifies the IP address of the XMLAPI machine.
| ||||||||||
abstract String |
getConfigurationID()
Returns the current value of the configuration ID property of the DataSource.
| ||||||||||
abstract String |
getConfigurationName()
Returns the configuration name property of the DataSource.
| ||||||||||
abstract int |
getConnectionType()
Returns the connection type of the data source.
| ||||||||||
abstract int |
getDBType()
Returns the DB type property set on the DataSource.
| ||||||||||
abstract int |
getFlags()
Returns the flags property of the DataSource.
| ||||||||||
abstract int |
getInternalProjectID()
Returns the internal project ID set on the DataSource.
| ||||||||||
abstract String |
getKeyValue(String key)
Returns the key value with the given name in the key value collection.
| ||||||||||
abstract String[] |
getKeyValueNames()
Returns the names of all currently existing key values.
| ||||||||||
abstract Locale |
getLocale()
Returns the locale property of the DataSource
| ||||||||||
abstract String |
getLocation()
Returns the location property on the DataSource.
| ||||||||||
abstract String |
getLogin()
Returns the login parameter of the DataSource.
| ||||||||||
abstract String |
getMDLogin()
Returns the MD login parameter of the DataSource.
| ||||||||||
abstract int |
getMDVersion()
Returns the metadata version set on the DataSource.
| ||||||||||
abstract String |
getName()
Returns the name of the data source.
| ||||||||||
abstract int |
getPort()
Returns the port property of the DataSource.
| ||||||||||
abstract String |
getProjectID()
Returns the project ID set on the DataSource.
| ||||||||||
abstract String |
getProjectName()
Returns the project name set on the DataSource.
| ||||||||||
abstract String |
getServerInstanceID()
Returns the current setting of the server instance ID of the DataSource.
| ||||||||||
abstract String |
getServerInstanceName()
Returns the current setting of the server instance name property of the DataSource.
| ||||||||||
abstract int |
getServerVersion()
Returns the server version property.
| ||||||||||
abstract int |
getSessionFlags()
Returns the current session flags property on the DataSource.
| ||||||||||
abstract int |
getTimeout()
Returns the timeout property of the DataSource.
| ||||||||||
abstract String |
getWHLogin()
Returns the current value of the WH login property of the DataSource.
| ||||||||||
abstract boolean |
isHidden()
Returns whether the DataSource is hidden.
| ||||||||||
abstract void |
removeKeyValue(String key)
Removes the given key value from the list of key values.
| ||||||||||
abstract void |
save()
Saves any changes to this data source object back to the registry.
| ||||||||||
abstract void |
setApplicationType(int type)
Sets the application type of the DataSource.
| ||||||||||
abstract void |
setAuthMode(int mode)
Sets the AuthMode parameter of the DataSource.
| ||||||||||
abstract void |
setCacheSetting(int settingType, String settingValue)
Sets the given cache setting to the given value.
| ||||||||||
abstract void |
setClientID(String clientID)
Sets the identifier that will be sent to the IntelligenceServer upon calling createSession,
which identifies the IP address of the XMLAPI machine.
| ||||||||||
abstract void |
setConfigurationID(String id)
Sets the configuration ID property of the DataSource.
| ||||||||||
abstract void |
setConfigurationName(String name)
Sets the configuration name property of the DataSource.
| ||||||||||
abstract void |
setDBType(int type)
Sets the DB type property.
| ||||||||||
abstract void |
setFlags(int flags)
Sets the flags on the DataSource.
| ||||||||||
abstract void |
setHidden(boolean hidden)
Sets the hidden flag of the DataSource.
| ||||||||||
abstract void |
setInternalProjectID(int id)
Sets the internal project ID on the DataSource.
| ||||||||||
abstract void |
setKeyValue(String key, String val)
Sets a key value with the given name.
| ||||||||||
abstract void |
setLocale(Locale locale)
Sets the locale property of the DataSource.
| ||||||||||
abstract void |
setLocation(String location)
Sets the location property on the DataSource.
| ||||||||||
abstract void |
setLogin(String login)
Sets the login parameter of the DataSource.
| ||||||||||
abstract void |
setMDLogin(String login)
Sets the MD login parameter of the DataSource.
| ||||||||||
abstract void |
setMDPasswd(String password)
Sets the MD password parameter of the DataSource.
| ||||||||||
abstract void |
setMDVersion(int version)
Sets the metadata version on the DataSource.
| ||||||||||
abstract void |
setPasswd(String password)
Sets the password on the DataSource.
| ||||||||||
abstract void |
setPort(int port)
Sets the port property of the DataSource.
| ||||||||||
abstract void |
setProjectID(String id)
Sets the project ID on the DataSource.
| ||||||||||
abstract void |
setProjectName(String name)
Sets the project name on the DataSource.
| ||||||||||
abstract void |
setServerInstanceID(String id)
Sets the server instance ID on the DataSource.
| ||||||||||
abstract void |
setServerInstanceName(String name)
Sets the server instance name of the DataSource.
| ||||||||||
abstract void |
setServerVersion(int version)
Sets the server version on the data source.
| ||||||||||
abstract void |
setSessionFlags(int flags)
Sets the session flags on the DataSource.
| ||||||||||
abstract void |
setTimeout(int timeout)
Sets the timeout property of the DataSource.
| ||||||||||
abstract void |
setUseSSL(boolean _useSSL)
Sets useSSL flag
which identifies whether to use secure connection.
| ||||||||||
abstract void |
setWHLogin(String login)
Sets the WH login property of the DataSource.
| ||||||||||
abstract void |
setWHPasswd(String password)
Sets the WH password property of the DataSource.
| ||||||||||
abstract boolean |
useSSL()
Returns useSSL flag.
|
This method changes the password to the newly
set password on the Intelligence Server which this data source points to. It creates
a 4-tier connection to do this. This will also change the password variable on this DataSource to the new password.
This method will only work on a DataSource with connection type EnumDSSXMLDataSourceConnectionType
.DssXmlConnectionType3Tier.
newPassword | The new password to use. |
---|
WebObjectsException | Thrown if an error occurs. |
---|
Clears all key values from the key values collection.
Creates a 4-tier session using the parameters set on this interface.
This method will only work on a DataSource with connection type EnumDSSXMLDataSourceConnectionType
.DssXmlConnectionType3Tier.
WebObjectsException | Thrown if an error occurs. |
---|
Returns the application type set on the DataSource, from EnumDSSXMLApplicationType
.}
EnumDSSXMLApplicationType
.
Returns the current setting of the AuthMode parameter.
EnumDSSXMLAuthModes
.
Returns the list of available auth modes, based on the type of the DataSource.
EnumDSSXMLAuthModes
.
This method will return the current setting for the given cache setting type.
settingType | The type of the setting to return, from EnumDSSXMLCacheSetting . |
---|
Returns the identifier that will be sent to the IntelligenceServer upon calling createSession, which identifies the IP address of the XMLAPI machine.
Returns the current value of the configuration ID property of the DataSource.
Returns the configuration name property of the DataSource.
Returns the connection type of the data source. The value of this method will
come from EnumDSSXMLDataSourceConnectionType
.
EnumDSSXMLDataSourceConnectionType
corresponding to the
connection type of this data source.
Returns the DB type property set on the DataSource.
EnumDSSXMLDatabaseType
.
Returns the flags property of the DataSource.
EnumDSSXMLDataSourceFlags
.
Returns the internal project ID set on the DataSource.
Returns the key value with the given name in the key value collection.
key | The name of the key value to return. |
---|
Returns the names of all currently existing key values.
Returns the locale property of the DataSource
Returns the location property on the DataSource.
Returns the login parameter of the DataSource.
Returns the MD login parameter of the DataSource.
Returns the metadata version set on the DataSource.
EnumDSSXMLMDVersion
.
Returns the name of the data source.
Returns the port property of the DataSource.
Returns the project ID set on the DataSource.
Returns the project name set on the DataSource.
Returns the current setting of the server instance ID of the DataSource.
Returns the current setting of the server instance name property of the DataSource.
Returns the server version property.
Returns the current session flags property on the DataSource.
EnumDSSXMLSessionFlags
.
Returns the timeout property of the DataSource.
Returns the current value of the WH login property of the DataSource.
Returns whether the DataSource is hidden.
Removes the given key value from the list of key values.
key | The name of the key to remove. |
---|
Saves any changes to this data source object back to the registry. Note that
if the object has been removed from the owner DataSourceEnumerator
, then
this call will fail.
WebObjectsAdminException | Thrown if an error occurs when saving. |
---|---|
UnsupportedOperationException | Thrown if the data source has been removed from the parent enumerator. |
Sets the application type of the DataSource.
type | The new application type, from EnumDSSXMLApplicationType .
|
---|
Sets the AuthMode parameter of the DataSource.
mode | The new value of the AuthMode parameter, from EnumDSSXMLAuthModes .}
|
---|
Sets the given cache setting to the given value.
settingType | The type of the cache setting, from EnumDSSXMLCacheSetting . |
---|---|
settingValue | The new value for the cache setting. |
Sets the identifier that will be sent to the IntelligenceServer upon calling createSession, which identifies the IP address of the XMLAPI machine.
clientID | The setting to be used for client ID upon creating a session. |
---|
Sets the configuration ID property of the DataSource.
id | The new value of the configuration ID property of the DataSource. |
---|
Sets the configuration name property of the DataSource.
name | The new value of the configuration name property of the data source. |
---|
Sets the DB type property.
type | The new setting for the DB type property - a value from EnumDSSXMLDatabaseType .
|
---|
Sets the flags on the DataSource.
flags | The new setting for the flags property. This should be the
bitwise OR(|) of values from EnumDSSXMLDataSourceFlags .
|
---|
Sets the hidden flag of the DataSource.
hidden | The new value of the hidden flag. |
---|
Sets the internal project ID on the DataSource.
id | The new value for the internal project ID property. |
---|
Sets a key value with the given name. If one already exists with the given name, then the old value will be overwritten.
key | The name of the key whose value will be changed. |
---|---|
val | The new value for the key. |
Sets the locale property of the DataSource.
locale | A java.util.Locale representing the Locale to be set on the DataSource. |
---|
Sets the location property on the DataSource.
location | The location to set on the DataSource. |
---|
Sets the login parameter of the DataSource.
login | A new value of the login parameter of the DataSource. |
---|
Sets the MD login parameter of the DataSource.
login | The new value of the MD login parameter of the DataSource. |
---|
Sets the MD password parameter of the DataSource.
password | The new value of the MD password parameter of the DataSource. |
---|
Sets the metadata version on the DataSource.
version | The metadata version to set on the DataSource, from EnumDSSXMLMDVersion .
|
---|
Sets the password on the DataSource.
password | The password to set on the DataSource. |
---|
Sets the port property of the DataSource.
port | The new value of the port property of the DataSource. |
---|
Sets the project ID on the DataSource.
id | The ID ot set on the DataSource. |
---|
Sets the project name on the DataSource.
name | The new project name to set on the property on the DataSource. |
---|
Sets the server instance ID on the DataSource.
id | The new value for the server instance ID. |
---|
Sets the server instance name of the DataSource.
name | The new server instance name to set on the DataSource. |
---|
Sets the server version on the data source.
version | The server version to set on the data source. |
---|
Sets the session flags on the DataSource.
flags | The bitwise or of values from EnumDSSXMLSessionFlags .
|
---|
Sets the timeout property of the DataSource.
timeout | The timeout to set on the DataSource. |
---|
Sets useSSL flag which identifies whether to use secure connection.
_useSSL | true or false. |
---|
Sets the WH login property of the DataSource.
login | The new value of the WH login property. |
---|
Sets the WH password property of the DataSource.
password | The new value of the WH password property. |
---|
Returns useSSL flag.