Class ApplicationSearchDataProvider

  • All Implemented Interfaces:
    com.vaadin.flow.data.provider.ConfigurableFilterDataProvider<Jobs,​com.vaadin.flow.function.SerializablePredicate<Jobs>,​com.vaadin.flow.function.SerializablePredicate<Jobs>>, com.vaadin.flow.data.provider.DataProvider<Jobs,​com.vaadin.flow.function.SerializablePredicate<Jobs>>, com.vaadin.flow.data.provider.InMemoryDataProvider<Jobs>, Serializable

    public class ApplicationSearchDataProvider
    extends com.vaadin.flow.data.provider.ListDataProvider<Jobs>
    This class is the data provider for the application search page in JobTracker. The data pulled is from API calls to LinkedIn and CareerOneStop.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Integer getId​(Jobs job)  
      void save​(Jobs job)
      Store given job to the CSV backend.
      void setFilter​(String filterText)
      Sets the filter to use for this data provider and refreshes data.
      • Methods inherited from class com.vaadin.flow.data.provider.ListDataProvider

        fetch, getFilter, getItems, getSortComparator, setFilter, setSortComparator, size
      • Methods inherited from class com.vaadin.flow.data.provider.AbstractDataProvider

        addDataProviderListener, addListener, fireEvent, refreshAll, refreshItem, refreshItem
      • Methods inherited from interface com.vaadin.flow.data.provider.DataProvider

        addDataProviderListener, refreshAll, refreshItem, refreshItem, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
      • Methods inherited from interface com.vaadin.flow.data.provider.InMemoryDataProvider

        addFilter, addFilter, addFilterByValue, addSortComparator, addSortOrder, clearFilters, filteringBy, filteringBy, filteringByEquals, filteringByPrefix, filteringByPrefix, filteringBySubstring, filteringBySubstring, isInMemory, setFilter, setFilterByValue, setSortOrder
    • Constructor Detail

      • ApplicationSearchDataProvider

        public ApplicationSearchDataProvider​(String keywords)
        Constructor
        Parameters:
        keywords - string that is used to limit the search for API calls (eg "Software Intern")
    • Method Detail

      • save

        public void save​(Jobs job)
        Store given job to the CSV backend.
        Parameters:
        job - to be saved
      • setFilter

        public void setFilter​(String filterText)
        Sets the filter to use for this data provider and refreshes data.

        Filter is compared for product name, availability and category.

        Parameters:
        filterText - the text to filter by, never null