Interface ArtifactLinkDao
- All Superinterfaces:
BambooObjectDao,bucket.core.persistence.ObjectDao
- All Known Implementing Classes:
ArtifactLinkHibernateDao
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<ArtifactLink> findArtifactLinks(@NotNull String label, @NotNull ResultsSummary resultsSummary) @NotNull Collection<ArtifactLink> findArtifactsByChainResultKey(@NotNull PlanResultKey chainResultKey) Gets all theArtifactLinks for the givenPlanResultKey@NotNull Collection<ArtifactLink> getArtifactLinks(@NotNull ResultsSummary resultsSummary, @Nullable String linkType) voidremoveAll(@NotNull Collection<ArtifactLink> artifactLinkCollection) Removes all ArtifactLink objects from the collection.voidremoveById(long artifactLinkId) Remove artifact link by its id.longscrollArtifactLinksForExport(@NotNull Consumer<ArtifactLink> consumer) Scroll through all ArtifactLink records and pass them to consumerMethods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findByIdMethods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
-
Method Details
-
removeAll
Removes all ArtifactLink objects from the collection.- Parameters:
artifactLinkCollection- ArtifactLink objects to be removed.
-
removeById
void removeById(long artifactLinkId) Remove artifact link by its id.- Parameters:
artifactLinkId-- Since:
- 9.3
-
findArtifactLinks
@NotNull @NotNull Collection<ArtifactLink> findArtifactLinks(@NotNull @NotNull String label, @NotNull @NotNull ResultsSummary resultsSummary) -
getArtifactLinks
@NotNull @NotNull Collection<ArtifactLink> getArtifactLinks(@NotNull @NotNull ResultsSummary resultsSummary, @Nullable @Nullable String linkType) - Parameters:
resultsSummary-linkType-- Returns:
- artifactLinks
-
findArtifactsByChainResultKey
@NotNull @NotNull Collection<ArtifactLink> findArtifactsByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey) Gets all theArtifactLinks for the givenPlanResultKey- Parameters:
chainResultKey-
-
scrollArtifactLinksForExport
Scroll through all ArtifactLink records and pass them to consumer
-