Class SkipVote
- java.lang.Object
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.SkipVote
-
- All Implemented Interfaces:
Serializable
public class SkipVote extends Object implements Serializable
Information about what votes to "skip" for aGerritTrigger
.- Author:
- Robert Sandell <robert.sandell@sonymobile.com>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SkipVote()
Default Constructor.SkipVote(boolean onSuccessful, boolean onFailed, boolean onUnstable, boolean onNotBuilt)
Deprecated.replaced withSkipVote(boolean, boolean, boolean, boolean, boolean)
SkipVote(boolean onSuccessful, boolean onFailed, boolean onUnstable, boolean onNotBuilt, boolean onAborted)
Standard DataBound Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isOnAborted()
If the vote should be skipped (not counted) forResult.ABORTED
builds.boolean
isOnFailed()
If the vote should be skipped (not counted) forResult.FAILURE
builds.boolean
isOnNotBuilt()
If the vote should be skipped (not counted) forResult.NOT_BUILT
builds.boolean
isOnSuccessful()
If the vote should be skipped (not counted) forResult.SUCCESS
builds.boolean
isOnUnstable()
If the vote should be skipped (not counted) forResult.UNSTABLE
builds.void
setOnAborted(boolean onAborted)
If the vote should be skipped (not counted) forResult.ABORTED
builds.void
setOnFailed(boolean onFailed)
If the vote should be skipped (not counted) forResult.FAILURE
builds.void
setOnNotBuilt(boolean onNotBuilt)
If the vote should be skipped (not counted) forResult.NOT_BUILT
builds.void
setOnSuccessful(boolean onSuccessful)
If the vote should be skipped (not counted) forResult.SUCCESS
builds.void
setOnUnstable(boolean onUnstable)
If the vote should be skipped (not counted) forResult.UNSTABLE
builds.
-
-
-
Constructor Detail
-
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.SUCCESS
builds.onFailed
- if the vote should be skipped (not counted) forResult.FAILURE
builds.onUnstable
- if the vote should be skipped (not counted) forResult.UNSTABLE
builds.onNotBuilt
- if the vote should be skipped (not counted) forResult.NOT_BUILT
builds.onAborted
- if the vote should be skipped (not counted) forResult.ABORTED
builds.
-
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.SUCCESS
builds.onFailed
- if the vote should be skipped (not counted) forResult.FAILURE
builds.onUnstable
- if the vote should be skipped (not counted) forResult.UNSTABLE
builds.onNotBuilt
- if the vote should be skipped (not counted) forResult.NOT_BUILT
builds.
-
SkipVote
public SkipVote()
Default Constructor.
-
-
Method Detail
-
isOnSuccessful
public boolean isOnSuccessful()
If the vote should be skipped (not counted) forResult.SUCCESS
builds.- Returns:
- true if it should be skipped.
-
setOnSuccessful
public void setOnSuccessful(boolean onSuccessful)
If the vote should be skipped (not counted) forResult.SUCCESS
builds.- Parameters:
onSuccessful
- true if it should be skipped.
-
isOnFailed
public boolean isOnFailed()
If the vote should be skipped (not counted) forResult.FAILURE
builds.- Returns:
- true if it should be skipped.
-
setOnFailed
public void setOnFailed(boolean onFailed)
If the vote should be skipped (not counted) forResult.FAILURE
builds.- Parameters:
onFailed
- true if it should be skipped.
-
isOnUnstable
public boolean isOnUnstable()
If the vote should be skipped (not counted) forResult.UNSTABLE
builds.- Returns:
- true if it should be skipped.
-
setOnUnstable
public void setOnUnstable(boolean onUnstable)
If the vote should be skipped (not counted) forResult.UNSTABLE
builds.- Parameters:
onUnstable
- true if it should be skipped.
-
isOnNotBuilt
public boolean isOnNotBuilt()
If the vote should be skipped (not counted) forResult.NOT_BUILT
builds.- Returns:
- true if it should be skipped.
-
setOnNotBuilt
public void setOnNotBuilt(boolean onNotBuilt)
If the vote should be skipped (not counted) forResult.NOT_BUILT
builds.- Parameters:
onNotBuilt
- true if it should be skipped.
-
isOnAborted
public boolean isOnAborted()
If the vote should be skipped (not counted) forResult.ABORTED
builds.- Returns:
- true if it should be skipped.
-
setOnAborted
public void setOnAborted(boolean onAborted)
If the vote should be skipped (not counted) forResult.ABORTED
builds.- Parameters:
onAborted
- true if it should be skipped.
-
-