@Component @Scope(value="prototype") public class FirstLayerTreeNodeMover extends Object implements PasteOperation, org.springframework.beans.factory.InitializingBean
NextLayersTreeNodeMover.| Constructor and Description |
|---|
FirstLayerTreeNodeMover() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
List<Long> |
getRequirementVersionToIndex() |
List<Long> |
getTestCaseToIndex() |
void |
init() |
boolean |
isOkToGoDeeper()
will say if the operation allows to go process node's childrens after operation.
|
org.squashtest.tm.domain.library.TreeNode |
performOperation(org.squashtest.tm.domain.library.TreeNode toMove,
org.squashtest.tm.domain.library.NodeContainer<org.squashtest.tm.domain.library.TreeNode> destination,
Integer position)
Some operation involving a node and another node will happen, ie the source will be copied or moved to the destination.
|
protected void |
processNodes(org.squashtest.tm.domain.library.TreeNode toMove,
Integer position) |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void init()
public org.squashtest.tm.domain.library.TreeNode performOperation(org.squashtest.tm.domain.library.TreeNode toMove,
org.squashtest.tm.domain.library.NodeContainer<org.squashtest.tm.domain.library.TreeNode> destination,
Integer position)
PasteOperationSome operation involving a node and another node will happen, ie the source will be copied or moved to the destination. Also returns a TreeNode resulting from this operation, that will be either the copy of the source or the source itself.
If a position is specified, the source node will be copied/moved to its destination at this position. If position is left to null, it will be appended to the content of the destination.
performOperation in interface PasteOperationpublic boolean isOkToGoDeeper()
PasteOperationTreeNodeCopier.visit(org.squashtest.tm.domain.campaign.Iteration) for an example of when it is not ok.isOkToGoDeeper in interface PasteOperationprotected void processNodes(org.squashtest.tm.domain.library.TreeNode toMove,
Integer position)
public List<Long> getRequirementVersionToIndex()
getRequirementVersionToIndex in interface PasteOperationpublic List<Long> getTestCaseToIndex()
getTestCaseToIndex in interface PasteOperationCopyright © 2010–2017 Henix, henix.fr. All rights reserved.