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

java.lang.Object
  extended by org.squashtest.tm.service.internal.campaign.CustomTestSuiteModificationServiceImpl
All Implemented Interfaces:
CustomTestSuiteModificationService, TestSuiteFinder

@Service(value="CustomTestSuiteModificationService")
public class CustomTestSuiteModificationServiceImpl
extends Object
implements CustomTestSuiteModificationService


Constructor Summary
CustomTestSuiteModificationServiceImpl()
           
 
Method Summary
 org.squashtest.tm.domain.execution.Execution addAutomatedExecution(long testPlanItemId)
           
 org.squashtest.tm.domain.execution.Execution addExecution(long testPlanItemId)
           
 org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(long suiteId)
          Create an automated execution for every automated item test plan in the given test-suite, group them in an automated suite and tells the connector to process them.
 org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(long suiteId, List<Long> testPlanIds)
          Create an automated execution for each of the test plan in arguments, group them in an automated suite and tells the connectors to process them .
 org.squashtest.tm.domain.campaign.TestSuite findById(long suiteId)
          That method will find the test Suite by its ID
 org.squashtest.tm.domain.campaign.TestPlanStatistics findTestSuiteStatistics(long suiteId)
          That method will retrieve the data and fill the testSuiteStatistics DTO.
 void rename(long suiteId, String newName)
          That method will update the name of the suite with newName, identified by suiteId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomTestSuiteModificationServiceImpl

public CustomTestSuiteModificationServiceImpl()
Method Detail

rename

@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void rename(long suiteId,
                                String newName)
            throws org.squashtest.tm.exception.DuplicateNameException
Description copied from interface: CustomTestSuiteModificationService
That method will update the name of the suite with newName, identified by suiteId. Will throw a DuplicateNameException if the suite could not rename itself due to name already used by another suite from the same owning Iteration (as as spec of TestSuite).

Specified by:
rename in interface CustomTestSuiteModificationService
Throws:
org.squashtest.tm.exception.DuplicateNameException

findById

@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\',\'READ\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.campaign.TestSuite findById(long suiteId)
Description copied from interface: TestSuiteFinder
That method will find the test Suite by its ID

Specified by:
findById in interface TestSuiteFinder

findTestSuiteStatistics

@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\',\'READ\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.campaign.TestPlanStatistics findTestSuiteStatistics(long suiteId)
Description copied from interface: CustomTestSuiteModificationService

That method will retrieve the data and fill the testSuiteStatistics DTO.

Specified by:
findTestSuiteStatistics in interface CustomTestSuiteModificationService

addExecution

@PreAuthorize(value="hasPermission(#testPlanItemId, \'org.squashtest.tm.domain.campaign.IterationTestPlanItem\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.execution.Execution addExecution(long testPlanItemId)
Specified by:
addExecution in interface CustomTestSuiteModificationService

addAutomatedExecution

@PreAuthorize(value="hasPermission(#testPlanItemId, \'org.squashtest.tm.domain.campaign.IterationTestPlanItem\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.execution.Execution addAutomatedExecution(long testPlanItemId)
Specified by:
addAutomatedExecution in interface CustomTestSuiteModificationService

createAndStartAutomatedSuite

@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(long suiteId)
Description copied from interface: CustomTestSuiteModificationService
Create an automated execution for every automated item test plan in the given test-suite, group them in an automated suite and tells the connector to process them.

Specified by:
createAndStartAutomatedSuite in interface CustomTestSuiteModificationService
Returns:
an AutomatedSuite

createAndStartAutomatedSuite

@PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(long suiteId,
                                                                                                        List<Long> testPlanIds)
Description copied from interface: CustomTestSuiteModificationService
Create an automated execution for each of the test plan in arguments, group them in an automated suite and tells the connectors to process them .

Specified by:
createAndStartAutomatedSuite in interface CustomTestSuiteModificationService
Parameters:
suiteId - the id of the testSuite that holds them all, and against which will be tested the user credentials
Returns:
an AutomatedSuite


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