org.pentaho.platform.repository.datasource
Class DatasourceMgmtService
java.lang.Object
org.pentaho.platform.repository.datasource.DatasourceMgmtService
- All Implemented Interfaces:
- IPentahoInitializer, IDatasourceMgmtService
public class DatasourceMgmtService
- extends Object
- implements IDatasourceMgmtService
DatasourceMgmtService
public DatasourceMgmtService()
getLogger
public org.apache.commons.logging.Log getLogger()
createDatasource
public void createDatasource(IDatasource newDatasource)
throws DuplicateDatasourceException,
DatasourceMgmtServiceException
- Specified by:
createDatasource
in interface IDatasourceMgmtService
- Throws:
DuplicateDatasourceException
DatasourceMgmtServiceException
deleteDatasource
public void deleteDatasource(String jndiName)
throws NonExistingDatasourceException,
DatasourceMgmtServiceException
- Specified by:
deleteDatasource
in interface IDatasourceMgmtService
- Throws:
NonExistingDatasourceException
DatasourceMgmtServiceException
deleteDatasource
public void deleteDatasource(IDatasource datasource)
throws NonExistingDatasourceException,
DatasourceMgmtServiceException
- Specified by:
deleteDatasource
in interface IDatasourceMgmtService
- Throws:
NonExistingDatasourceException
DatasourceMgmtServiceException
getDatasource
public IDatasource getDatasource(String jndiName)
throws DatasourceMgmtServiceException
- Specified by:
getDatasource
in interface IDatasourceMgmtService
- Throws:
DatasourceMgmtServiceException
getDatasources
public List<IDatasource> getDatasources()
throws DatasourceMgmtServiceException
- Specified by:
getDatasources
in interface IDatasourceMgmtService
- Throws:
DatasourceMgmtServiceException
updateDatasource
public void updateDatasource(IDatasource datasource)
throws NonExistingDatasourceException,
DatasourceMgmtServiceException
- Specified by:
updateDatasource
in interface IDatasourceMgmtService
- Throws:
NonExistingDatasourceException
DatasourceMgmtServiceException
init
public void init(IPentahoSession session)
- Description copied from interface:
IPentahoInitializer
- Simplifier for initialization of objects from the PentahoSystem object
- Specified by:
init
in interface IPentahoInitializer