public interface BambooSpecsStateDao
Modifier and Type | Method and Description |
---|---|
long |
countPlansLinkedToState(VcsLocationBambooSpecsState specsState) |
long |
countStatesByRepositoryId(long repositoryId) |
void |
delete(VcsLocationBambooSpecsState specsState) |
Optional<VcsLocationBambooSpecsState> |
findById(long specsStateId) |
List<VcsLocationBambooSpecsState> |
findByVcsLocation(long repositoryId,
String branch)
Get all specs state for given repository and its branch
|
List<VcsLocationBambooSpecsState> |
findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId,
String branch,
int limit)
Get latest
limit specs state for given repository and its branch |
Optional<VcsLocationBambooSpecsState> |
findLatestState(long rootVcsRepositoryId,
String branch) |
Collection<PlanKey> |
findPlansInOtherStates(VcsLocationBambooSpecsState specsState) |
List<String> |
findSpecsBranches(long rootVcsRepositoryId)
Get all branches from
VcsLocationBambooSpecsState for given repository |
List<String> |
findSpecsBranches(long rootVcsRepositoryId,
String searchTerm)
Get all branches from
VcsLocationBambooSpecsState for given repository that match the search term |
List<VcsLocationBambooSpecsState> |
getUnfinishedSpecsScans() |
boolean |
otherSuccessfullySpecsImportExistsForRevision(long rootVcsRepositoryId,
String revision,
long specsStateId)
Check if for given repository and revision specs import has ended successfully for other Specs state than one with specsStateId
|
void |
saveOrUpdate(VcsLocationBambooSpecsState vcsLocationBambooSpecsState) |
void |
scrollVcsLocationBambooSpecsStateForExport(Consumer<VcsLocationBambooSpecsState> consumer) |
Optional<VcsLocationBambooSpecsState> findById(long specsStateId)
@Nullable Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, String branch)
void saveOrUpdate(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
@NotNull Collection<PlanKey> findPlansInOtherStates(@NotNull VcsLocationBambooSpecsState specsState)
void scrollVcsLocationBambooSpecsStateForExport(Consumer<VcsLocationBambooSpecsState> consumer)
@NotNull List<VcsLocationBambooSpecsState> findByVcsLocation(long repositoryId, @NotNull String branch)
repositoryId
- id of the repositorybranch
- branch of the repository@NotNull List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @NotNull String branch, int limit)
limit
specs state for given repository and its branchrepositoryId
- id of the repositorybranch
- branch of the repositorylimit
- search limitvoid delete(VcsLocationBambooSpecsState specsState)
long countStatesByRepositoryId(long repositoryId)
long countPlansLinkedToState(VcsLocationBambooSpecsState specsState)
@NotNull List<VcsLocationBambooSpecsState> getUnfinishedSpecsScans()
@NotNull List<String> findSpecsBranches(long rootVcsRepositoryId)
VcsLocationBambooSpecsState
for given repository@NotNull List<String> findSpecsBranches(long rootVcsRepositoryId, @NotNull String searchTerm)
VcsLocationBambooSpecsState
for given repository that match the search termboolean otherSuccessfullySpecsImportExistsForRevision(long rootVcsRepositoryId, @NotNull String revision, long specsStateId)
rootVcsRepositoryId
- revision
- specsStateId
- current specsStateIdCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.