@Service(value="CustomTestSuiteModificationService") public class CustomTestSuiteModificationServiceImpl extends Object implements CustomTestSuiteModificationService
| Constructor and Description |
|---|
CustomTestSuiteModificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.squashtest.tm.domain.execution.Execution |
addExecution(long testPlanItemId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAllMilestones(long suiteId) |
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.
|
public CustomTestSuiteModificationServiceImpl()
@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
CustomTestSuiteModificationServiceDuplicateNameException
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).rename in interface CustomTestSuiteModificationServiceorg.squashtest.tm.exception.DuplicateNameException@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)
TestSuiteFinderfindById in interface TestSuiteFinder@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)
CustomTestSuiteModificationServiceThat method will retrieve the data and fill the testSuiteStatistics DTO.
findTestSuiteStatistics in interface CustomTestSuiteModificationService@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)
addExecution in interface CustomTestSuiteModificationService@Transactional(readOnly=true) @PreAuthorize(value="hasPermission(#suiteId, \'org.squashtest.tm.domain.campaign.TestSuite\',\'READ\') or hasRole(\'ROLE_ADMIN\')") public Collection<org.squashtest.tm.domain.milestone.Milestone> findAllMilestones(long suiteId)
findAllMilestones in interface TestSuiteFinderCopyright © 2010–2017 Henix, henix.fr. All rights reserved.