Interface DataSourceSelector
-
- All Known Implementing Classes:
DefaultDataSourceSelector
public interface DataSourceSelectorConvenient interface for decoupling data sources selection from data modeler module.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetGlobalSelection()Use this method to select global data sources.voidsetModuleSelection(org.guvnor.common.services.project.model.Module module)Use this method to restrict the data sources selection to a given project.voidshow(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.
-
-