Package com.atlassian.bamboo.specs
Interface BambooSpecsManager
- All Known Implementing Classes:
BambooSpecsManagerImpl
public interface BambooSpecsManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
detachPlanFromRss
(long planId) Detach plan from RSS.findBambooSpecsSourceForPlan
(long planId) FindVcsBambooSpecsSource
for a plan.@NotNull List<VcsLocationBambooSpecsState>
findByVcsLocationIdOrderBySpecsExecutionDate
(long repositoryId, @NotNull String branch, int limit) Return latestlimit
entries for given repository and its branch@NotNull Collection<Long>
Returns ids pf RSS-managed deployment projects that have been updated in RSS runs other than the one supplied.findLatestState
(long rootVcsRepositoryId, @NotNull String branch) Find latestVcsLocationBambooSpecsState
for given repository and branch@NotNull Collection<PlanKey>
findPlansInOtherStates
(VcsLocationBambooSpecsState specsState) Returns RSS-managed plans that have been updated in RSS runs other than the one supplied.findSourceById
(long specsStateId) FindVcsBambooSpecsSource
by id.findSpecsBranches
(long rootVcsRepositoryId, @NotNull String searchTerm) Get all branches fromVcsLocationBambooSpecsState
for given repository which match the search term@NotNull List<VcsLocationBambooSpecsState>
Get allVcsLocationBambooSpecsState
that are in unfinished statelong
Cleanup Bamboo Specs states DB records and log files.void
save
(VcsBambooSpecsSource vcsBambooSpecsSource) Save newVcsBambooSpecsSource
entity.void
save
(VcsLocationBambooSpecsState vcsLocationBambooSpecsState) Save newVcsLocationBambooSpecsState
entity.void
updateAfterSpecsImport
(VcsLocationBambooSpecsState vcsLocationBambooSpecsState, VcsLocationBambooSpecsState.SpecsImportState specsImportState, String logFilename) Update givenVcsLocationBambooSpecsState
with specs import results and save it.void
updateBambooSpecsSourceForPlan
(@NotNull Chain plan, @NotNull VcsBambooSpecsSource vcsBambooSpecsSourceId) UpdateVcsBambooSpecsSource
for a plan.
-
Method Details
-
findLatestState
Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, @NotNull @NotNull String branch) Find latestVcsLocationBambooSpecsState
for given repository and branch -
save
Save newVcsLocationBambooSpecsState
entity. -
save
Save newVcsBambooSpecsSource
entity. -
findSourceById
FindVcsBambooSpecsSource
by id. -
findPlansInOtherStates
@NotNull @NotNull Collection<PlanKey> findPlansInOtherStates(VcsLocationBambooSpecsState specsState) Returns RSS-managed plans that have been updated in RSS runs other than the one supplied. -
findDeploymentProjectsInOtherStates
@NotNull @NotNull Collection<Long> findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState) Returns ids pf RSS-managed deployment projects that have been updated in RSS runs other than the one supplied. -
findByVcsLocationIdOrderBySpecsExecutionDate
@NotNull @NotNull List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @NotNull @NotNull String branch, int limit) Return latestlimit
entries for given repository and its branch -
updateAfterSpecsImport
void updateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState, VcsLocationBambooSpecsState.SpecsImportState specsImportState, String logFilename) Update givenVcsLocationBambooSpecsState
with specs import results and save it. -
removeOrphanedSpecStatesNoTx
@Internal long removeOrphanedSpecStatesNoTx()Cleanup Bamboo Specs states DB records and log files. It's not visible at interface to avoid usage by plugin developers.- Returns:
- count of removed entries
-
getUnfinishedSpecsScans
Get allVcsLocationBambooSpecsState
that are in unfinished state -
findSpecsBranches
@NotNull @NotNull List<String> findSpecsBranches(long rootVcsRepositoryId, @NotNull @NotNull String searchTerm) Get all branches fromVcsLocationBambooSpecsState
for given repository which match the search term -
findBambooSpecsSourceForPlan
FindVcsBambooSpecsSource
for a plan.- Since:
- 8.1
-
updateBambooSpecsSourceForPlan
void updateBambooSpecsSourceForPlan(@NotNull @NotNull Chain plan, @NotNull @NotNull VcsBambooSpecsSource vcsBambooSpecsSourceId) UpdateVcsBambooSpecsSource
for a plan.- Since:
- 8.1
-
detachPlanFromRss
void detachPlanFromRss(long planId) Detach plan from RSS.- Since:
- 8.1
-