Package com.atlassian.bamboo.specs
Interface BambooSpecsManager
- All Known Implementing Classes:
BambooSpecsManagerImpl
public interface BambooSpecsManager
-
Method Summary
Modifier and TypeMethodDescriptionvoiddetachPlanFromRss(long planId) Detach plan from RSS.findBambooSpecsSourceForPlan(long planId) FindVcsBambooSpecsSourcefor a plan.@NotNull List<VcsLocationBambooSpecsState>findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @NotNull String branch, int limit) Return latestlimitentries 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 latestVcsLocationBambooSpecsStatefor 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) FindVcsBambooSpecsSourceby id.findSpecsBranches(long rootVcsRepositoryId, @NotNull String searchTerm) Get all branches fromVcsLocationBambooSpecsStatefor given repository which match the search term@NotNull List<VcsLocationBambooSpecsState>Get allVcsLocationBambooSpecsStatethat are in unfinished statelongCleanup Bamboo Specs states DB records and log files.voidsave(VcsBambooSpecsSource vcsBambooSpecsSource) Save newVcsBambooSpecsSourceentity.voidsave(VcsLocationBambooSpecsState vcsLocationBambooSpecsState) Save newVcsLocationBambooSpecsStateentity.voidupdateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState, VcsLocationBambooSpecsState.SpecsImportState specsImportState, String logFilename) Update givenVcsLocationBambooSpecsStatewith specs import results and save it.voidupdateBambooSpecsSourceForPlan(@NotNull Chain plan, @NotNull VcsBambooSpecsSource vcsBambooSpecsSourceId) UpdateVcsBambooSpecsSourcefor a plan.
-
Method Details
-
findLatestState
Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, @NotNull @NotNull String branch) Find latestVcsLocationBambooSpecsStatefor given repository and branch -
save
Save newVcsLocationBambooSpecsStateentity. -
save
Save newVcsBambooSpecsSourceentity. -
findSourceById
FindVcsBambooSpecsSourceby 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 latestlimitentries for given repository and its branch -
updateAfterSpecsImport
void updateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState, VcsLocationBambooSpecsState.SpecsImportState specsImportState, String logFilename) Update givenVcsLocationBambooSpecsStatewith 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 allVcsLocationBambooSpecsStatethat are in unfinished state -
findSpecsBranches
@NotNull @NotNull List<String> findSpecsBranches(long rootVcsRepositoryId, @NotNull @NotNull String searchTerm) Get all branches fromVcsLocationBambooSpecsStatefor given repository which match the search term -
findBambooSpecsSourceForPlan
FindVcsBambooSpecsSourcefor a plan.- Since:
- 8.1
-
updateBambooSpecsSourceForPlan
void updateBambooSpecsSourceForPlan(@NotNull @NotNull Chain plan, @NotNull @NotNull VcsBambooSpecsSource vcsBambooSpecsSourceId) UpdateVcsBambooSpecsSourcefor a plan.- Since:
- 8.1
-
detachPlanFromRss
void detachPlanFromRss(long planId) Detach plan from RSS.- Since:
- 8.1
-