Class ApplicationSearchDataService

  • All Implemented Interfaces:
    Serializable

    public class ApplicationSearchDataService
    extends DataService
    This class represents the DataService used for the "ApplicationSearch" feature of JobTracker. The data is populated by using API calls to LinkedIn and CareerOneStop.
    See Also:
    Serialized Form
    • Method Detail

      • getInstance

        public static DataService getInstance​(String keywords)
        Returns an instance of ApplicationSearchDataService.
        Parameters:
        keywords - string to limit the search
        Returns:
        an ApplicationSearchDataService object
      • getAllJobs

        public List<Jobs> getAllJobs()
        Description copied from class: DataService
        Returns a list of jobs from the CSV file.
        Specified by:
        getAllJobs in class DataService
        Returns:
        List of Jobs objects
      • getJobsbyId

        public Jobs getJobsbyId​(int jobId)
        Description copied from class: DataService
        Return a Jobs object from the CSV file given an id.
        Specified by:
        getJobsbyId in class DataService
        Parameters:
        jobId - id of the Jobs object you are searching for
        Returns:
        the Jobs object with the given id