|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.internal.service.deletion.AbstractNodeDeletionHandlerImpl<CampaignLibraryNode,CampaignFolder>
org.squashtest.csp.tm.internal.service.deletion.CampaignDeletionHandlerImpl
@Component(value="squashtest.tm.service.deletion.CampaignNodeDeletionHandler") public class CampaignDeletionHandlerImpl
| Constructor Summary | |
|---|---|
CampaignDeletionHandlerImpl()
|
|
| Method Summary | |
|---|---|
protected void |
batchDeleteNodes(List<Long> ids)
Will delete the nodes identified by the ids parameter. |
void |
deleteExecSteps(Execution execution)
|
void |
deleteExecution(Execution execution)
that method should delete the execution. |
void |
deleteExecutions(List<Execution> executions)
|
List<Long> |
deleteIterations(List<Long> targetIds)
that method should delete the iterations. |
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<CampaignFolder,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. |
| Methods inherited from class org.squashtest.csp.tm.internal.service.deletion.AbstractNodeDeletionHandlerImpl |
|---|
deleteNodes, findNodeHierarchy, findPairedNodeHierarchy, simulateDeletion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.squashtest.csp.tm.internal.service.NodeDeletionHandler |
|---|
deleteNodes, simulateDeletion |
| Constructor Detail |
|---|
public CampaignDeletionHandlerImpl()
| Method Detail |
|---|
protected FolderDao<CampaignFolder,CampaignLibraryNode> getFolderDao()
AbstractNodeDeletionHandlerImpl
getFolderDao in class AbstractNodeDeletionHandlerImpl<CampaignLibraryNode,CampaignFolder>protected List<SuppressionPreviewReport> diagnoseSuppression(List<Long> nodeIds)
AbstractNodeDeletionHandlerImplGiven their ids, that method should check the nodes and actually report the informations as specified in NodeDeletionHandler.simulateDeletion(List).
See AbstractNodeDeletionHandlerImpl.detectLockedNodes(List) for details regarding the input list.
diagnoseSuppression in class AbstractNodeDeletionHandlerImpl<CampaignLibraryNode,CampaignFolder>nodeIds - the complete list of the nodes involved in that report.
public List<SuppressionPreviewReport> simulateIterationDeletion(List<Long> targetIds)
CampaignNodeDeletionHandler
simulateIterationDeletion in interface CampaignNodeDeletionHandlerpublic List<SuppressionPreviewReport> simulateExecutionDeletion(Long execId)
CampaignNodeDeletionHandler
simulateExecutionDeletion in interface CampaignNodeDeletionHandlerprotected List<Long> detectLockedNodes(List<Long> nodeIds)
AbstractNodeDeletionHandlerImplGiven 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 AbstractNodeDeletionHandlerImpl<CampaignLibraryNode,CampaignFolder>nodeIds - all the node ids.
protected void batchDeleteNodes(List<Long> ids)
AbstractNodeDeletionHandlerImpl
batchDeleteNodes in class AbstractNodeDeletionHandlerImpl<CampaignLibraryNode,CampaignFolder>ids - the doomed node ids.public List<Long> deleteIterations(List<Long> targetIds)
CampaignNodeDeletionHandler
deleteIterations in interface CampaignNodeDeletionHandlerpublic void deleteExecution(Execution execution)
CampaignNodeDeletionHandler
deleteExecution in interface CampaignNodeDeletionHandlerpublic void deleteExecutions(List<Execution> executions)
public void deleteExecSteps(Execution execution)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||