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

All Superinterfaces:
EntityDao<org.squashtest.tm.domain.campaign.Campaign>, GenericDao<org.squashtest.tm.domain.campaign.Campaign>
All Known Implementing Classes:
HibernateCampaignDao

public interface CampaignDao
extends EntityDao<org.squashtest.tm.domain.campaign.Campaign>


Method Summary
 long countFilteredTestPlanById(long campaignId, org.squashtest.tm.core.foundation.collection.ColumnFiltering filtering)
           
 long countRunningOrDoneExecutions(long campaignId)
           
 long countTestPlanById(long campaignId)
           
 List<org.squashtest.tm.domain.campaign.CampaignLibraryNode> findAllByNameContaining(String tokenInName, boolean groupByProject)
          Finds all CampaignLibraryNode which name contains the given token.
 List<org.squashtest.tm.domain.execution.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<org.squashtest.tm.domain.campaign.CampaignTestPlanItem> findAllTestPlanByIdFiltered(long campaignId, org.squashtest.tm.core.foundation.collection.PagingAndSorting filter)
           
 org.squashtest.tm.domain.campaign.Campaign findByIdWithInitializedIterations(long campaignId)
           
 org.squashtest.tm.domain.campaign.TestPlanStatistics findCampaignStatistics(long campaignId)
           
 List<IndexedCampaignTestPlanItem> findFilteredIndexedTestPlan(long campaignId, org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting, org.squashtest.tm.core.foundation.collection.ColumnFiltering filtering)
           
 List<IndexedCampaignTestPlanItem> findIndexedTestPlan(long campaignId, org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting)
          Returns the paged list of [index, CampaignTestPlanItem] wrapped in an IndexedIterationTestPlanItem
 List<IndexedCampaignTestPlanItem> findIndexedTestPlan(long campaignId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting)
          Returns the paged list of [index, CampaignTestPlanItem] wrapped in an IndexedIterationTestPlanItem
 List<String> findNamesInCampaignStartingWith(long campaignId, String nameStart)
           
 List<String> findNamesInFolderStartingWith(long folderId, String nameStart)
           
 List<String> findNamesInLibraryStartingWith(long libraryId, String nameStart)
           
 List<org.squashtest.tm.domain.campaign.CampaignTestPlanItem> findTestPlan(long campaignId, org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting)
           
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.EntityDao
findAll, findAllByIds, findById
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.GenericDao
clearFromCache, clearFromCache, flush, persist, persist, remove, removeAll
 

Method Detail

findByIdWithInitializedIterations

org.squashtest.tm.domain.campaign.Campaign findByIdWithInitializedIterations(long campaignId)

findAllTestPlanByIdFiltered

List<org.squashtest.tm.domain.campaign.CampaignTestPlanItem> findAllTestPlanByIdFiltered(long campaignId,
                                                                                         org.squashtest.tm.core.foundation.collection.PagingAndSorting filter)

findTestPlan

List<org.squashtest.tm.domain.campaign.CampaignTestPlanItem> findTestPlan(long campaignId,
                                                                          org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting)

findIndexedTestPlan

List<IndexedCampaignTestPlanItem> findIndexedTestPlan(long campaignId,
                                                      org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting)
Returns the paged list of [index, CampaignTestPlanItem] wrapped in an IndexedIterationTestPlanItem

Parameters:
campaignId -
sorting -
Returns:

findIndexedTestPlan

List<IndexedCampaignTestPlanItem> findIndexedTestPlan(long campaignId,
                                                      org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting)
Returns the paged list of [index, CampaignTestPlanItem] wrapped in an IndexedIterationTestPlanItem

Parameters:
campaignId -
sorting -
Returns:

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<org.squashtest.tm.domain.campaign.CampaignLibraryNode> findAllByNameContaining(String tokenInName,
                                                                                    boolean groupByProject)
Finds all CampaignLibraryNode which name contains the given token.

Parameters:
tokenInName -
groupByProject -
Returns:

findAllExecutionsByCampaignId

List<org.squashtest.tm.domain.execution.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

findCampaignStatistics

org.squashtest.tm.domain.campaign.TestPlanStatistics findCampaignStatistics(long campaignId)
Parameters:
campaignId - the id of the concerned campaign
Returns:
the computed TestPlanStatistics out of each test-plan-item of each campaign's iteration

countRunningOrDoneExecutions

long countRunningOrDoneExecutions(long campaignId)

findFilteredIndexedTestPlan

List<IndexedCampaignTestPlanItem> findFilteredIndexedTestPlan(long campaignId,
                                                              org.squashtest.tm.core.foundation.collection.PagingAndMultiSorting sorting,
                                                              org.squashtest.tm.core.foundation.collection.ColumnFiltering filtering)

countFilteredTestPlanById

long countFilteredTestPlanById(long campaignId,
                               org.squashtest.tm.core.foundation.collection.ColumnFiltering filtering)


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