Package com.atlassian.bamboo.specs
Class BambooSpecsManagerImpl
java.lang.Object
com.atlassian.bamboo.specs.BambooSpecsManagerImpl
- All Implemented Interfaces:
BambooSpecsManager
-
Constructor Summary
Constructors -
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 vcsBambooSpecsSource) UpdateVcsBambooSpecsSourcefor a plan.
-
Constructor Details
-
BambooSpecsManagerImpl
public BambooSpecsManagerImpl()
-
-
Method Details
-
findLatestState
public Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, @NotNull @NotNull String branch) Description copied from interface:BambooSpecsManagerFind latestVcsLocationBambooSpecsStatefor given repository and branch- Specified by:
findLatestStatein interfaceBambooSpecsManager
-
save
Description copied from interface:BambooSpecsManagerSave newVcsLocationBambooSpecsStateentity.- Specified by:
savein interfaceBambooSpecsManager
-
save
Description copied from interface:BambooSpecsManagerSave newVcsBambooSpecsSourceentity.- Specified by:
savein interfaceBambooSpecsManager
-
findSourceById
Description copied from interface:BambooSpecsManagerFindVcsBambooSpecsSourceby id.- Specified by:
findSourceByIdin interfaceBambooSpecsManager
-
findPlansInOtherStates
@NotNull public @NotNull Collection<PlanKey> findPlansInOtherStates(VcsLocationBambooSpecsState specsState) Description copied from interface:BambooSpecsManagerReturns RSS-managed plans that have been updated in RSS runs other than the one supplied.- Specified by:
findPlansInOtherStatesin interfaceBambooSpecsManager
-
findDeploymentProjectsInOtherStates
@NotNull public @NotNull Collection<Long> findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState) Description copied from interface:BambooSpecsManagerReturns ids pf RSS-managed deployment projects that have been updated in RSS runs other than the one supplied.- Specified by:
findDeploymentProjectsInOtherStatesin interfaceBambooSpecsManager
-
findByVcsLocationIdOrderBySpecsExecutionDate
@NotNull public @NotNull List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @NotNull @NotNull String branch, int limit) Description copied from interface:BambooSpecsManagerReturn latestlimitentries for given repository and its branch- Specified by:
findByVcsLocationIdOrderBySpecsExecutionDatein interfaceBambooSpecsManager
-
updateAfterSpecsImport
public void updateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState, VcsLocationBambooSpecsState.SpecsImportState specsImportState, String logFilename) Description copied from interface:BambooSpecsManagerUpdate givenVcsLocationBambooSpecsStatewith specs import results and save it.- Specified by:
updateAfterSpecsImportin interfaceBambooSpecsManager
-
getUnfinishedSpecsScans
Description copied from interface:BambooSpecsManagerGet allVcsLocationBambooSpecsStatethat are in unfinished state- Specified by:
getUnfinishedSpecsScansin interfaceBambooSpecsManager
-
findSpecsBranches
@NotNull public @NotNull List<String> findSpecsBranches(long rootVcsRepositoryId, @NotNull @NotNull String searchTerm) Description copied from interface:BambooSpecsManagerGet all branches fromVcsLocationBambooSpecsStatefor given repository which match the search term- Specified by:
findSpecsBranchesin interfaceBambooSpecsManager
-
removeOrphanedSpecStatesNoTx
public long removeOrphanedSpecStatesNoTx()Cleanup Bamboo Specs states DB records and log files. It's not visible at interface to avoid usage by plugin developers.- Specified by:
removeOrphanedSpecStatesNoTxin interfaceBambooSpecsManager- Returns:
- count of removed entries
-
findBambooSpecsSourceForPlan
Description copied from interface:BambooSpecsManagerFindVcsBambooSpecsSourcefor a plan.- Specified by:
findBambooSpecsSourceForPlanin interfaceBambooSpecsManager
-
updateBambooSpecsSourceForPlan
public void updateBambooSpecsSourceForPlan(@NotNull @NotNull Chain plan, @NotNull @NotNull VcsBambooSpecsSource vcsBambooSpecsSource) Description copied from interface:BambooSpecsManagerUpdateVcsBambooSpecsSourcefor a plan.- Specified by:
updateBambooSpecsSourceForPlanin interfaceBambooSpecsManager
-
detachPlanFromRss
public void detachPlanFromRss(long planId) Description copied from interface:BambooSpecsManagerDetach plan from RSS.- Specified by:
detachPlanFromRssin interfaceBambooSpecsManager
-