hudson.plugins.promoted_builds
クラス PromotedBuildAction

java.lang.Object
  上位を拡張 hudson.plugins.promoted_builds.PromotedBuildAction
すべての実装されたインタフェース:
hudson.model.Action, hudson.model.BuildBadgeAction, hudson.model.ModelObject

public final class PromotedBuildAction
extends java.lang.Object
implements hudson.model.BuildBadgeAction

Action for AbstractBuild indicating that it's promoted.

作成者:
Kohsuke Kawaguchi

フィールドの概要
 hudson.model.AbstractBuild<?,?> owner
           
 
コンストラクタの概要
PromotedBuildAction(hudson.model.AbstractBuild<?,?> owner)
           
PromotedBuildAction(hudson.model.AbstractBuild<?,?> owner, Status firstStatus)
           
 
メソッドの概要
 boolean add(Status status)
          Called when the build is qualified.
 boolean canPromote()
           
 boolean contains(PromotionProcess process)
          Checks if the given criterion is already promoted.
 boolean contains(java.lang.String name)
          Checks if the given criterion is already promoted.
 void doForcePromotion(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, java.lang.String name)
          Force a promotion.
 java.lang.String getDisplayName()
           
 Status getDynamic(java.lang.String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Binds Status to URL hierarchy by its name.
 java.lang.String getIconFileName()
           
 java.util.List<PromotionProcess> getPendingPromotions()
          Gets list of PromotionProcesss that are not yet attained.
 hudson.model.AbstractProject<?,?> getProject()
          Gets the owning project.
 Status getPromotion(java.lang.String name)
          Finds the Status that has matching Status.name value.
 java.util.List<Status> getPromotions()
          Gets the read-only view of all the promotions that this build achieved.
 java.lang.String getUrlName()
           
 boolean hasPromotion()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

owner

public final hudson.model.AbstractBuild<?,?> owner
コンストラクタの詳細

PromotedBuildAction

public PromotedBuildAction(hudson.model.AbstractBuild<?,?> owner)

PromotedBuildAction

public PromotedBuildAction(hudson.model.AbstractBuild<?,?> owner,
                           Status firstStatus)
メソッドの詳細

getProject

public hudson.model.AbstractProject<?,?> getProject()
Gets the owning project.


contains

public boolean contains(PromotionProcess process)
Checks if the given criterion is already promoted.


contains

public boolean contains(java.lang.String name)
Checks if the given criterion is already promoted.


add

public boolean add(Status status)
            throws java.io.IOException
Called when the build is qualified.

例外:
java.io.IOException

getPromotions

public java.util.List<Status> getPromotions()
Gets the read-only view of all the promotions that this build achieved.


getPromotion

public Status getPromotion(java.lang.String name)
Finds the Status that has matching Status.name value. Or null if not found.


hasPromotion

public boolean hasPromotion()

canPromote

public boolean canPromote()

getPendingPromotions

public java.util.List<PromotionProcess> getPendingPromotions()
Gets list of PromotionProcesss that are not yet attained.

戻り値:
can be empty but never null.

getIconFileName

public java.lang.String getIconFileName()
定義:
インタフェース hudson.model.Action 内の getIconFileName

getDisplayName

public java.lang.String getDisplayName()
定義:
インタフェース hudson.model.Action 内の getDisplayName
定義:
インタフェース hudson.model.ModelObject 内の getDisplayName

getUrlName

public java.lang.String getUrlName()
定義:
インタフェース hudson.model.Action 内の getUrlName

getDynamic

public Status getDynamic(java.lang.String name,
                         org.kohsuke.stapler.StaplerRequest req,
                         org.kohsuke.stapler.StaplerResponse rsp)
Binds Status to URL hierarchy by its name.


doForcePromotion

public void doForcePromotion(org.kohsuke.stapler.StaplerRequest req,
                             org.kohsuke.stapler.StaplerResponse rsp,
                             @QueryParameter(value="name")
                             java.lang.String name)
                      throws java.io.IOException
Force a promotion.

例外:
java.io.IOException


Copyright © 2011. All Rights Reserved.