org.squashtest.tm.service.internal.campaign
Class CampaignStatisticsServiceImpl

java.lang.Object
  extended by org.squashtest.tm.service.internal.campaign.CampaignStatisticsServiceImpl
All Implemented Interfaces:
CampaignStatisticsService

@Transactional(readOnly=true)
@Service(value="CampaignStatisticsService")
public class CampaignStatisticsServiceImpl
extends Object
implements CampaignStatisticsService


Constructor Summary
CampaignStatisticsServiceImpl()
           
 
Method Summary
 CampaignNonExecutedTestCaseImportanceStatistics gatherCampaignNonExecutedTestCaseImportanceStatistics(long campaignId)
          Given a campaign id, gathers and returns the number of non-executed test cases grouped by weight.
 CampaignProgressionStatistics gatherCampaignProgressionStatistics(long campaignId)
          Given a campaignId, gathers and return the theoterical and actual cumulative test count by iterations.
 CampaignStatisticsBundle gatherCampaignStatisticsBundle(long campaignId)
          Given a campaign id, gathers all of the above in one package.
 CampaignTestCaseStatusStatistics gatherCampaignTestCaseStatusStatistics(long campaignId)
          Given a campaign id, gathers and returns the number of test cases grouped by execution status.
 CampaignTestCaseSuccessRateStatistics gatherCampaignTestCaseSuccessRateStatistics(long campaignId)
          Given a campaign id, gathers and returns the number of passed and failed test cases grouped by weight.
 List<IterationTestInventoryStatistics> gatherIterationTestInventoryStatistics(long campaignId)
          Given a campaign id, gathers and returns how many tests and at which status are planned in this campaign.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CampaignStatisticsServiceImpl

public CampaignStatisticsServiceImpl()
Method Detail

gatherCampaignProgressionStatistics

@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public CampaignProgressionStatistics gatherCampaignProgressionStatistics(long campaignId)
Description copied from interface: CampaignStatisticsService

Given a campaignId, gathers and return the theoterical and actual cumulative test count by iterations. The theoterical cumulative test count by iterations means how many tests should have been executed per day on the basis of the scheduled start and end of an iteration. The actual cumulative test count means how many tests have been executed so far, each days, during the same period.

This assumes that the scheduled start and end dates of each iterations are square : they must all be defined, and must not overlap. In case of errors appropriate messages will be filled instead and data won't be returned.

Specified by:
gatherCampaignProgressionStatistics in interface CampaignStatisticsService
Returns:

gatherIterationTestInventoryStatistics

@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public List<IterationTestInventoryStatistics> gatherIterationTestInventoryStatistics(long campaignId)
Description copied from interface: CampaignStatisticsService
Given a campaign id, gathers and returns how many tests and at which status are planned in this campaign. Only tests part of an iteration count. Those statistics are grouped and sorted by Iteration.

Specified by:
gatherIterationTestInventoryStatistics in interface CampaignStatisticsService
Returns:

gatherCampaignTestCaseStatusStatistics

@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public CampaignTestCaseStatusStatistics gatherCampaignTestCaseStatusStatistics(long campaignId)
Description copied from interface: CampaignStatisticsService
Given a campaign id, gathers and returns the number of test cases grouped by execution status.

Specified by:
gatherCampaignTestCaseStatusStatistics in interface CampaignStatisticsService
Returns:

gatherCampaignNonExecutedTestCaseImportanceStatistics

@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public CampaignNonExecutedTestCaseImportanceStatistics gatherCampaignNonExecutedTestCaseImportanceStatistics(long campaignId)
Description copied from interface: CampaignStatisticsService
Given a campaign id, gathers and returns the number of non-executed test cases grouped by weight.

Specified by:
gatherCampaignNonExecutedTestCaseImportanceStatistics in interface CampaignStatisticsService
Returns:

gatherCampaignTestCaseSuccessRateStatistics

@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public CampaignTestCaseSuccessRateStatistics gatherCampaignTestCaseSuccessRateStatistics(long campaignId)
Description copied from interface: CampaignStatisticsService
Given a campaign id, gathers and returns the number of passed and failed test cases grouped by weight.

Specified by:
gatherCampaignTestCaseSuccessRateStatistics in interface CampaignStatisticsService
Returns:

gatherCampaignStatisticsBundle

@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public CampaignStatisticsBundle gatherCampaignStatisticsBundle(long campaignId)
Description copied from interface: CampaignStatisticsService
Given a campaign id, gathers all of the above in one package.

Specified by:
gatherCampaignStatisticsBundle in interface CampaignStatisticsService
Returns:


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