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.IPentahoInitializer
public 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.IDatasourceMgmtService
org.pentaho.platform.api.repository.datasource.DuplicateDatasourceException
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
public 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.IDatasourceMgmtService
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
public 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.IDatasourceMgmtService
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
public 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.IDatasourceMgmtService
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
public 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.IDatasourceMgmtService
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
public List<org.pentaho.database.model.IDatabaseConnection> getDatasources() throws org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
getDatasources
in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
public List<String> getDatasourceIds() throws org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
getDatasourceIds
in interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
public 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.IDatasourceMgmtService
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
public 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.IDatasourceMgmtService
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException