Class CachingInheritanceListService

  • All Implemented Interfaces:
    InheritanceListService

    public final class CachingInheritanceListService
    extends Object
    implements InheritanceListService
    Concrete implementation of InheritanceListService that obtains inheritance data from the job itself.

    NOTE: This class will evolve to also generate inheritance diagrams for a given job. At that poing the "Caching" part of this class name will begun to be real.

    • Constructor Detail

      • CachingInheritanceListService

        public CachingInheritanceListService()
    • Method Detail

      • getParentJobs

        public List<InheritanceProject> getParentJobs​(InheritanceProject myJob)
        Retrieves the immediate parents of the given job.
        Specified by:
        getParentJobs in interface InheritanceListService
        Parameters:
        myJob - 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

        public List<InheritanceProject> getChildJobs​(InheritanceProject myJob)
        Retrieves the immediate descents of the given job. That is, the jobs that inherit from the given job.
        Specified by:
        getChildJobs in interface InheritanceListService
        Parameters:
        myJob - 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.