com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data
Class SkipVote

java.lang.Object
  extended by 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 a GerritTrigger.

Author:
Robert Sandell <robert.sandell@sonymobile.com>
See Also:
Serialized Form

Constructor Summary
SkipVote()
          Default Constructor.
SkipVote(boolean onSuccessful, boolean onFailed, boolean onUnstable, boolean onNotBuilt)
          Standard DataBound Constructor.
 
Method Summary
 boolean isOnFailed()
          If the vote should be skipped (not counted) for Result.FAILURE builds.
 boolean isOnNotBuilt()
          If the vote should be skipped (not counted) for Result.NOT_BUILT builds.
 boolean isOnSuccessful()
          If the vote should be skipped (not counted) for Result.SUCCESS builds.
 boolean isOnUnstable()
          If the vote should be skipped (not counted) for Result.UNSTABLE builds.
 void setOnFailed(boolean onFailed)
          If the vote should be skipped (not counted) for Result.FAILURE builds.
 void setOnNotBuilt(boolean onNotBuilt)
          If the vote should be skipped (not counted) for Result.NOT_BUILT builds.
 void setOnSuccessful(boolean onSuccessful)
          If the vote should be skipped (not counted) for Result.SUCCESS builds.
 void setOnUnstable(boolean onUnstable)
          If the vote should be skipped (not counted) for Result.UNSTABLE builds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkipVote

@DataBoundConstructor
public SkipVote(boolean onSuccessful,
                                     boolean onFailed,
                                     boolean onUnstable,
                                     boolean onNotBuilt)
Standard DataBound Constructor.

Parameters:
onSuccessful - if the vote should be skipped (not counted) for Result.SUCCESS builds.
onFailed - if the vote should be skipped (not counted) for Result.FAILURE builds.
onUnstable - if the vote should be skipped (not counted) for Result.UNSTABLE builds.
onNotBuilt - if the vote should be skipped (not counted) for Result.NOT_BUILT builds.

SkipVote

public SkipVote()
Default Constructor.

Method Detail

isOnSuccessful

public boolean isOnSuccessful()
If the vote should be skipped (not counted) for Result.SUCCESS builds.

Returns:
true if it should be skipped.

setOnSuccessful

public void setOnSuccessful(boolean onSuccessful)
If the vote should be skipped (not counted) for Result.SUCCESS builds.

Parameters:
onSuccessful - true if it should be skipped.

isOnFailed

public boolean isOnFailed()
If the vote should be skipped (not counted) for Result.FAILURE builds.

Returns:
true if it should be skipped.

setOnFailed

public void setOnFailed(boolean onFailed)
If the vote should be skipped (not counted) for Result.FAILURE builds.

Parameters:
onFailed - true if it should be skipped.

isOnUnstable

public boolean isOnUnstable()
If the vote should be skipped (not counted) for Result.UNSTABLE builds.

Returns:
true if it should be skipped.

setOnUnstable

public void setOnUnstable(boolean onUnstable)
If the vote should be skipped (not counted) for Result.UNSTABLE builds.

Parameters:
onUnstable - true if it should be skipped.

isOnNotBuilt

public boolean isOnNotBuilt()
If the vote should be skipped (not counted) for Result.NOT_BUILT builds.

Returns:
true if it should be skipped.

setOnNotBuilt

public void setOnNotBuilt(boolean onNotBuilt)
If the vote should be skipped (not counted) for Result.NOT_BUILT builds.

Parameters:
onNotBuilt - true if it should be skipped.


Copyright © 2004-2013. All Rights Reserved.