Class InheritanceListAction

  • All Implemented Interfaces:
    Action, ModelObject

    public final class InheritanceListAction
    extends Object
    implements Action
    Action used for showing the list of inherited from, and inherited by jobs for a given job.

    This action is transient, and associated with one concrete job. It will not have any associated icon/link in the Jenkins left navigation menu. Its purpose is to display a section in the job detail page.

    • Constructor Detail

      • InheritanceListAction

        public InheritanceListAction​(InheritanceProject project,
                                     InheritanceListService service)
        Parameters:
        project - The job that we will provide information about.
        service - the service that provides info about inheritance relationships
    • Method Detail

      • getParentJobs

        public List<InheritanceProject> getParentJobs()
        Retrieves the jobs that are the immediate parents of our job.

        This method is intended to be called from within the Jelly view for this action.

        Returns:
        A list with the jobs that are the immediate parents of our job.
      • getChildJobs

        public List<InheritanceProject> getChildJobs()
        Retrieves the jobs that are the immediate descendants of our job.

        This method is intended to be called from within the Jelly view for this action.

        Returns:
        A list with the jobs that are the immediate descendants of our job.