|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CampaignNodeDeletionHandler
The following specialization for NodeDeletionHandler, meant for the campaigns, will also handle the deletion of campaign related entities like Iterations and Executions. Thus the contract of the interface NodeDeletionHandler is extended for those entities. First, some definitions :
NodeDeletionHandler.simulateDeletion(List). However,
while Iterations are candidates to mass-deletion, Executions are always deleted one at a time. That's why
deleteExecution(Execution) have a different contract to enforce this.
On the other hand, in the context of a cascade deletion both Iterations and Executions will be removed en
masse.
Further remarks :
The disassociation an IterationTestPlanItem from an Iteration is already handled by IterationTestPlanManager. However
the implementation of this interface should also take care of these entities in the context of a cascade removal.
Same remark goes for CampaignTestPlanItem.
| Method Summary | |
|---|---|
void |
deleteExecution(org.squashtest.tm.domain.execution.Execution execution)
That method should delete the execution. |
void |
deleteExecutions(List<org.squashtest.tm.domain.execution.Execution> executions)
uses deleteExecution(Execution) |
OperationReport |
deleteIterations(List<Long> targetIds)
That method should delete the iterations. |
void |
deleteIterationTestPlanItem(org.squashtest.tm.domain.campaign.IterationTestPlanItem item)
That method should delete the test plan item. |
OperationReport |
deleteSuites(List<Long> suiteIds)
That method should delete test suites, and remove its references in iteration and iteration test plan item |
List<SuppressionPreviewReport> |
simulateExecutionDeletion(Long execId)
That method should investigate the consequences of the deletion of the given executions, and return a report about what will happen. |
List<SuppressionPreviewReport> |
simulateIterationDeletion(List<Long> targetIds)
That method should investigate the consequences of the deletion of the given iterations, and return a report about what will happen. |
List<SuppressionPreviewReport> |
simulateSuiteDeletion(List<Long> targetIds)
That method should investigate the consequences of the deletion of the given test suites, and return a report about what will happen. |
| Methods inherited from interface org.squashtest.tm.service.internal.library.NodeDeletionHandler |
|---|
deleteNodes, simulateDeletion |
| Method Detail |
|---|
List<SuppressionPreviewReport> simulateIterationDeletion(List<Long> targetIds)
targetIds -
OperationReport deleteIterations(List<Long> targetIds)
targetIds -
void deleteIterationTestPlanItem(org.squashtest.tm.domain.campaign.IterationTestPlanItem item)
item - : the IterationTestPlanItem to deleteList<SuppressionPreviewReport> simulateExecutionDeletion(Long execId)
targetIds -
void deleteExecution(org.squashtest.tm.domain.execution.Execution execution)
targetIds -
RuntimeException - if the execution should not be deleted.void deleteExecutions(List<org.squashtest.tm.domain.execution.Execution> executions)
executions - List<SuppressionPreviewReport> simulateSuiteDeletion(List<Long> targetIds)
targetIds -
OperationReport deleteSuites(List<Long> suiteIds)
testSuites -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||