|
||||||||||
| 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(Execution execution)
that method should delete the execution. |
List<Long> |
deleteIterations(List<Long> targetIds)
that method should delete the iterations. |
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. |
| Methods inherited from interface org.squashtest.csp.tm.internal.service.NodeDeletionHandler |
|---|
deleteNodes, simulateDeletion |
| Method Detail |
|---|
List<SuppressionPreviewReport> simulateIterationDeletion(List<Long> targetIds)
targetIds -
List<Long> deleteIterations(List<Long> targetIds)
targetIds -
List<SuppressionPreviewReport> simulateExecutionDeletion(Long execId)
targetIds -
void deleteExecution(Execution execution)
targetIds -
RuntimeException - if the execution should not be deleted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||