org.squashtest.csp.tm.service
Interface CustomIterationModificationService

All Known Subinterfaces:
IterationModificationService
All Known Implementing Classes:
CustomIterationModificationServiceImpl

@Transactional
public interface CustomIterationModificationService

Author:
Gregory Fouquet

Method Summary
 void addExecution(long iterationId, long testPlanId)
           
 int addIterationToCampaign(Iteration iteration, long campaignId)
          Adds an iteration to the list of iterations of a campaign.
 void changeTestPlanPosition(long iterationId, long testPlanId, int newIndex)
           
 String delete(long iterationId)
           
 List<Long> deleteNodes(List<Long> targetIds)
          that method should delete the nodes.
 List<Execution> findAllExecutions(long iterationId)
           
 Iteration findById(long iterationId)
           
 List<Execution> findExecutionsByTestPlan(long iterationId, long testPlanId)
           
 List<Iteration> findIterationsByCampaignId(long campaignId)
           
 FilteredCollectionHolder<List<IterationTestPlanItem>> findIterationTestPlan(long iterationId, CollectionSorting filter)
           
 List<TestCase> findPlannedTestCases(long iterationId)
           
 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.
 

Method Detail

addIterationToCampaign

int addIterationToCampaign(Iteration iteration,
                           long campaignId)
Adds an iteration to the list of iterations of a campaign.

Parameters:
iteration -
campaignId -
Returns:
the index of the added iteration.

findIterationsByCampaignId

@Transactional(readOnly=true)
List<Iteration> findIterationsByCampaignId(long campaignId)

findById

@Transactional(readOnly=true)
Iteration findById(long iterationId)

delete

String delete(long iterationId)

rename

void rename(long iterationId,
            String newName)

addExecution

void addExecution(long iterationId,
                  long testPlanId)

changeTestPlanPosition

void changeTestPlanPosition(long iterationId,
                            long testPlanId,
                            int newIndex)

findAllExecutions

@Transactional(readOnly=true)
List<Execution> findAllExecutions(long iterationId)

findExecutionsByTestPlan

@Transactional(readOnly=true)
List<Execution> findExecutionsByTestPlan(long iterationId,
                                                       long testPlanId)

findPlannedTestCases

@Transactional(readOnly=true)
List<TestCase> findPlannedTestCases(long iterationId)

findIterationTestPlan

@Transactional(readOnly=true)
FilteredCollectionHolder<List<IterationTestPlanItem>> findIterationTestPlan(long iterationId,
                                                                                          CollectionSorting filter)

simulateDeletion

List<SuppressionPreviewReport> simulateDeletion(List<Long> targetIds)
that method should investigate the consequences of the deletion request, and return a report about what will happen.

Parameters:
targetIds -
Returns:

deleteNodes

List<Long> deleteNodes(List<Long> targetIds)
that method should delete the nodes. It still takes care of non deletable nodes so the implementation should filter out the ids who can't be deleted.

Parameters:
targetIds -
Returns:


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.