public class BambooSpecsManagerImpl extends Object implements BambooSpecsManager
Constructor and Description |
---|
BambooSpecsManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
detachPlanFromRss(long planId)
Detach plan from RSS.
|
Optional<VcsBambooSpecsSource> |
findBambooSpecsSourceForPlan(long planId)
Find
VcsBambooSpecsSource for a plan. |
@NotNull List<VcsLocationBambooSpecsState> |
findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId,
@NotNull String branch,
int limit)
Return latest
limit entries 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 latest
VcsLocationBambooSpecsState 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.
|
Optional<VcsBambooSpecsSource> |
findSourceById(long specsStateId)
Find
VcsBambooSpecsSource by id. |
@NotNull List<String> |
findSpecsBranches(long rootVcsRepositoryId,
@NotNull String searchTerm)
Get all branches from
VcsLocationBambooSpecsState for given repository which match the search term |
@NotNull List<VcsLocationBambooSpecsState> |
getUnfinishedSpecsScans()
Get all
VcsLocationBambooSpecsState that are in unfinished state |
long |
removeOrphanedSpecStatesNoTx()
Cleanup Bamboo Specs states DB records and log files.
|
void |
save(VcsBambooSpecsSource vcsBambooSpecsSource)
Save new
VcsBambooSpecsSource entity. |
void |
save(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
Save new
VcsLocationBambooSpecsState entity. |
void |
updateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState,
VcsLocationBambooSpecsState.SpecsImportState specsImportState,
String logFilename)
Update given
VcsLocationBambooSpecsState with specs import results and save it. |
void |
updateBambooSpecsSourceForPlan(@NotNull Chain plan,
@NotNull VcsBambooSpecsSource vcsBambooSpecsSource)
Update
VcsBambooSpecsSource for a plan. |
public Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, @NotNull @NotNull String branch)
BambooSpecsManager
VcsLocationBambooSpecsState
for given repository and branchfindLatestState
in interface BambooSpecsManager
public void save(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
BambooSpecsManager
VcsLocationBambooSpecsState
entity.save
in interface BambooSpecsManager
public void save(VcsBambooSpecsSource vcsBambooSpecsSource)
BambooSpecsManager
VcsBambooSpecsSource
entity.save
in interface BambooSpecsManager
public Optional<VcsBambooSpecsSource> findSourceById(long specsStateId)
BambooSpecsManager
VcsBambooSpecsSource
by id.findSourceById
in interface BambooSpecsManager
@NotNull public @NotNull Collection<PlanKey> findPlansInOtherStates(VcsLocationBambooSpecsState specsState)
BambooSpecsManager
findPlansInOtherStates
in interface BambooSpecsManager
@NotNull public @NotNull Collection<Long> findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
BambooSpecsManager
findDeploymentProjectsInOtherStates
in interface BambooSpecsManager
@NotNull public @NotNull List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @NotNull @NotNull String branch, int limit)
BambooSpecsManager
limit
entries for given repository and its branchfindByVcsLocationIdOrderBySpecsExecutionDate
in interface BambooSpecsManager
public void updateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState, VcsLocationBambooSpecsState.SpecsImportState specsImportState, String logFilename)
BambooSpecsManager
VcsLocationBambooSpecsState
with specs import results and save it.updateAfterSpecsImport
in interface BambooSpecsManager
@NotNull public @NotNull List<VcsLocationBambooSpecsState> getUnfinishedSpecsScans()
BambooSpecsManager
VcsLocationBambooSpecsState
that are in unfinished stategetUnfinishedSpecsScans
in interface BambooSpecsManager
@NotNull public @NotNull List<String> findSpecsBranches(long rootVcsRepositoryId, @NotNull @NotNull String searchTerm)
BambooSpecsManager
VcsLocationBambooSpecsState
for given repository which match the search termfindSpecsBranches
in interface BambooSpecsManager
public long removeOrphanedSpecStatesNoTx()
removeOrphanedSpecStatesNoTx
in interface BambooSpecsManager
public Optional<VcsBambooSpecsSource> findBambooSpecsSourceForPlan(long planId)
BambooSpecsManager
VcsBambooSpecsSource
for a plan.findBambooSpecsSourceForPlan
in interface BambooSpecsManager
public void updateBambooSpecsSourceForPlan(@NotNull @NotNull Chain plan, @NotNull @NotNull VcsBambooSpecsSource vcsBambooSpecsSource)
BambooSpecsManager
VcsBambooSpecsSource
for a plan.updateBambooSpecsSourceForPlan
in interface BambooSpecsManager
public void detachPlanFromRss(long planId)
BambooSpecsManager
detachPlanFromRss
in interface BambooSpecsManager
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.