Class ApplicationSearchDataService
- java.lang.Object
-
- com.group21.jobTracker.backend.DataService
-
- com.group21.jobTracker.backend.mock.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Jobs>getAllJobs()Returns a list of jobs from the CSV file.static DataServicegetInstance(String keywords)Returns an instance of ApplicationSearchDataService.JobsgetJobsbyId(int jobId)Return a Jobs object from the CSV file given an id.-
Methods inherited from class com.group21.jobTracker.backend.DataService
get, getJob, getSearchResults
-
-
-
-
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:DataServiceReturns a list of jobs from the CSV file.- Specified by:
getAllJobsin classDataService- Returns:
- List of Jobs objects
-
getJobsbyId
public Jobs getJobsbyId(int jobId)
Description copied from class:DataServiceReturn a Jobs object from the CSV file given an id.- Specified by:
getJobsbyIdin classDataService- Parameters:
jobId- id of the Jobs object you are searching for- Returns:
- the Jobs object with the given id
-
-