de.folt.rpc.messages
Class DeleteOpenTMSDataSource

java.lang.Object
  extended by de.folt.rpc.messages.DeleteOpenTMSDataSource
All Implemented Interfaces:
RPCMessage

public class DeleteOpenTMSDataSource
extends java.lang.Object
implements RPCMessage

Author:
Klemens Waldhör

Constructor Summary
DeleteOpenTMSDataSource()
           
 
Method Summary
 java.util.Vector execute(java.util.Hashtable message)
          DeleteOpenTMSDataSource deletes an OpenTMS Datasource.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteOpenTMSDataSource

public DeleteOpenTMSDataSource()
Method Detail

execute

public java.util.Vector execute(java.util.Hashtable message)
DeleteOpenTMSDataSource deletes an OpenTMS Datasource. Parameters are provided through a hash table. The hashtable contains the following keys:

dataSourceName - the name of the data source
dataSourceType - the type of the data source; any defined database, e.g. MySQl
dataSourceServer - the name of the server, e.g. localhost or IP address
dataSourcePort - the port of the data source, e.g. 1433
dataSourceUser - the user of the data source, e.g. sa
dataSourcePassword - the name of the data source, e.g. folt
dataModel - either TMX or TBX depending on the data source

It returns:

vec.add(de.folt.constants.OpenTMSConstants.OpenTMS_ID_SUCCESS +"");
vec.add(dataSourceName + " successfully deleted!");

or

vec.add(de.folt.constants.OpenTMSConstants.OpenTMS_ID_FAILURE +"");
vec.add(ex.getMessage());

Specified by:
execute in interface RPCMessage
Parameters:
message - a hash table containing the message specific parameters
Returns:
a Vector containing the results of executing the method.
See Also:
RPCMessage.execute(java.util.Hashtable)