Interface ISelectOptionsProvider

All Known Implementing Classes:
VocabularyDataProvider

public interface ISelectOptionsProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    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

      @Nonnull SelectOptions fetchOptions(String searchString, Map<String,String> configParameters)
      Fetches options based on the provided search string and provider parameters.
      Parameters:
      searchString - the search string to filter options
      configParameters - additional configuration parameters for fetching options
      Returns:
      a SelectOptions object containing the fetched options
    • defaultOptions

      default 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. It is wise to limit it to some human comprehensible number of options (e.g. max 100).