@Component @Scope(value="prototype") public class TreeNodeCopier extends Object implements org.squashtest.tm.domain.library.NodeVisitor, PasteOperation
| Constructor and Description |
|---|
TreeNodeCopier() |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
getRequirementVersionToIndex() |
List<Long> |
getTestCaseToIndex() |
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 source,
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.
|
void |
visit(org.squashtest.tm.domain.campaign.Campaign source) |
void |
visit(org.squashtest.tm.domain.campaign.CampaignFolder campaignFolder) |
void |
visit(org.squashtest.tm.domain.library.Folder source,
FolderDao dao) |
void |
visit(org.squashtest.tm.domain.campaign.Iteration source)
Will copy paste the iteration with it's test-suites.
|
void |
visit(org.squashtest.tm.domain.requirement.Requirement source) |
void |
visit(org.squashtest.tm.domain.requirement.RequirementFolder requirementFolder) |
void |
visit(org.squashtest.tm.domain.testcase.TestCase source) |
void |
visit(org.squashtest.tm.domain.testcase.TestCaseFolder testCaseFolder) |
void |
visit(org.squashtest.tm.domain.campaign.TestSuite source) |
public org.squashtest.tm.domain.library.TreeNode performOperation(org.squashtest.tm.domain.library.TreeNode source,
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 void visit(org.squashtest.tm.domain.library.Folder source,
FolderDao dao)
public void visit(org.squashtest.tm.domain.campaign.Campaign source)
visit in interface org.squashtest.tm.domain.library.NodeVisitorpublic void visit(org.squashtest.tm.domain.campaign.Iteration source)
visit in interface org.squashtest.tm.domain.library.NodeVisitorpublic void visit(org.squashtest.tm.domain.campaign.TestSuite source)
visit in interface org.squashtest.tm.domain.library.NodeVisitorpublic void visit(org.squashtest.tm.domain.requirement.Requirement source)
visit in interface org.squashtest.tm.domain.library.NodeVisitorpublic void visit(org.squashtest.tm.domain.testcase.TestCase source)
visit in interface org.squashtest.tm.domain.library.NodeVisitorpublic void visit(org.squashtest.tm.domain.campaign.CampaignFolder campaignFolder)
visit in interface org.squashtest.tm.domain.library.NodeVisitorpublic void visit(org.squashtest.tm.domain.requirement.RequirementFolder requirementFolder)
visit in interface org.squashtest.tm.domain.library.NodeVisitorpublic void visit(org.squashtest.tm.domain.testcase.TestCaseFolder testCaseFolder)
visit in interface org.squashtest.tm.domain.library.NodeVisitorpublic boolean isOkToGoDeeper()
PasteOperationvisit(org.squashtest.tm.domain.campaign.Iteration) for an example of when it is not ok.isOkToGoDeeper in interface PasteOperationpublic List<Long> getRequirementVersionToIndex()
getRequirementVersionToIndex in interface PasteOperationpublic List<Long> getTestCaseToIndex()
getTestCaseToIndex in interface PasteOperationCopyright © 2010–2017 Henix, henix.fr. All rights reserved.