Interface SearchFacade<ITEM,STATE extends SearchStateData>

Type Parameters:
ITEM - Type of item to be searched.
STATE - Type of search state depending containing the information about the query.
All Known Subinterfaces:
B2BBudgetFacade, B2BCostCenterFacade, BudgetFacade, CostCenterFacade
All Known Implementing Classes:
DefaultB2BBudgetFacade, DefaultB2BBudgetFacade, DefaultB2BCostCenterFacade, DefaultB2BCostCenterFacade

public interface SearchFacade<ITEM,STATE extends SearchStateData>
Defines the search funtionality for different types of data objects, using the concept of pagination and states.
  • Method Details

    • search

      SearchPageData<ITEM> search(STATE searchState, PageableData pageableData)
      Searches for the ITEM's based on the search state. The query object allows more complex queries using facet selection.
      Parameters:
      searchState - the search query object
      pageableData - the page to return
      Returns:
      the search results
    • autocomplete

      List<AutocompleteSuggestionData> autocomplete(STATE searchState)
      Get the auto complete suggestions for the provided input.
      Parameters:
      searchState - the search query object
      Returns:
      a list of suggested search terms