Interface InheritanceListService
-
- All Known Implementing Classes:
CachingInheritanceListService
public interface InheritanceListService
Service that provides information on job inheriting from, and jobs inherited by for a given job.This is a service that provides data to the controller. The controller will in turn pass the data to the view.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<InheritanceProject>
getChildJobs(InheritanceProject job)
Retrieves the immediate descents of the given job.List<InheritanceProject>
getParentJobs(InheritanceProject job)
Retrieves the immediate parents of the given job.
-
-
-
Method Detail
-
getParentJobs
List<InheritanceProject> getParentJobs(InheritanceProject job)
Retrieves the immediate parents of the given job.- Parameters:
job
- The job for which we are to retrieve its parents.- Returns:
- A list with the jobs that are immediate parents of the given job. Ths list will be ordered alphabetically by job name.
-
getChildJobs
List<InheritanceProject> getChildJobs(InheritanceProject job)
Retrieves the immediate descents of the given job. That is, the jobs that inherit from the given job.- Parameters:
job
- The job for which we are to retrieve its children.- Returns:
- A list with the jobs that are the immediate descendants of the given job. This list will be ordered alphabetically by job name.
-
-