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 theArtifactLink
s for the givenPlanResultKey
@NotNull Collection<ArtifactLink>
getArtifactLinks
(@NotNull ResultsSummary resultsSummary, @Nullable String linkType) void
removeAll
(@NotNull Collection<ArtifactLink> artifactLinkCollection) Removes all ArtifactLink objects from the collection.void
removeById
(long artifactLinkId) Remove artifact link by its id.long
scrollArtifactLinksForExport
(@NotNull Consumer<ArtifactLink> consumer) Scroll through all ArtifactLink records and pass them to consumerMethods inherited from interface com.atlassian.bamboo.persistence.BambooObjectDao
findById
Methods 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 theArtifactLink
s for the givenPlanResultKey
- Parameters:
chainResultKey
-
-
scrollArtifactLinksForExport
Scroll through all ArtifactLink records and pass them to consumer
-