Interface ArtifactSubscriptionDao

All Superinterfaces:
BambooObjectDao<ArtifactSubscription>
All Known Implementing Classes:
ArtifactSubscriptionHibernateDao

public interface ArtifactSubscriptionDao extends BambooObjectDao<ArtifactSubscription>
  • Method Details

    • 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 of ArtifactSubscription 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