com.atlassian.bamboo.resultsummary
Class ResultsSummaryCriteria

java.lang.Object
  extended by com.atlassian.bamboo.resultsummary.ResultsSummaryCriteria
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
BuildResultsSummaryCriteria

public class ResultsSummaryCriteria
extends java.lang.Object
implements java.lang.Cloneable

Simple POJO for storing basic build results summary criteria to be used by various searchers Allows narrowing criteria to either chain results or build results. By default searches for both.


Constructor Summary
ResultsSummaryCriteria()
           
ResultsSummaryCriteria(java.lang.Class<? extends ResultsSummary> resultSummaryClass)
           
ResultsSummaryCriteria(java.lang.String buildKey)
           
ResultsSummaryCriteria(java.lang.String planKey, boolean sortAscending)
           
ResultsSummaryCriteria(java.lang.String planKey, BuildState buildState)
           
ResultsSummaryCriteria(java.lang.String buildKey, java.util.Date fromDate, java.util.Date toDate)
           
ResultsSummaryCriteria(java.lang.String buildKey, java.util.Date fromDate, java.util.Date toDate, int fromBuildNumber, int toBuildNumber)
           
ResultsSummaryCriteria(java.lang.String planKey, int numberOfResults)
           
ResultsSummaryCriteria(java.lang.String buildKey, int fromBuildNumber, int toBuildNumber)
           
 
Method Summary
 ResultsSummaryCriteria clone()
           
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Long getAgentId()
           
 java.lang.String getBuildKey()
           
 BuildState getBuildState()
           
 com.atlassian.fage.Option<java.lang.Boolean> getContinuable()
           
 int getFromBuildNumber()
           
 java.util.Date getFromCreationDate()
           
 java.util.Date getFromDate()
           
 java.util.Collection<LifeCycleState> getLifeCycleStates()
           
 java.util.List<java.lang.String> getMatchesCustomDataKeys()
           
 java.util.List<java.lang.String> getMatchesJiraIssues()
           
 java.util.List<Label> getMatchesLabels()
           
 int getMaxRowCount()
           
 java.lang.String getProjectKey()
          Deprecated. since 4.0 use @{link #getProjectKeys}
 java.util.Set<java.lang.String> getProjectKeys()
           
 java.lang.Class<? extends ResultsSummary> getResultSummaryClass()
           
 java.lang.String getSortField()
           
 int getToBuildNumber()
           
 java.util.Date getToCreationDate()
           
 java.util.Date getToDate()
           
 java.lang.Boolean getToDateIsNull()
           
 int hashCode()
           
 boolean isSortAscending()
           
 void setAgentId(java.lang.Long agentId)
           
 void setBuildKey(java.lang.String buildKey)
           
 void setBuildState(BuildState buildState)
           
 void setContinuable(com.atlassian.fage.Option<java.lang.Boolean> continuable)
           
 void setFromBuildNumber(int fromBuildNumber)
           
 void setFromCreationDate(java.util.Date fromCreationDate)
           
 void setFromDate(java.util.Date fromDate)
           
 void setLifeCycleStates(java.util.Set<LifeCycleState> lifeCycleStates)
           
 void setMatchesCustomDataKeys(java.util.List<java.lang.String> matchesCustomDataKeys)
           
 void setMatchesJiraIssues(java.util.List<java.lang.String> matchesJiraIssues)
           
 void setMatchesLabels(java.util.List<Label> matchesLabels)
           
 void setMaxRowCount(int maxRowCount)
           
 ResultsSummaryCriteria setProjectKey(java.lang.String projectKey)
          Deprecated. 
 ResultsSummaryCriteria setProjectKeys(java.lang.Iterable<java.lang.String> projectKeys)
           
 void setResultSummaryClass(java.lang.Class<? extends ResultsSummary> resultSummaryClass)
           
 void setSortAscending(boolean sortAscending)
           
 void setSortField(java.lang.String sortField)
           
 void setToBuildNumber(int toBuildNumber)
           
 void setToCreationDate(java.util.Date toCreationDate)
           
 void setToDate(java.util.Date toDate)
           
 void setToDateIsNull(java.lang.Boolean toDateIsNull)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultsSummaryCriteria

public ResultsSummaryCriteria()

ResultsSummaryCriteria

public ResultsSummaryCriteria(java.lang.Class<? extends ResultsSummary> resultSummaryClass)

ResultsSummaryCriteria

public ResultsSummaryCriteria(java.lang.String buildKey,
                              java.util.Date fromDate,
                              java.util.Date toDate)

ResultsSummaryCriteria

public ResultsSummaryCriteria(java.lang.String buildKey,
                              int fromBuildNumber,
                              int toBuildNumber)

ResultsSummaryCriteria

public ResultsSummaryCriteria(java.lang.String buildKey,
                              java.util.Date fromDate,
                              java.util.Date toDate,
                              int fromBuildNumber,
                              int toBuildNumber)

ResultsSummaryCriteria

public ResultsSummaryCriteria(java.lang.String buildKey)

ResultsSummaryCriteria

public ResultsSummaryCriteria(java.lang.String planKey,
                              boolean sortAscending)

ResultsSummaryCriteria

public ResultsSummaryCriteria(java.lang.String planKey,
                              int numberOfResults)

ResultsSummaryCriteria

public ResultsSummaryCriteria(java.lang.String planKey,
                              BuildState buildState)
Method Detail

getProjectKeys

@Nullable
public java.util.Set<java.lang.String> getProjectKeys()

setProjectKeys

public ResultsSummaryCriteria setProjectKeys(java.lang.Iterable<java.lang.String> projectKeys)

getProjectKey

@Deprecated
@Nullable
public java.lang.String getProjectKey()
Deprecated. since 4.0 use @{link #getProjectKeys}


setProjectKey

@Deprecated
public ResultsSummaryCriteria setProjectKey(java.lang.String projectKey)
Deprecated. 


getBuildState

public BuildState getBuildState()

setBuildState

public void setBuildState(BuildState buildState)

isSortAscending

public boolean isSortAscending()

setBuildKey

public void setBuildKey(java.lang.String buildKey)

setSortAscending

public void setSortAscending(boolean sortAscending)

getFromDate

public java.util.Date getFromDate()

getToDate

public java.util.Date getToDate()

getToDateIsNull

@Nullable
public java.lang.Boolean getToDateIsNull()

getFromCreationDate

public java.util.Date getFromCreationDate()

setFromCreationDate

public void setFromCreationDate(java.util.Date fromCreationDate)

getToCreationDate

public java.util.Date getToCreationDate()

setToCreationDate

public void setToCreationDate(java.util.Date toCreationDate)

getFromBuildNumber

public int getFromBuildNumber()

getToBuildNumber

public int getToBuildNumber()

getBuildKey

public java.lang.String getBuildKey()

getMatchesLabels

public java.util.List<Label> getMatchesLabels()

getMatchesJiraIssues

public java.util.List<java.lang.String> getMatchesJiraIssues()

setMatchesJiraIssues

public void setMatchesJiraIssues(java.util.List<java.lang.String> matchesJiraIssues)

setMatchesLabels

public void setMatchesLabels(java.util.List<Label> matchesLabels)

getMatchesCustomDataKeys

public java.util.List<java.lang.String> getMatchesCustomDataKeys()

setMatchesCustomDataKeys

public void setMatchesCustomDataKeys(java.util.List<java.lang.String> matchesCustomDataKeys)

setFromDate

public void setFromDate(java.util.Date fromDate)

setToDate

public void setToDate(java.util.Date toDate)

setToDateIsNull

public void setToDateIsNull(@Nullable
                            java.lang.Boolean toDateIsNull)

setFromBuildNumber

public void setFromBuildNumber(int fromBuildNumber)

getAgentId

public java.lang.Long getAgentId()

setAgentId

public void setAgentId(java.lang.Long agentId)

getMaxRowCount

public int getMaxRowCount()

setMaxRowCount

public void setMaxRowCount(int maxRowCount)

setToBuildNumber

public void setToBuildNumber(int toBuildNumber)

getSortField

public java.lang.String getSortField()

setSortField

public void setSortField(java.lang.String sortField)

getLifeCycleStates

public java.util.Collection<LifeCycleState> getLifeCycleStates()

setLifeCycleStates

public void setLifeCycleStates(java.util.Set<LifeCycleState> lifeCycleStates)

getContinuable

public com.atlassian.fage.Option<java.lang.Boolean> getContinuable()

setContinuable

public void setContinuable(com.atlassian.fage.Option<java.lang.Boolean> continuable)

getResultSummaryClass

@NotNull
public java.lang.Class<? extends ResultsSummary> getResultSummaryClass()

setResultSummaryClass

public void setResultSummaryClass(@NotNull
                                  java.lang.Class<? extends ResultsSummary> resultSummaryClass)

clone

public ResultsSummaryCriteria clone()
Overrides:
clone in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)


Copyright © 2012 Atlassian. All Rights Reserved.