org.pentaho.platform.repository.datasource
Class DatasourceMgmtService

java.lang.Object
  extended by org.pentaho.platform.repository.datasource.DatasourceMgmtService
All Implemented Interfaces:
IPentahoInitializer, IDatasourceMgmtService

public class DatasourceMgmtService
extends Object
implements IDatasourceMgmtService


Field Summary
 
Fields inherited from interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
IDATASOURCEMGMTSERVICE
 
Constructor Summary
DatasourceMgmtService()
           
 
Method Summary
 void createDatasource(IDatasource newDatasource)
           
 void deleteDatasource(IDatasource datasource)
           
 void deleteDatasource(String jndiName)
           
 IDatasource getDatasource(String jndiName)
           
 List<IDatasource> getDatasources()
           
 Log getLogger()
           
 void init(IPentahoSession session)
          Simplifier for initialization of objects from the PentahoSystem object
 void updateDatasource(IDatasource datasource)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasourceMgmtService

public DatasourceMgmtService()
Method Detail

getLogger

public 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