Class SkipVote
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.SkipVote
- All Implemented Interfaces:
Serializable
Information about what votes to "skip" for a
GerritTrigger.- Author:
- Robert Sandell <robert.sandell@sonymobile.com>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf the vote should be skipped (not counted) forResult.ABORTEDbuilds.booleanIf the vote should be skipped (not counted) forResult.FAILUREbuilds.booleanIf the vote should be skipped (not counted) forResult.NOT_BUILTbuilds.booleanIf the vote should be skipped (not counted) forResult.SUCCESSbuilds.booleanIf the vote should be skipped (not counted) forResult.UNSTABLEbuilds.voidsetOnAborted(boolean onAborted) If the vote should be skipped (not counted) forResult.ABORTEDbuilds.voidsetOnFailed(boolean onFailed) If the vote should be skipped (not counted) forResult.FAILUREbuilds.voidsetOnNotBuilt(boolean onNotBuilt) If the vote should be skipped (not counted) forResult.NOT_BUILTbuilds.voidsetOnSuccessful(boolean onSuccessful) If the vote should be skipped (not counted) forResult.SUCCESSbuilds.voidsetOnUnstable(boolean onUnstable) If the vote should be skipped (not counted) forResult.UNSTABLEbuilds.
-
Constructor Details
-
SkipVote
@DataBoundConstructor public SkipVote(boolean onSuccessful, boolean onFailed, boolean onUnstable, boolean onNotBuilt, boolean onAborted) Standard DataBound Constructor.- Parameters:
onSuccessful- if the vote should be skipped (not counted) forResult.SUCCESSbuilds.onFailed- if the vote should be skipped (not counted) forResult.FAILUREbuilds.onUnstable- if the vote should be skipped (not counted) forResult.UNSTABLEbuilds.onNotBuilt- if the vote should be skipped (not counted) forResult.NOT_BUILTbuilds.onAborted- if the vote should be skipped (not counted) forResult.ABORTEDbuilds.
-
SkipVote
@Deprecated public SkipVote(boolean onSuccessful, boolean onFailed, boolean onUnstable, boolean onNotBuilt) Deprecated.replaced withSkipVote(boolean, boolean, boolean, boolean, boolean)Old Standard DataBound Constructor left here for backwards compatiblity.- Parameters:
onSuccessful- if the vote should be skipped (not counted) forResult.SUCCESSbuilds.onFailed- if the vote should be skipped (not counted) forResult.FAILUREbuilds.onUnstable- if the vote should be skipped (not counted) forResult.UNSTABLEbuilds.onNotBuilt- if the vote should be skipped (not counted) forResult.NOT_BUILTbuilds.
-
SkipVote
public SkipVote()Default Constructor.
-
-
Method Details
-
isOnSuccessful
public boolean isOnSuccessful()If the vote should be skipped (not counted) forResult.SUCCESSbuilds.- Returns:
- true if it should be skipped.
-
setOnSuccessful
public void setOnSuccessful(boolean onSuccessful) If the vote should be skipped (not counted) forResult.SUCCESSbuilds.- Parameters:
onSuccessful- true if it should be skipped.
-
isOnFailed
public boolean isOnFailed()If the vote should be skipped (not counted) forResult.FAILUREbuilds.- Returns:
- true if it should be skipped.
-
setOnFailed
public void setOnFailed(boolean onFailed) If the vote should be skipped (not counted) forResult.FAILUREbuilds.- Parameters:
onFailed- true if it should be skipped.
-
isOnUnstable
public boolean isOnUnstable()If the vote should be skipped (not counted) forResult.UNSTABLEbuilds.- Returns:
- true if it should be skipped.
-
setOnUnstable
public void setOnUnstable(boolean onUnstable) If the vote should be skipped (not counted) forResult.UNSTABLEbuilds.- Parameters:
onUnstable- true if it should be skipped.
-
isOnNotBuilt
public boolean isOnNotBuilt()If the vote should be skipped (not counted) forResult.NOT_BUILTbuilds.- Returns:
- true if it should be skipped.
-
setOnNotBuilt
public void setOnNotBuilt(boolean onNotBuilt) If the vote should be skipped (not counted) forResult.NOT_BUILTbuilds.- Parameters:
onNotBuilt- true if it should be skipped.
-
isOnAborted
public boolean isOnAborted()If the vote should be skipped (not counted) forResult.ABORTEDbuilds.- Returns:
- true if it should be skipped.
-
setOnAborted
public void setOnAborted(boolean onAborted) If the vote should be skipped (not counted) forResult.ABORTEDbuilds.- Parameters:
onAborted- true if it should be skipped.
-
SkipVote(boolean, boolean, boolean, boolean, boolean)