|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.service.internal.deletion.AbstractNodeDeletionHandler<org.squashtest.tm.domain.testcase.TestCaseLibraryNode,org.squashtest.tm.domain.testcase.TestCaseFolder>
org.squashtest.tm.service.internal.deletion.TestCaseNodeDeletionHandlerImpl
@Component(value="squashtest.tm.service.deletion.TestCaseNodeDeletionHandler") @Transactional public class TestCaseNodeDeletionHandlerImpl
| Constructor Summary | |
|---|---|
TestCaseNodeDeletionHandlerImpl()
|
|
| Method Summary | |
|---|---|
protected OperationReport |
batchDeleteNodes(List<Long> ids)
Will delete the nodes identified by the ids parameter. |
void |
deleteStep(org.squashtest.tm.domain.testcase.TestCase owner,
org.squashtest.tm.domain.testcase.TestStep step)
|
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 List<Object[]> |
getAllCallerCalledPairs(List<Long> calledIds)
See CustomTestCaseDao.findTestCasesHavingCallerDetails(java.util.Collection) for more information regarding
that mysterious Object[] |
protected FolderDao<org.squashtest.tm.domain.testcase.TestCaseFolder,org.squashtest.tm.domain.testcase.TestCaseLibraryNode> |
getFolderDao()
The implemention should return which FolderDao to use depending on the end domain object. |
protected LockedFileInferenceGraph |
initLockGraph(List<Long> candidatesId)
|
protected NotDeletablePreviewReport |
previewLockedNodes(List<Long> nodeIds)
|
| Methods inherited from class org.squashtest.tm.service.internal.deletion.AbstractNodeDeletionHandler |
|---|
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.tm.service.internal.library.NodeDeletionHandler |
|---|
deleteNodes, simulateDeletion |
| Constructor Detail |
|---|
public TestCaseNodeDeletionHandlerImpl()
| Method Detail |
|---|
protected FolderDao<org.squashtest.tm.domain.testcase.TestCaseFolder,org.squashtest.tm.domain.testcase.TestCaseLibraryNode> getFolderDao()
AbstractNodeDeletionHandler
getFolderDao in class AbstractNodeDeletionHandler<org.squashtest.tm.domain.testcase.TestCaseLibraryNode,org.squashtest.tm.domain.testcase.TestCaseFolder>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.testcase.TestCaseLibraryNode,org.squashtest.tm.domain.testcase.TestCaseFolder>nodeIds - the complete list of the nodes involved in that report.
protected 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.testcase.TestCaseLibraryNode,org.squashtest.tm.domain.testcase.TestCaseFolder>nodeIds - all the node ids.
protected OperationReport batchDeleteNodes(List<Long> ids)
AbstractNodeDeletionHandler
batchDeleteNodes in class AbstractNodeDeletionHandler<org.squashtest.tm.domain.testcase.TestCaseLibraryNode,org.squashtest.tm.domain.testcase.TestCaseFolder>ids - the doomed node ids.
public void deleteStep(org.squashtest.tm.domain.testcase.TestCase owner,
org.squashtest.tm.domain.testcase.TestStep step)
deleteStep in interface TestCaseNodeDeletionHandlerprotected NotDeletablePreviewReport previewLockedNodes(List<Long> nodeIds)
protected List<Object[]> getAllCallerCalledPairs(List<Long> calledIds)
CustomTestCaseDao.findTestCasesHavingCallerDetails(java.util.Collection) for more information regarding
that mysterious Object[]
protected LockedFileInferenceGraph initLockGraph(List<Long> candidatesId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||