public class JcrBackedDatasourceMgmtService extends Object implements org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
| Constructor and Description |
|---|
JcrBackedDatasourceMgmtService() |
JcrBackedDatasourceMgmtService(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository,
org.pentaho.database.service.IDatabaseDialectService databaseDialectService) |
| Modifier and Type | Method and Description |
|---|---|
String |
createDatasource(org.pentaho.database.model.IDatabaseConnection databaseConnection) |
void |
deleteDatasourceById(String id) |
void |
deleteDatasourceByName(String name) |
org.pentaho.database.model.IDatabaseConnection |
getDatasourceById(String id) |
org.pentaho.database.model.IDatabaseConnection |
getDatasourceByName(String name) |
List<String> |
getDatasourceIds() |
List<org.pentaho.database.model.IDatabaseConnection> |
getDatasources() |
void |
init(org.pentaho.platform.api.engine.IPentahoSession session) |
String |
updateDatasourceById(String id,
org.pentaho.database.model.IDatabaseConnection databaseConnection) |
String |
updateDatasourceByName(String name,
org.pentaho.database.model.IDatabaseConnection databaseConnection) |
public JcrBackedDatasourceMgmtService()
public JcrBackedDatasourceMgmtService(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository,
org.pentaho.database.service.IDatabaseDialectService databaseDialectService)
public void init(org.pentaho.platform.api.engine.IPentahoSession session)
init in interface org.pentaho.platform.api.engine.IPentahoInitializerpublic String createDatasource(org.pentaho.database.model.IDatabaseConnection databaseConnection) throws org.pentaho.platform.api.repository.datasource.DuplicateDatasourceException, org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
createDatasource in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtServiceorg.pentaho.platform.api.repository.datasource.DuplicateDatasourceExceptionorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceExceptionpublic void deleteDatasourceByName(String name) throws org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException, org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
deleteDatasourceByName in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtServiceorg.pentaho.platform.api.repository.datasource.NonExistingDatasourceExceptionorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceExceptionpublic void deleteDatasourceById(String id) throws org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException, org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
deleteDatasourceById in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtServiceorg.pentaho.platform.api.repository.datasource.NonExistingDatasourceExceptionorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceExceptionpublic org.pentaho.database.model.IDatabaseConnection getDatasourceByName(String name) throws org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
getDatasourceByName in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtServiceorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceExceptionpublic org.pentaho.database.model.IDatabaseConnection getDatasourceById(String id) throws org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
getDatasourceById in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtServiceorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceExceptionpublic List<org.pentaho.database.model.IDatabaseConnection> getDatasources() throws org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
getDatasources in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtServiceorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceExceptionpublic List<String> getDatasourceIds() throws org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
getDatasourceIds in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtServiceorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceExceptionpublic String updateDatasourceById(String id, org.pentaho.database.model.IDatabaseConnection databaseConnection) throws org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException, org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
updateDatasourceById in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtServiceorg.pentaho.platform.api.repository.datasource.NonExistingDatasourceExceptionorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceExceptionpublic String updateDatasourceByName(String name, org.pentaho.database.model.IDatabaseConnection databaseConnection) throws org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException, org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
updateDatasourceByName in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtServiceorg.pentaho.platform.api.repository.datasource.NonExistingDatasourceExceptionorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException