Package com.atlassian.bamboo.specs
Interface BambooSpecsStateDao
- 
- All Known Implementing Classes:
 BambooSpecsStateDaoImpl
public interface BambooSpecsStateDao 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcountPlansLinkedToState(VcsLocationBambooSpecsState specsState)longcountStatesByRepositoryId(long repositoryId)voiddelete(VcsLocationBambooSpecsState specsState)Optional<VcsLocationBambooSpecsState>findById(long specsStateId)@NotNull List<VcsLocationBambooSpecsState>findByVcsLocation(long repositoryId, @NotNull String branch)Get all specs state for given repository and its branch@NotNull List<VcsLocationBambooSpecsState>findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @NotNull String branch, int limit)Get latestlimitspecs state for given repository and its branch@Nullable Optional<VcsLocationBambooSpecsState>findLatestState(long rootVcsRepositoryId, String branch)@NotNull Collection<PlanKey>findPlansInOtherStates(@NotNull VcsLocationBambooSpecsState specsState)@NotNull List<String>findSpecsBranches(long rootVcsRepositoryId)Get all branches fromVcsLocationBambooSpecsStatefor given repository@NotNull List<String>findSpecsBranches(long rootVcsRepositoryId, @NotNull String searchTerm)Get all branches fromVcsLocationBambooSpecsStatefor given repository that match the search term@NotNull List<VcsLocationBambooSpecsState>getUnfinishedSpecsScans()booleanotherSuccessfullySpecsImportExistsForRevision(long rootVcsRepositoryId, @NotNull String revision, long specsStateId)Check if for given repository and revision specs import has ended successfully for other Specs state than one with specsStateIdvoidsaveOrUpdate(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)voidscrollVcsLocationBambooSpecsStateForExport(Consumer<VcsLocationBambooSpecsState> consumer) 
 - 
 
- 
- 
Method Detail
- 
findById
Optional<VcsLocationBambooSpecsState> findById(long specsStateId)
 
- 
findLatestState
@Nullable @Nullable Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, String branch)
 
- 
saveOrUpdate
void saveOrUpdate(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
 
- 
findPlansInOtherStates
@NotNull @NotNull Collection<PlanKey> findPlansInOtherStates(@NotNull @NotNull VcsLocationBambooSpecsState specsState)
 
- 
scrollVcsLocationBambooSpecsStateForExport
void scrollVcsLocationBambooSpecsStateForExport(Consumer<VcsLocationBambooSpecsState> consumer)
 
- 
findByVcsLocation
@NotNull @NotNull List<VcsLocationBambooSpecsState> findByVcsLocation(long repositoryId, @NotNull @NotNull String branch)
Get all specs state for given repository and its branch- Parameters:
 repositoryId- id of the repositorybranch- branch of the repository
 
- 
findByVcsLocationIdOrderBySpecsExecutionDate
@NotNull @NotNull List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @NotNull @NotNull String branch, int limit)
Get latestlimitspecs state for given repository and its branch- Parameters:
 repositoryId- id of the repositorybranch- branch of the repositorylimit- search limit
 
- 
delete
void delete(VcsLocationBambooSpecsState specsState)
 
- 
countStatesByRepositoryId
long countStatesByRepositoryId(long repositoryId)
 
- 
countPlansLinkedToState
long countPlansLinkedToState(VcsLocationBambooSpecsState specsState)
 
- 
getUnfinishedSpecsScans
@NotNull @NotNull List<VcsLocationBambooSpecsState> getUnfinishedSpecsScans()
 
- 
findSpecsBranches
@NotNull @NotNull List<String> findSpecsBranches(long rootVcsRepositoryId)
Get all branches fromVcsLocationBambooSpecsStatefor given repository 
- 
findSpecsBranches
@NotNull @NotNull List<String> findSpecsBranches(long rootVcsRepositoryId, @NotNull @NotNull String searchTerm)
Get all branches fromVcsLocationBambooSpecsStatefor given repository that match the search term 
- 
otherSuccessfullySpecsImportExistsForRevision
boolean otherSuccessfullySpecsImportExistsForRevision(long rootVcsRepositoryId, @NotNull @NotNull String revision, long specsStateId)Check if for given repository and revision specs import has ended successfully for other Specs state than one with specsStateId- Parameters:
 rootVcsRepositoryId-revision-specsStateId- current specsStateId- Returns:
 
 
 - 
 
 -