Class 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 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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.pentaho.platform.api.repository.datasource.IDatasourceMgmtService
        Throws:
        org.pentaho.platform.api.repository.datasource.NonExistingDatasourceException
        org.pentaho.platform.api.repository.datasource.DatasourceMgmtServiceException
      • getParentPath

        protected String getParentPath​(String path)