Package com.atlassian.bamboo.specs
Class BambooSpecsStateDaoImpl
java.lang.Object
com.atlassian.bamboo.specs.BambooSpecsStateDaoImpl
- All Implemented Interfaces:
BambooSpecsStateDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountPlansLinkedToState(VcsLocationBambooSpecsState specsState) longcountStatesByRepositoryId(long repositoryId) voiddelete(VcsLocationBambooSpecsState specsState) 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 branchfindLatestState(long rootVcsRepositoryId, String branch) @NotNull Collection<PlanKey> findPlansInOtherStates(@NotNull VcsLocationBambooSpecsState specsState) findSpecsBranches(long rootVcsRepositoryId) Get all branches fromVcsLocationBambooSpecsStatefor given repositoryfindSpecsBranches(long rootVcsRepositoryId, @NotNull String searchTerm) Get all branches fromVcsLocationBambooSpecsStatefor given repository that match the search term@NotNull List<VcsLocationBambooSpecsState> 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(@NotNull Consumer<VcsLocationBambooSpecsState> consumer)
-
Constructor Details
-
BambooSpecsStateDaoImpl
public BambooSpecsStateDaoImpl()
-
-
Method Details
-
findById
- Specified by:
findByIdin interfaceBambooSpecsStateDao
-
findLatestState
public Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, String branch) - Specified by:
findLatestStatein interfaceBambooSpecsStateDao
-
saveOrUpdate
- Specified by:
saveOrUpdatein interfaceBambooSpecsStateDao
-
findPlansInOtherStates
@NotNull public @NotNull Collection<PlanKey> findPlansInOtherStates(@NotNull @NotNull VcsLocationBambooSpecsState specsState) - Specified by:
findPlansInOtherStatesin interfaceBambooSpecsStateDao
-
countPlansLinkedToState
- Specified by:
countPlansLinkedToStatein interfaceBambooSpecsStateDao
-
scrollVcsLocationBambooSpecsStateForExport
public void scrollVcsLocationBambooSpecsStateForExport(@NotNull @NotNull Consumer<VcsLocationBambooSpecsState> consumer) - Specified by:
scrollVcsLocationBambooSpecsStateForExportin interfaceBambooSpecsStateDao
-
findByVcsLocation
@NotNull public @NotNull List<VcsLocationBambooSpecsState> findByVcsLocation(long repositoryId, @NotNull @NotNull String branch) Description copied from interface:BambooSpecsStateDaoGet all specs state for given repository and its branch- Specified by:
findByVcsLocationin interfaceBambooSpecsStateDao- Parameters:
repositoryId- id of the repositorybranch- branch of the repository
-
findByVcsLocationIdOrderBySpecsExecutionDate
@NotNull public @NotNull List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @NotNull @NotNull String branch, int limit) Description copied from interface:BambooSpecsStateDaoGet latestlimitspecs state for given repository and its branch- Specified by:
findByVcsLocationIdOrderBySpecsExecutionDatein interfaceBambooSpecsStateDao- Parameters:
repositoryId- id of the repositorybranch- branch of the repositorylimit- search limit
-
delete
- Specified by:
deletein interfaceBambooSpecsStateDao
-
countStatesByRepositoryId
public long countStatesByRepositoryId(long repositoryId) - Specified by:
countStatesByRepositoryIdin interfaceBambooSpecsStateDao
-
getUnfinishedSpecsScans
- Specified by:
getUnfinishedSpecsScansin interfaceBambooSpecsStateDao
-
findSpecsBranches
Description copied from interface:BambooSpecsStateDaoGet all branches fromVcsLocationBambooSpecsStatefor given repository- Specified by:
findSpecsBranchesin interfaceBambooSpecsStateDao
-
findSpecsBranches
@NotNull public @NotNull List<String> findSpecsBranches(long rootVcsRepositoryId, @NotNull @NotNull String searchTerm) Description copied from interface:BambooSpecsStateDaoGet all branches fromVcsLocationBambooSpecsStatefor given repository that match the search term- Specified by:
findSpecsBranchesin interfaceBambooSpecsStateDao
-
otherSuccessfullySpecsImportExistsForRevision
public boolean otherSuccessfullySpecsImportExistsForRevision(long rootVcsRepositoryId, @NotNull @NotNull String revision, long specsStateId) Description copied from interface:BambooSpecsStateDaoCheck if for given repository and revision specs import has ended successfully for other Specs state than one with specsStateId- Specified by:
otherSuccessfullySpecsImportExistsForRevisionin interfaceBambooSpecsStateDao- Parameters:
rootVcsRepositoryId-revision-specsStateId- current specsStateId- Returns:
-