Package com.atlassian.bamboo.specs
Interface BambooSpecsManager
-
- All Known Implementing Classes:
BambooSpecsManagerImpl
public interface BambooSpecsManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddetachPlanFromRss(long planId)Detach plan from RSS.Optional<VcsBambooSpecsSource>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>findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)Returns ids pf RSS-managed deployment projects that have been updated in RSS runs other than the one supplied.Optional<VcsLocationBambooSpecsState>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.Optional<VcsBambooSpecsSource>findSourceById(long specsStateId)FindVcsBambooSpecsSourceby id.@NotNull List<String>findSpecsBranches(long rootVcsRepositoryId, @NotNull String searchTerm)Get all branches fromVcsLocationBambooSpecsStatefor given repository which match the search term@NotNull List<VcsLocationBambooSpecsState>getUnfinishedSpecsScans()Get allVcsLocationBambooSpecsStatethat are in unfinished statelongremoveOrphanedSpecStatesNoTx()Cleanup 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 Detail
-
findLatestState
Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, @NotNull @NotNull String branch)
Find latestVcsLocationBambooSpecsStatefor given repository and branch
-
save
void save(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
Save newVcsLocationBambooSpecsStateentity.
-
save
void save(VcsBambooSpecsSource vcsBambooSpecsSource)
Save newVcsBambooSpecsSourceentity.
-
findSourceById
Optional<VcsBambooSpecsSource> findSourceById(long specsStateId)
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
@NotNull @NotNull List<VcsLocationBambooSpecsState> 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
Optional<VcsBambooSpecsSource> findBambooSpecsSourceForPlan(long planId)
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
-
-