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) |
@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 latest
limit specs 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 from
VcsLocationBambooSpecsState for given repository |
@NotNull List<String> |
findSpecsBranches(long rootVcsRepositoryId,
@NotNull String searchTerm)
Get all branches from
VcsLocationBambooSpecsState for given repository that match the search term |
@NotNull List<VcsLocationBambooSpecsState> |
getUnfinishedSpecsScans() |
boolean |
otherSuccessfullySpecsImportExistsForRevision(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 specsStateId
|
void |
saveOrUpdate(VcsLocationBambooSpecsState vcsLocationBambooSpecsState) |
void |
scrollVcsLocationBambooSpecsStateForExport(Consumer<VcsLocationBambooSpecsState> consumer) |
Optional<VcsLocationBambooSpecsState> findById(long specsStateId)
@Nullable @Nullable Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, String branch)
void saveOrUpdate(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
@NotNull @NotNull Collection<PlanKey> findPlansInOtherStates(@NotNull @NotNull VcsLocationBambooSpecsState specsState)
void scrollVcsLocationBambooSpecsStateForExport(Consumer<VcsLocationBambooSpecsState> consumer)
@NotNull @NotNull List<VcsLocationBambooSpecsState> findByVcsLocation(long repositoryId, @NotNull @NotNull String branch)
repositoryId
- id of the repositorybranch
- branch of the repository@NotNull @NotNull List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @NotNull @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 @NotNull List<VcsLocationBambooSpecsState> getUnfinishedSpecsScans()
@NotNull @NotNull List<String> findSpecsBranches(long rootVcsRepositoryId)
VcsLocationBambooSpecsState
for given repository@NotNull @NotNull List<String> findSpecsBranches(long rootVcsRepositoryId, @NotNull @NotNull String searchTerm)
VcsLocationBambooSpecsState
for given repository that match the search termboolean otherSuccessfullySpecsImportExistsForRevision(long rootVcsRepositoryId, @NotNull @NotNull String revision, long specsStateId)
rootVcsRepositoryId
- revision
- specsStateId
- current specsStateIdCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.