Package com.persequor.extension.frontend
Interface ISelectOptionsProvider
- All Known Implementing Classes:
VocabularyDataProvider
public interface ISelectOptionsProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault SelectOptions
defaultOptions
(Map<String, String> configParameters) Returns default list of options to show when no search has started yet or when the search returns no results.fetchOptions
(String searchString, Map<String, String> configParameters) Fetches options based on the provided search string and provider parameters.
-
Method Details
-
fetchOptions
Fetches options based on the provided search string and provider parameters.- Parameters:
searchString
- the search string to filter optionsconfigParameters
- additional configuration parameters for fetching options- Returns:
- a SelectOptions object containing the fetched options
-
defaultOptions
Returns default list of options to show when no search has started yet or when the search returns no results. It is wise to limit it to some human comprehensible number of options (e.g. max 100).
-