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 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()
protected String
getParentPath(String path)
boolean
hasDataAccessPermission()
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)
-
-
-
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:
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
-
hasDataAccessPermission
public boolean hasDataAccessPermission()
-
-