Interface DataSourceSelector

  • All Known Implementing Classes:
    DefaultDataSourceSelector

    public interface DataSourceSelector
    Convenient interface for decoupling data sources selection from data modeler module.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setGlobalSelection()
      Use this method to select global data sources.
      void setModuleSelection​(org.guvnor.common.services.project.model.Module module)
      Use this method to restrict the data sources selection to a given project.
      void show​(org.uberfire.mvp.ParameterizedCommand<DataSourceInfo> onSelectCommand, org.uberfire.mvp.Command onCloseCommand)
      Opens the data source selector in popup mode.
    • Method Detail

      • setModuleSelection

        void setModuleSelection​(org.guvnor.common.services.project.model.Module module)
        Use this method to restrict the data sources selection to a given project.
        Parameters:
        module - Module where to select the data sources from.
      • setGlobalSelection

        void setGlobalSelection()
        Use this method to select global data sources.
      • show

        void show​(org.uberfire.mvp.ParameterizedCommand<DataSourceInfo> onSelectCommand,
                  org.uberfire.mvp.Command onCloseCommand)
        Opens the data source selector in popup mode.
        Parameters:
        onSelectCommand - when a data source is selected the popup is automatically closed and the onSelectCommand is executed to let clients now about the selection.
        onCloseCommand - executed when the popup is closed with no selection.