org.squashtest.tm.service.internal.deletion
@Component(value="squashtest.tm.service.deletion.CampaignNodeDeletionHandler") public class CampaignDeletionHandlerImpl extends AbstractNodeDeletionHandler<org.squashtest.tm.domain.campaign.CampaignLibraryNode,org.squashtest.tm.domain.campaign.CampaignFolder> implements CampaignNodeDeletionHandler
| Constructor and Description |
|---|
CampaignDeletionHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected OperationReport |
batchDeleteNodes(List<Long> ids)
Will delete the nodes identified by the ids parameter.
|
void |
deleteExecSteps(org.squashtest.tm.domain.execution.Execution execution) |
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)
|
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> testSuites)
That method should delete test suites, and remove its references in iteration and iteration test plan item
|
protected List<Long> |
detectLockedNodes(List<Long> nodeIds)
Given a list of node ids, returns a sublist corresponding to the ids of the nodes which cannot be deleted according to the specs.
|
protected List<SuppressionPreviewReport> |
diagnoseSuppression(List<Long> nodeIds)
Given their ids, that method should check the nodes and actually report the informations as specified in
NodeDeletionHandler.simulateDeletion(List). |
protected FolderDao<org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode> |
getFolderDao()
The implemention should return which FolderDao to use depending on the end domain object.
|
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.
|
deleteNodes, findNodeHierarchy, findPairedNodeHierarchy, simulateDeletionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteNodes, simulateDeletionprotected FolderDao<org.squashtest.tm.domain.campaign.CampaignFolder,org.squashtest.tm.domain.campaign.CampaignLibraryNode> getFolderDao()
AbstractNodeDeletionHandlergetFolderDao in class AbstractNodeDeletionHandler<org.squashtest.tm.domain.campaign.CampaignLibraryNode,org.squashtest.tm.domain.campaign.CampaignFolder>protected List<SuppressionPreviewReport> diagnoseSuppression(List<Long> nodeIds)
AbstractNodeDeletionHandlerGiven their ids, that method should check the nodes and actually report the informations as specified in NodeDeletionHandler.simulateDeletion(List).
See AbstractNodeDeletionHandler.detectLockedNodes(List) for details regarding the input list.
diagnoseSuppression in class AbstractNodeDeletionHandler<org.squashtest.tm.domain.campaign.CampaignLibraryNode,org.squashtest.tm.domain.campaign.CampaignFolder>nodeIds - the complete list of the nodes involved in that report.public List<SuppressionPreviewReport> simulateIterationDeletion(List<Long> targetIds)
CampaignNodeDeletionHandlersimulateIterationDeletion in interface CampaignNodeDeletionHandlerpublic List<SuppressionPreviewReport> simulateExecutionDeletion(Long execId)
CampaignNodeDeletionHandlersimulateExecutionDeletion in interface CampaignNodeDeletionHandlerpublic List<SuppressionPreviewReport> simulateSuiteDeletion(List<Long> targetIds)
CampaignNodeDeletionHandlersimulateSuiteDeletion in interface CampaignNodeDeletionHandlerprotected List<Long> detectLockedNodes(List<Long> nodeIds)
AbstractNodeDeletionHandlerGiven a list of node ids, returns a sublist corresponding to the ids of the nodes which cannot be deleted according to the specs. The input list includes all the nodes and their children in the directory structure. The implementation is responsible to fetch any other dependencies needed for the completion of its task. The implementation is not required to resolve which folders are locked : this abstract class will handle that on the basis of the returned value.
detectLockedNodes in class AbstractNodeDeletionHandler<org.squashtest.tm.domain.campaign.CampaignLibraryNode,org.squashtest.tm.domain.campaign.CampaignFolder>nodeIds - all the node ids.protected OperationReport batchDeleteNodes(List<Long> ids)
AbstractNodeDeletionHandlerbatchDeleteNodes in class AbstractNodeDeletionHandler<org.squashtest.tm.domain.campaign.CampaignLibraryNode,org.squashtest.tm.domain.campaign.CampaignFolder>ids - the doomed node ids.public OperationReport deleteIterations(List<Long> targetIds)
CampaignNodeDeletionHandlerdeleteIterations in interface CampaignNodeDeletionHandlerpublic OperationReport deleteSuites(List<Long> testSuites)
CampaignNodeDeletionHandlerdeleteSuites in interface CampaignNodeDeletionHandlerpublic void deleteExecution(org.squashtest.tm.domain.execution.Execution execution)
CampaignNodeDeletionHandlerdeleteExecution in interface CampaignNodeDeletionHandlerpublic void deleteIterationTestPlanItem(org.squashtest.tm.domain.campaign.IterationTestPlanItem item)
CampaignNodeDeletionHandlerdeleteIterationTestPlanItem in interface CampaignNodeDeletionHandleritem - : the IterationTestPlanItem to deletepublic void deleteExecutions(List<org.squashtest.tm.domain.execution.Execution> executions)
CampaignNodeDeletionHandlerdeleteExecutions in interface CampaignNodeDeletionHandlerpublic void deleteExecSteps(org.squashtest.tm.domain.execution.Execution execution)
Copyright © 2010-2014 Henix, henix.fr. All Rights Reserved.