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
-
Field Summary
Fields inherited from interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
IDATASOURCEMGMTSERVICE -
Constructor Summary
ConstructorsConstructorDescriptionJcrBackedDatasourceMgmtService(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository, org.pentaho.database.service.IDatabaseDialectService databaseDialectService) -
Method Summary
Modifier and TypeMethodDescriptioncreateDatasource(org.pentaho.database.model.IDatabaseConnection databaseConnection) voidvoiddeleteDatasourceByName(String name) org.pentaho.database.model.IDatabaseConnectionorg.pentaho.database.model.IDatabaseConnectiongetDatasourceByName(String name) List<org.pentaho.database.model.IDatabaseConnection>protected StringgetParentPath(String path) booleanvoidinit(org.pentaho.platform.api.engine.IPentahoSession session) updateDatasourceById(String id, org.pentaho.database.model.IDatabaseConnection databaseConnection) updateDatasourceByName(String name, org.pentaho.database.model.IDatabaseConnection databaseConnection)
-
Constructor Details
-
JcrBackedDatasourceMgmtService
public JcrBackedDatasourceMgmtService() -
JcrBackedDatasourceMgmtService
public JcrBackedDatasourceMgmtService(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository, org.pentaho.database.service.IDatabaseDialectService databaseDialectService)
-
-
Method Details
-
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
-
getParentPath
-
hasDataAccessPermission
public boolean hasDataAccessPermission()
-