Class DefaultDatasourceMgmtWebService
- java.lang.Object
-
- org.pentaho.platform.repository.webservices.DefaultDatasourceMgmtWebService
-
- All Implemented Interfaces:
IDatasourceMgmtWebService
public class DefaultDatasourceMgmtWebService extends Object implements IDatasourceMgmtWebService
-
-
Field Summary
Fields Modifier and Type Field Description protected org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
datasourceMgmtService
-
Constructor Summary
Constructors Constructor Description DefaultDatasourceMgmtWebService()
No-arg constructor for when in Pentaho BI Server.DefaultDatasourceMgmtWebService(org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService datasourceMgmtService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createDatasource(DatabaseConnectionDto dbConnDto)
void
deleteDatasourceById(String id)
void
deleteDatasourceByName(String name)
DatabaseConnectionDto
getDatasourceById(String id)
DatabaseConnectionDto
getDatasourceByName(String name)
List<String>
getDatasourceIds()
List<DatabaseConnectionDto>
getDatasources()
String
updateDatasourceById(String id, DatabaseConnectionDto databaseConnection)
String
updateDatasourceByName(String name, DatabaseConnectionDto databaseConnectionDto)
-
-
-
Constructor Detail
-
DefaultDatasourceMgmtWebService
public DefaultDatasourceMgmtWebService()
No-arg constructor for when in Pentaho BI Server.
-
DefaultDatasourceMgmtWebService
public DefaultDatasourceMgmtWebService(org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService datasourceMgmtService)
-
-
Method Detail
-
createDatasource
public String createDatasource(DatabaseConnectionDto dbConnDto)
- Specified by:
createDatasource
in interfaceIDatasourceMgmtWebService
-
deleteDatasourceByName
public void deleteDatasourceByName(String name)
- Specified by:
deleteDatasourceByName
in interfaceIDatasourceMgmtWebService
-
getDatasourceByName
public DatabaseConnectionDto getDatasourceByName(String name)
- Specified by:
getDatasourceByName
in interfaceIDatasourceMgmtWebService
-
getDatasources
public List<DatabaseConnectionDto> getDatasources()
- Specified by:
getDatasources
in interfaceIDatasourceMgmtWebService
-
updateDatasourceByName
public String updateDatasourceByName(String name, DatabaseConnectionDto databaseConnectionDto)
- Specified by:
updateDatasourceByName
in interfaceIDatasourceMgmtWebService
-
deleteDatasourceById
public void deleteDatasourceById(String id)
- Specified by:
deleteDatasourceById
in interfaceIDatasourceMgmtWebService
-
getDatasourceById
public DatabaseConnectionDto getDatasourceById(String id)
- Specified by:
getDatasourceById
in interfaceIDatasourceMgmtWebService
-
getDatasourceIds
public List<String> getDatasourceIds()
- Specified by:
getDatasourceIds
in interfaceIDatasourceMgmtWebService
-
updateDatasourceById
public String updateDatasourceById(String id, DatabaseConnectionDto databaseConnection)
- Specified by:
updateDatasourceById
in interfaceIDatasourceMgmtWebService
-
-