|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.campaign.CustomIterationModificationServiceImpl
@Service(value="CustomIterationModificationService") @Transactional public class CustomIterationModificationServiceImpl
| Constructor Summary | |
|---|---|
CustomIterationModificationServiceImpl()
|
|
| Method Summary | |
|---|---|
org.squashtest.tm.domain.execution.Execution |
addAutomatedExecution(org.squashtest.tm.domain.campaign.IterationTestPlanItem item)
|
org.squashtest.tm.domain.execution.Execution |
addAutomatedExecution(long testPlanItemId)
|
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 |
org.squashtest.tm.domain.testautomation.AutomatedSuite |
createAndStartAutomatedSuite(List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> testPlanItems)
|
org.squashtest.tm.domain.testautomation.AutomatedSuite |
createAndStartAutomatedSuite(long iterationId)
Create an automated execution for every automated item test plan in the given iteration, group them in an automated suite and tells the connector to process them. |
org.squashtest.tm.domain.testautomation.AutomatedSuite |
createAndStartAutomatedSuite(long iterationId,
Collection<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.testautomation.AutomatedSuite |
createAndStartAutomatedSuiteByITPIsIds(Collection<Long> testPlanIds)
|
String |
delete(long iterationId)
|
OperationReport |
deleteNodes(List<Long> targetIds)
that method should delete the nodes. |
List<org.squashtest.tm.domain.execution.Execution> |
findAllExecutions(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomIterationModificationServiceImpl()
| Method Detail |
|---|
@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)
CustomIterationModificationService
addIterationToCampaign 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(#testPlanItemId, \'org.squashtest.tm.domain.campaign.IterationTestPlanItem\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.execution.Execution addAutomatedExecution(long testPlanItemId)
addAutomatedExecution in interface CustomIterationModificationServiceCustomIterationModificationService.addAutomatedExecution(long)@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(long iterationId)
CustomIterationModificationService
createAndStartAutomatedSuite in interface CustomIterationModificationServiceAutomatedSuite
@PreAuthorize(value="hasPermission(#iterationId, \'org.squashtest.tm.domain.campaign.Iteration\', \'EXECUTE\') or hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(long iterationId,
Collection<Long> testPlanIds)
CustomIterationModificationService
createAndStartAutomatedSuite in interface CustomIterationModificationServiceiterationId - the id of the iteration that holds them all, and against which will be tested the user credentials
AutomatedSuite@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)
CustomIterationModificationService
simulateDeletion in interface CustomIterationModificationServicepublic OperationReport deleteNodes(List<Long> targetIds)
CustomIterationModificationService
deleteNodes 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 CustomIterationModificationService
public 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 suite
public 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 CustomIterationModificationService
public 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.TestPlanItemNotExecutableException
public 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.TestPlanItemNotExecutableExceptionpublic org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuite(List<org.squashtest.tm.domain.campaign.IterationTestPlanItem> testPlanItems)
createAndStartAutomatedSuite in interface IterationTestPlanManagerpublic org.squashtest.tm.domain.testautomation.AutomatedSuite createAndStartAutomatedSuiteByITPIsIds(Collection<Long> testPlanIds)
createAndStartAutomatedSuiteByITPIsIds in interface IterationTestPlanManagerpublic List<org.squashtest.tm.domain.campaign.Iteration> findIterationContainingTestCase(long testCaseId)
findIterationContainingTestCase in interface IterationFinderpublic IterationStatisticsBundle gatherIterationStatisticsBundle(long iterationId)
gatherIterationStatisticsBundle in interface CustomIterationModificationService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||