Class MockDataService
- java.lang.Object
-
- com.group21.jobTracker.backend.DataService
-
- com.group21.jobTracker.backend.mock.MockDataService
-
- All Implemented Interfaces:
Serializable
public class MockDataService extends DataService
Mock data model. This implementation has very simplistic locking and does not notify users of modifications.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Jobs>getAllJobs()This Function is to get all jobs for the user general dashboardstatic DataServicegetInstance()Initialize the DatService InstanceJobsgetJobsbyId(int jobId)This Function is to Search job by Id-
Methods inherited from class com.group21.jobTracker.backend.DataService
get, getJob, getSearchResults
-
-
-
-
Method Detail
-
getInstance
public static DataService getInstance()
Initialize the DatService Instance- Returns:
- MocDataService instance which contain the list of jobs from linkedin api
-
getAllJobs
public List<Jobs> getAllJobs()
This Function is to get all jobs for the user general dashboard- Specified by:
getAllJobsin classDataService- Returns:
- a collection of Jobs for the User to show on Job Board View
-
getJobsbyId
public Jobs getJobsbyId(int jobId)
This Function is to Search job by Id- Specified by:
getJobsbyIdin classDataService- Parameters:
jobId- id of the Jobs object you are searching for- Returns:
- null if no job found else return the job which was looking for
-
-