Class CachingInheritanceListService
- java.lang.Object
 - 
- hudson.plugins.project_inheritance.projects.actions.service.CachingInheritanceListService
 
 
- 
- All Implemented Interfaces:
 InheritanceListService
public final class CachingInheritanceListService extends Object implements InheritanceListService
Concrete implementation ofInheritanceListServicethat 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 Summary
Constructors Constructor Description CachingInheritanceListService() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<InheritanceProject>getChildJobs(InheritanceProject myJob)Retrieves the immediate descents of the given job.List<InheritanceProject>getParentJobs(InheritanceProject myJob)Retrieves the immediate parents of the given job. 
 - 
 
- 
- 
Method Detail
- 
getParentJobs
public List<InheritanceProject> getParentJobs(InheritanceProject myJob)
Retrieves the immediate parents of the given job.- Specified by:
 getParentJobsin interfaceInheritanceListService- 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:
 getChildJobsin interfaceInheritanceListService- 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.
 
 
 - 
 
 -