Class 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 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:
        getAllJobs in class DataService
        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:
        getJobsbyId in class DataService
        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