com.atlassian.bamboo.plan.artifact
Interface ArtifactSubscriptionDao

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

public interface ArtifactSubscriptionDao
extends BambooObjectDao<ArtifactSubscription>


Method Summary
 java.util.Collection<? extends ArtifactSubscription> findAll()
          Find all artifact subscriptions
 java.util.List<ArtifactSubscription> findArtifactSubscriptionOfPlan(Plan plan)
          Get list of artifact subscriptions associated with a plan
 int removeArtifactSubscriptionsByPlan(Plan plan)
          Remove all artifact subscriptions associated with a plan.
 
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Method Detail

findAll

@NotNull
java.util.Collection<? extends ArtifactSubscription> findAll()
Find all artifact subscriptions

Returns:
Collection of all artifact subscriptions

findArtifactSubscriptionOfPlan

@NotNull
java.util.List<ArtifactSubscription> findArtifactSubscriptionOfPlan(@NotNull
                                                                            Plan 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

removeArtifactSubscriptionsByPlan

int removeArtifactSubscriptionsByPlan(@NotNull
                                      Plan plan)
Remove all artifact subscriptions associated with a plan.

Parameters:
plan - plan which associated artifact subscriptions should be removed
Returns:
number of removed objects


Copyright © 2011 Atlassian. All Rights Reserved.