Interface ArtifactSubscriptionDao
-
- All Superinterfaces:
BambooObjectDao<ArtifactSubscription>
- All Known Implementing Classes:
ArtifactSubscriptionHibernateDao
public interface ArtifactSubscriptionDao extends BambooObjectDao<ArtifactSubscription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
countSubscriptionsOfArtifact(long artifactDefinitionId)
@NotNull Collection<? extends ArtifactSubscription>
findAll()
Find all artifact subscriptions@NotNull List<ArtifactSubscription>
findArtifactSubscriptionOfPlan(@NotNull PlanIdentifier plan)
Get list of artifact subscriptions associated with a planvoid
removeArtifactSubscriptions(@NotNull Collection<ArtifactSubscription> artifactSubscriptions)
Remove all artifact subscriptions in the collection.void
removeArtifactSubscriptionsOfPlan(@NotNull PlanIdentifier planIdentifier)
Remove all artifact subscriptions for a plan-
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
-
-
-
Method Detail
-
findAll
@NotNull @NotNull Collection<? extends ArtifactSubscription> findAll()
Find all artifact subscriptions- Returns:
- Collection of all artifact subscriptions
-
findArtifactSubscriptionOfPlan
@NotNull @NotNull List<ArtifactSubscription> findArtifactSubscriptionOfPlan(@NotNull @NotNull PlanIdentifier plan)
Get list of artifact subscriptions associated with a plan- Parameters:
plan
- plan which associated artifact definitions should be retrieved- Returns:
- list of artifact subscriptions
-
removeArtifactSubscriptions
void removeArtifactSubscriptions(@NotNull @NotNull Collection<ArtifactSubscription> artifactSubscriptions)
Remove all artifact subscriptions in the collection.- Parameters:
artifactSubscriptions
- collection ofArtifactSubscription
to be removed
-
removeArtifactSubscriptionsOfPlan
void removeArtifactSubscriptionsOfPlan(@NotNull @NotNull PlanIdentifier planIdentifier)
Remove all artifact subscriptions for a plan
-
countSubscriptionsOfArtifact
long countSubscriptionsOfArtifact(long artifactDefinitionId)
- Returns:
- amount of subscriptions existing for an artifact
- Since:
- 7.1
-
-