@Service(value="CustomIterationModificationService") @Transactional public class CustomIterationModificationServiceImpl extends Object implements CustomIterationModificationService, IterationTestPlanManager
| Constructor and Description |
|---|
CustomIterationModificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.squashtest.tm.domain.execution.Execution |
addAutomatedExecution(org.squashtest.tm.domain.campaign.IterationTestPlanItem item) |
org.squashtest.tm.domain.execution.Execution |
addExecution(org.squashtest.tm.domain.campaign.IterationTestPlanItem item) |
org.squashtest.tm.domain.execution.Execution |
addExecution(long testPlanItemId) |
int |
addIterationToCampaign(org.squashtest.tm.domain.campaign.Iteration iteration,
long campaignId,
boolean copyTestPlan)
Adds an iteration to the list of iterations of a campaign.
|
void |
addTestSuite(org.squashtest.tm.domain.campaign.Iteration iteration,
org.squashtest.tm.domain.campaign.TestSuite suite) |
void |
addTestSuite(long iterationId,
org.squashtest.tm.domain.campaign.TestSuite suite) |
List<org.squashtest.tm.domain.campaign.TestSuite> |
copyPasteTestSuitesToIteration(Long[] testSuiteIds,
long iterationId)
will create a copy of the test suites and their test plan , then associate them to the given iteration
will rename test suites if there is name conflict at destination |
org.squashtest.tm.domain.campaign.TestSuite |
copyPasteTestSuiteToIteration(long testSuiteId,
long iterationId)
Will create a copy of the test suite and it's test plan , then associate it to the given iteration
will rename test suite if there is name conflict at destination |
String |
delete(long iterationId) |
List<org.squashtest.tm.domain.execution.Execution> |
findAllExecutions(long iterationId) |
Collection<org.squashtest.tm.domain.milestone.Milestone> |
findAllMilestones(long iterationId) |
List<org.squashtest.tm.domain.campaign.TestSuite> |
findAllTestSuites(long iterationId) |
org.squashtest.tm.domain.campaign.Iteration |
findById(long iterationId) |
List<org.squashtest.tm.domain.execution.Execution> |
findExecutionsByTestPlan(long iterationId,
long testPlanId) |
List<org.squashtest.tm.domain.campaign.Iteration> |
findIterationContainingTestCase(long testCaseId) |
List<org.squashtest.tm.domain.campaign.Iteration> |
findIterationsByCampaignId(long campaignId) |
List<org.squashtest.tm.domain.testcase.TestCase> |
findPlannedTestCases(long iterationId) |
IterationStatisticsBundle |
gatherIterationStatisticsBundle(long iterationId) |
OperationReport |
removeTestSuites(List<Long> suitesIds)
That method will remove each test suite, leaving it's test plan items linked to no test_suite
|
void |
rename(long iterationId,
String newName) |
List<SuppressionPreviewReport> |
simulateDeletion(List<Long> targetIds)
that method should investigate the consequences of the deletion request, and return a report about what will
happen.
|
org.squashtest.tm.domain.execution.Execution |
updateExecutionFromTc(long executionId) |
public CustomIterationModificationServiceImpl()
@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public int addIterationToCampaign(org.squashtest.tm.domain.campaign.Iteration iteration,
long campaignId,
boolean copyTestPlan)
CustomIterationModificationServiceaddIterationToCampaign in interface CustomIterationModificationService@PreAuthorize(value="hasPermission(#campaignId, \'org.squashtest.tm.domain.campaign.Campaign\', \'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public List<org.squashtest.tm.domain.campaign.Iteration> findIterationsByCampaignId(long campaignId)
findIterationsByCampaignId in interface IterationFinder@PostAuthorize(value="hasPermission(returnObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public org.squashtest.tm.domain.campaign.Iteration findById(long iterationId)
findById in interface IterationFinder@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'DELETE\') or hasRole(\'ROLE_ADMIN\')") public String delete(long iterationId)
delete in interface CustomIterationModificationService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void rename(long iterationId,
String newName)
rename in interface CustomIterationModificationService@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 CustomIterationModificationServiceCustomIterationModificationService.addExecution(long)@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public List<org.squashtest.tm.domain.execution.Execution> findAllExecutions(long iterationId)
findAllExecutions in interface IterationFinder@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public List<org.squashtest.tm.domain.execution.Execution> findExecutionsByTestPlan(long iterationId, long testPlanId)
findExecutionsByTestPlan in interface IterationFinder@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public List<org.squashtest.tm.domain.testcase.TestCase> findPlannedTestCases(long iterationId)
findPlannedTestCases in interface IterationFinderpublic List<SuppressionPreviewReport> simulateDeletion(List<Long> targetIds)
CustomIterationModificationServicesimulateDeletion in interface CustomIterationModificationService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public void addTestSuite(long iterationId,
org.squashtest.tm.domain.campaign.TestSuite suite)
addTestSuite in interface CustomIterationModificationServicepublic void addTestSuite(org.squashtest.tm.domain.campaign.Iteration iteration,
org.squashtest.tm.domain.campaign.TestSuite suite)
addTestSuite in interface IterationTestPlanManager@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public List<org.squashtest.tm.domain.campaign.TestSuite> findAllTestSuites(long iterationId)
findAllTestSuites in interface CustomIterationModificationService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'CREATE\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.campaign.TestSuite copyPasteTestSuiteToIteration(long testSuiteId,
long iterationId)
CustomIterationModificationService
Will create a copy of the test suite and it's test plan , then associate it to the given iteration
will rename test suite if there is name conflict at destination
copyPasteTestSuiteToIteration in interface CustomIterationModificationServicetestSuiteId - = test suite to copyiterationId - = iteration where to add the copy of the test suite@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'CREATE\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.campaign.TestSuite> copyPasteTestSuitesToIteration(Long[] testSuiteIds, long iterationId)
CustomIterationModificationService
will create a copy of the test suites and their test plan , then associate them to the given iteration
will rename test suites if there is name conflict at destination
copyPasteTestSuitesToIteration in interface CustomIterationModificationServicetestSuiteIds - = list of test suites to copyiterationId - = iteration where to add the copy of the test suitepublic OperationReport removeTestSuites(List<Long> suitesIds)
CustomIterationModificationServiceThat method will remove each test suite, leaving it's test plan items linked to no test_suite
removeTestSuites in interface CustomIterationModificationServicepublic org.squashtest.tm.domain.execution.Execution addExecution(org.squashtest.tm.domain.campaign.IterationTestPlanItem item)
throws org.squashtest.tm.exception.execution.TestPlanItemNotExecutableException
addExecution in interface IterationTestPlanManagerorg.squashtest.tm.exception.execution.TestPlanItemNotExecutableExceptionpublic org.squashtest.tm.domain.execution.Execution addAutomatedExecution(org.squashtest.tm.domain.campaign.IterationTestPlanItem item)
throws org.squashtest.tm.exception.execution.TestPlanItemNotExecutableException
addAutomatedExecution in interface IterationTestPlanManagerorg.squashtest.tm.exception.execution.TestPlanItemNotExecutableException@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.tm.domain.testcase.TestCase\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public List<org.squashtest.tm.domain.campaign.Iteration> findIterationContainingTestCase(long testCaseId)
findIterationContainingTestCase in interface IterationFinder@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public IterationStatisticsBundle gatherIterationStatisticsBundle(long iterationId)
gatherIterationStatisticsBundle in interface CustomIterationModificationService@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'READ\') or hasRole(\'ROLE_ADMIN\')") public Collection<org.squashtest.tm.domain.milestone.Milestone> findAllMilestones(long iterationId)
findAllMilestones in interface IterationFinderpublic org.squashtest.tm.domain.execution.Execution updateExecutionFromTc(long executionId)
updateExecutionFromTc in interface CustomIterationModificationServiceupdateExecutionFromTc in interface IterationTestPlanManagerCopyright © 2010–2017 Henix, henix.fr. All rights reserved.