|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.chains.ChainResultManagerImpl
public class ChainResultManagerImpl
Constructor Summary | |
---|---|
ChainResultManagerImpl(ChainResultDao chainResultDao)
|
Method Summary | |
---|---|
ChainResult |
create(Chain chain,
int chainNumber)
Create a new result |
java.util.Collection<ChainResult> |
getAllPendingChainResults()
Returns all the ChainResult s in a BuildState.PENDING state |
ChainResult |
getChainResult(Chain chain,
int chainNumber)
Retreive result by id |
ChainResult |
getChainResult(PlanResultKey planResultKey)
Get the result by its PlanResultKey |
int |
getChainResultsCount(Chain chain)
Count number of chain results |
ChainStageResult |
getChainStageResultById(java.lang.Long id)
Returns a ChainStageResult by its id |
java.util.List<ChainResult> |
getNChainResults(Chain chain,
int firstResult,
int maxResults)
Retrieve list of results related to chain, list is ordered descending by chain number |
boolean |
hasResults(Chain chain)
Test if chain has any results |
void |
save(ChainResult chainResult)
Save Result |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainResultManagerImpl(@NotNull ChainResultDao chainResultDao)
Method Detail |
---|
@Nullable public ChainResult getChainResult(@NotNull Chain chain, int chainNumber)
ChainResultManager
getChainResult
in interface ChainResultManager
chain
- Chain of which chainNumber result has to be retrievedchainNumber
- ChainNumber of ChainResult to be retrieved
public ChainResult getChainResult(@NotNull PlanResultKey planResultKey)
ChainResultManager
PlanResultKey
getChainResult
in interface ChainResultManager
@NotNull public java.util.List<ChainResult> getNChainResults(@NotNull Chain chain, int firstResult, int maxResults)
ChainResultManager
getNChainResults
in interface ChainResultManager
chain
- Chain of which chainNumber result has to be retrievedfirstResult
- number of results to skipmaxResults
- number of results to retrieve
public int getChainResultsCount(@NotNull Chain chain)
ChainResultManager
getChainResultsCount
in interface ChainResultManager
chain
- Chain of which results has to be counted
public void save(@NotNull ChainResult chainResult)
ChainResultManager
save
in interface ChainResultManager
chainResult
- ChainResult to be saved@NotNull public ChainResult create(@NotNull Chain chain, int chainNumber)
ChainResultManager
create
in interface ChainResultManager
chain
- Chain which result has to be created
public boolean hasResults(@NotNull Chain chain)
ChainResultManager
hasResults
in interface ChainResultManager
chain
- Chain which has to be tested
@NotNull public java.util.Collection<ChainResult> getAllPendingChainResults()
ChainResultManager
ChainResult
s in a BuildState.PENDING
state
getAllPendingChainResults
in interface ChainResultManager
@Nullable public ChainStageResult getChainStageResultById(@NotNull java.lang.Long id)
ChainResultManager
ChainStageResult
by its id
getChainStageResultById
in interface ChainResultManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |