Class InheritanceListAction
- java.lang.Object
-
- hudson.plugins.project_inheritance.projects.actions.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 Summary
Constructors Constructor Description InheritanceListAction(InheritanceProject project, InheritanceListService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<InheritanceProject>
getChildJobs()
Retrieves the jobs that are the immediate descendants of our job.String
getDisplayName()
String
getIconFileName()
List<InheritanceProject>
getParentJobs()
Retrieves the jobs that are the immediate parents of our job.String
getUrlName()
-
-
-
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
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
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.
-
-