Package hudson.plugins.promoted_builds
Class PromotedProjectAction
- java.lang.Object
-
- hudson.plugins.promoted_builds.PromotedProjectAction
-
- All Implemented Interfaces:
Action
,ModelObject
,PermalinkProjectAction
,ProminentProjectAction
@ExportedBean public class PromotedProjectAction extends Object implements ProminentProjectAction, PermalinkProjectAction
For customizing project top-level GUI.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.model.PermalinkProjectAction
PermalinkProjectAction.Permalink
-
-
Field Summary
Fields Modifier and Type Field Description AbstractProject<?,?>
owner
-
Constructor Summary
Constructors Constructor Description PromotedProjectAction(AbstractProject<?,?> owner, JobPropertyImpl property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
doCreateProcess(String name, org.kohsuke.stapler.StaplerRequest req)
Api
getApi()
String
getDisplayName()
String
getIconFileName()
AbstractBuild<?,?>
getLatest(PromotionProcess p)
AbstractBuild<?,?>
getLatest(String name)
Finds the last promoted build under the given criteria.List<PermalinkProjectAction.Permalink>
getPermalinks()
PromotionProcess
getProcess(String name)
Get the promotion process by name.List<PromotionProcess>
getProcesses()
List<PromotionProcess>
getPromotionProcesses()
List<Promotion>
getPromotions(PromotionProcess promotionProcess)
List<Promotion>
getPromotionsSummary(PromotionProcess promotionProcess)
returns the summary of the latest promotions for a promotion process.Status
getStatus(PromotionProcess process)
String
getUrlName()
-
-
-
Field Detail
-
owner
public final AbstractProject<?,?> owner
-
-
Constructor Detail
-
PromotedProjectAction
public PromotedProjectAction(AbstractProject<?,?> owner, JobPropertyImpl property)
-
-
Method Detail
-
getApi
public Api getApi()
-
getProcesses
@Exported public List<PromotionProcess> getProcesses()
-
getProcess
@CheckForNull public PromotionProcess getProcess(String name)
Get the promotion process by name.- Parameters:
name
- Name of the process- Returns:
- Discovered process or
null
if it cannot be found
-
getLatest
public AbstractBuild<?,?> getLatest(PromotionProcess p)
-
getPromotionProcesses
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public List<PromotionProcess> getPromotionProcesses()
-
getStatus
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Status getStatus(PromotionProcess process)
-
getLatest
public AbstractBuild<?,?> getLatest(String name)
Finds the last promoted build under the given criteria.
-
getPromotions
public List<Promotion> getPromotions(PromotionProcess promotionProcess)
-
getPromotionsSummary
public List<Promotion> getPromotionsSummary(PromotionProcess promotionProcess)
returns the summary of the latest promotions for a promotion process.- Parameters:
promotionProcess
- Name of the promotion process- Returns:
- List of latest promotions
-
getPermalinks
public List<PermalinkProjectAction.Permalink> getPermalinks()
- Specified by:
getPermalinks
in interfacePermalinkProjectAction
-
doCreateProcess
public org.kohsuke.stapler.HttpResponse doCreateProcess(@QueryParameter String name, org.kohsuke.stapler.StaplerRequest req) throws IOException
- Throws:
IOException
-
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
-
-