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

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

@Transactional(readOnly=true)
@Service(value="IterationStatisticsService")
public class IterationStatisticsServiceImpl
extends Object
implements IterationStatisticsService


Constructor Summary
IterationStatisticsServiceImpl()
           
 
Method Summary
 CampaignNonExecutedTestCaseImportanceStatistics gatherIterationNonExecutedTestCaseImportanceStatistics(long iterationId)
          Given a iteration id, gathers and returns the number of test cases grouped by execution status.
 IterationStatisticsBundle gatherIterationStatisticsBundle(long iterationId)
          Given an iteration id, gathers all of the above in one package.
 CampaignTestCaseStatusStatistics gatherIterationTestCaseStatusStatistics(long iterationId)
          Given a iteration id, gathers and returns the number of non-executed test cases grouped by weight.
 CampaignTestCaseSuccessRateStatistics gatherIterationTestCaseSuccessRateStatistics(long iterationId)
          Given an iteration id, gathers and returns the number of passed and failed test cases grouped by weight.
 List<TestSuiteTestInventoryStatistics> gatherTestSuiteTestInventoryStatistics(long iterationId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterationStatisticsServiceImpl

public IterationStatisticsServiceImpl()
Method Detail

gatherIterationTestCaseStatusStatistics

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

Specified by:
gatherIterationTestCaseStatusStatistics in interface IterationStatisticsService
Returns:

gatherIterationNonExecutedTestCaseImportanceStatistics

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

Specified by:
gatherIterationNonExecutedTestCaseImportanceStatistics in interface IterationStatisticsService
Returns:

gatherIterationTestCaseSuccessRateStatistics

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

Specified by:
gatherIterationTestCaseSuccessRateStatistics in interface IterationStatisticsService
Returns:

gatherTestSuiteTestInventoryStatistics

@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public List<TestSuiteTestInventoryStatistics> gatherTestSuiteTestInventoryStatistics(long iterationId)
Specified by:
gatherTestSuiteTestInventoryStatistics in interface IterationStatisticsService

gatherIterationStatisticsBundle

@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')")
public IterationStatisticsBundle gatherIterationStatisticsBundle(long iterationId)
Description copied from interface: IterationStatisticsService
Given an iteration id, gathers all of the above in one package.

Specified by:
gatherIterationStatisticsBundle in interface IterationStatisticsService
Returns:


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