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
ConstructorDescriptionJcrBackedDatasourceMgmtService
(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) void
void
deleteDatasourceByName
(String name) org.pentaho.database.model.IDatabaseConnection
org.pentaho.database.model.IDatabaseConnection
getDatasourceByName
(String name) List<org.pentaho.database.model.IDatabaseConnection>
protected String
getParentPath
(String path) boolean
void
init
(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:
init
in 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:
createDatasource
in interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
- Throws:
org.pentaho.platform.api.repository.datasource.DuplicateDatasourceException
org.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:
deleteDatasourceByName
in interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
- Throws:
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException
org.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:
deleteDatasourceById
in interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
- Throws:
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException
org.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:
getDatasourceByName
in 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:
getDatasourceById
in 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:
getDatasources
in 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:
getDatasourceIds
in 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:
updateDatasourceById
in interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
- Throws:
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException
org.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:
updateDatasourceByName
in interfaceorg.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
- Throws:
org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException
org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
-
getParentPath
-
hasDataAccessPermission
public boolean hasDataAccessPermission()
-