org.squashtest.csp.tm.internal.repository
Interface CampaignDao

All Superinterfaces:
EntityDao<Campaign>
All Known Implementing Classes:
HibernateCampaignDao

public interface CampaignDao
extends EntityDao<Campaign>


Method Summary
 long countTestPlanById(long campaignId)
           
 List<CampaignLibraryNode> findAllByNameContaining(String tokenInName, boolean groupByProject)
          Finds all CampaignLibraryNode which name contains the given token.
 List<Execution> findAllExecutionsByCampaignId(Long campaignId)
          find all the campaign's iterations, and return all iteration's executions regardless of the campaign test-plan
 List<String> findAllNamesInCampaign(long campaignId)
           
 List<CampaignTestPlanItem> findAllTestPlanByIdFiltered(long campaignId, CollectionSorting filter)
           
 Campaign findByIdWithInitializedIterations(long campaignId)
           
 List<String> findNamesInCampaignStartingWith(long campaignId, String nameStart)
           
 List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
           
 List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
           
 
Methods inherited from interface org.squashtest.csp.tm.internal.repository.EntityDao
findAll, findAllByIds, findById, flush, persist, persist, remove
 

Method Detail

findByIdWithInitializedIterations

Campaign findByIdWithInitializedIterations(long campaignId)

findAllTestPlanByIdFiltered

List<CampaignTestPlanItem> findAllTestPlanByIdFiltered(long campaignId,
                                                       CollectionSorting filter)

countTestPlanById

long countTestPlanById(long campaignId)

findNamesInFolderStartingWith

List<String> findNamesInFolderStartingWith(long folderId,
                                           String nameStart)

findNamesInLibraryStartingWith

List<String> findNamesInLibraryStartingWith(long libraryId,
                                            String nameStart)

findNamesInCampaignStartingWith

List<String> findNamesInCampaignStartingWith(long campaignId,
                                             String nameStart)

findAllNamesInCampaign

List<String> findAllNamesInCampaign(long campaignId)

findAllByNameContaining

List<CampaignLibraryNode> findAllByNameContaining(String tokenInName,
                                                  boolean groupByProject)
Finds all CampaignLibraryNode which name contains the given token.

Parameters:
tokenInName -
groupByProject -
Returns:

findAllExecutionsByCampaignId

List<Execution> findAllExecutionsByCampaignId(Long campaignId)
find all the campaign's iterations, and return all iteration's executions regardless of the campaign test-plan

Parameters:
campaignId -
Returns:
list of executions of all iterations


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.