Package org.pentaho.platform.repository
Class JcrBackedDatasourceMgmtService
- java.lang.Object
-
- org.pentaho.platform.repository.JcrBackedDatasourceMgmtService
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IPentahoInitializer,org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
public class JcrBackedDatasourceMgmtService extends Object implements org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
-
-
Constructor Summary
Constructors Constructor Description JcrBackedDatasourceMgmtService()JcrBackedDatasourceMgmtService(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository, org.pentaho.database.service.IDatabaseDialectService databaseDialectService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreateDatasource(org.pentaho.database.model.IDatabaseConnection databaseConnection)voiddeleteDatasourceById(String id)voiddeleteDatasourceByName(String name)org.pentaho.database.model.IDatabaseConnectiongetDatasourceById(String id)org.pentaho.database.model.IDatabaseConnectiongetDatasourceByName(String name)List<String>getDatasourceIds()List<org.pentaho.database.model.IDatabaseConnection>getDatasources()protected StringgetParentPath(String path)booleanhasDataAccessPermission()voidinit(org.pentaho.platform.api.engine.IPentahoSession session)StringupdateDatasourceById(String id, org.pentaho.database.model.IDatabaseConnection databaseConnection)StringupdateDatasourceByName(String name, org.pentaho.database.model.IDatabaseConnection databaseConnection)
-
-
-
Constructor Detail
-
JcrBackedDatasourceMgmtService
public JcrBackedDatasourceMgmtService()
-
JcrBackedDatasourceMgmtService
public JcrBackedDatasourceMgmtService(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository, org.pentaho.database.service.IDatabaseDialectService databaseDialectService)
-
-
Method Detail
-
init
public void init(org.pentaho.platform.api.engine.IPentahoSession session)
- Specified by:
initin interfaceorg.pentaho.platform.api.engine.IPentahoInitializer
-
createDatasource
public String createDatasource(org.pentaho.database.model.IDatabaseConnection databaseConnection) throws org.pentaho.platform.api.repository.datasource.DuplicateDatasourceException, org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
- Specified by:
createDatasourcein interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService- Throws:
org.pentaho.platform.api.repository.datasource.DuplicateDatasourceExceptionorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
-
deleteDatasourceByName
public void deleteDatasourceByName(String name) throws org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException, org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
- Specified by:
deleteDatasourceByNamein interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService- Throws:
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceExceptionorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
-
deleteDatasourceById
public void deleteDatasourceById(String id) throws org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException, org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
- Specified by:
deleteDatasourceByIdin interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService- Throws:
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceExceptionorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
-
getDatasourceByName
public org.pentaho.database.model.IDatabaseConnection getDatasourceByName(String name) throws org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
- Specified by:
getDatasourceByNamein interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService- Throws:
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
-
getDatasourceById
public org.pentaho.database.model.IDatabaseConnection getDatasourceById(String id) throws org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
- Specified by:
getDatasourceByIdin interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService- Throws:
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
-
getDatasources
public List<org.pentaho.database.model.IDatabaseConnection> getDatasources() throws org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
- Specified by:
getDatasourcesin interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService- Throws:
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
-
getDatasourceIds
public List<String> getDatasourceIds() throws org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
- Specified by:
getDatasourceIdsin interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService- Throws:
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
-
updateDatasourceById
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
- Specified by:
updateDatasourceByIdin interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService- Throws:
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceExceptionorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
-
updateDatasourceByName
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
- Specified by:
updateDatasourceByNamein interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService- Throws:
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceExceptionorg.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
-
hasDataAccessPermission
public boolean hasDataAccessPermission()
-
-