@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() |
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)
Some operation involving a node and another node will happen, ie the source will be copied or moved to the destination.
|
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,
int position) |
protected void |
processNodes(org.squashtest.tm.domain.library.TreeNode toMove) |
protected void |
processNodes(org.squashtest.tm.domain.library.TreeNode toMove,
int 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)
PasteOperationperformOperation in interface PasteOperationpublic 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,
int position)
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)
protected void processNodes(org.squashtest.tm.domain.library.TreeNode toMove,
int position)
Copyright © 2010-2015 Henix, henix.fr. All Rights Reserved.