public class BambooSpecsManagerImpl extends Object implements BambooSpecsManager
Constructor and Description |
---|
BambooSpecsManagerImpl() |
Modifier and Type | Method and Description |
---|---|
List<VcsLocationBambooSpecsState> |
findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId,
String branch,
int limit)
Return latest
limit entries for given repository and its branch |
Collection<Long> |
findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
Returns ids pf RSS-managed deployment projects that have been updated in RSS runs other then the one supplied.
|
Optional<VcsLocationBambooSpecsState> |
findLatestState(long rootVcsRepositoryId,
String branch)
Find latest
VcsLocationBambooSpecsState for given repository and branch |
Collection<PlanKey> |
findPlansInOtherStates(VcsLocationBambooSpecsState specsState)
Returns RSS-managed plans that have been updated in RSS runs other then the one supplied.
|
Optional<VcsBambooSpecsSource> |
findSourceById(long specsStateId)
Find
VcsBambooSpecsSource by id. |
List<String> |
findSpecsBranches(long rootVcsRepositoryId,
String searchTerm)
Get all branches from
VcsLocationBambooSpecsState for given repository which match the search term |
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. |
public Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, @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 Collection<PlanKey> findPlansInOtherStates(VcsLocationBambooSpecsState specsState)
BambooSpecsManager
findPlansInOtherStates
in interface BambooSpecsManager
@NotNull public Collection<Long> findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
BambooSpecsManager
findDeploymentProjectsInOtherStates
in interface BambooSpecsManager
@NotNull public List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, @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 List<VcsLocationBambooSpecsState> getUnfinishedSpecsScans()
BambooSpecsManager
VcsLocationBambooSpecsState
that are in unfinished stategetUnfinishedSpecsScans
in interface BambooSpecsManager
@NotNull public List<String> findSpecsBranches(long rootVcsRepositoryId, @NotNull String searchTerm)
BambooSpecsManager
VcsLocationBambooSpecsState
for given repository which match the search termfindSpecsBranches
in interface BambooSpecsManager
public long removeOrphanedSpecStatesNoTx()
removeOrphanedSpecStatesNoTx
in interface BambooSpecsManager
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.