org.squashtest.tm.service.internal.library
@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 |
|---|---|
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)
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)
PasteOperationperformOperation 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 PasteOperationCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.