org.squashtest.tm.service.internal.library
Class NextLayersTreeNodeMover

java.lang.Object
  extended by org.squashtest.tm.service.internal.library.NextLayersTreeNodeMover
All Implemented Interfaces:
org.squashtest.tm.domain.library.NodeVisitor, PasteOperation

@Component
@Scope(value="prototype")
public class NextLayersTreeNodeMover
extends Object
implements org.squashtest.tm.domain.library.NodeVisitor, PasteOperation

This class is used after the FirstLayerTreeNodeMover. It will make sure all nodes know their project are consistent with their project's parameters.

Author:
mpagnon

Constructor Summary
NextLayersTreeNodeMover()
           
 
Method Summary
 boolean isOkToGoDeeper()
          PRIVATE
 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)
          Will make sure all nodes are aware of their project and call the TreeNodeUpdater on each of them.
 void visit(org.squashtest.tm.domain.campaign.Campaign campaign)
           
 void visit(org.squashtest.tm.domain.campaign.CampaignFolder campaignFolder)
           
 void visit(org.squashtest.tm.domain.campaign.Iteration iteration)
           
 void visit(org.squashtest.tm.domain.requirement.Requirement requirement)
           
 void visit(org.squashtest.tm.domain.requirement.RequirementFolder requirementFolder)
           
 void visit(org.squashtest.tm.domain.testcase.TestCase testCase)
           
 void visit(org.squashtest.tm.domain.testcase.TestCaseFolder testCaseFolder)
           
 void visit(org.squashtest.tm.domain.campaign.TestSuite testSuite)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NextLayersTreeNodeMover

public NextLayersTreeNodeMover()
Method Detail

performOperation

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)
Will make sure all nodes are aware of their project and call the TreeNodeUpdater on each of them.

Specified by:
performOperation in interface PasteOperation

isOkToGoDeeper

public boolean isOkToGoDeeper()
PRIVATE

Specified by:
isOkToGoDeeper in interface PasteOperation
Returns:

visit

public void visit(org.squashtest.tm.domain.campaign.CampaignFolder campaignFolder)
Specified by:
visit in interface org.squashtest.tm.domain.library.NodeVisitor

visit

public void visit(org.squashtest.tm.domain.requirement.RequirementFolder requirementFolder)
Specified by:
visit in interface org.squashtest.tm.domain.library.NodeVisitor

visit

public void visit(org.squashtest.tm.domain.testcase.TestCaseFolder testCaseFolder)
Specified by:
visit in interface org.squashtest.tm.domain.library.NodeVisitor

visit

public void visit(org.squashtest.tm.domain.campaign.Campaign campaign)
Specified by:
visit in interface org.squashtest.tm.domain.library.NodeVisitor

visit

public void visit(org.squashtest.tm.domain.campaign.Iteration iteration)
Specified by:
visit in interface org.squashtest.tm.domain.library.NodeVisitor

visit

public void visit(org.squashtest.tm.domain.campaign.TestSuite testSuite)
Specified by:
visit in interface org.squashtest.tm.domain.library.NodeVisitor

visit

public void visit(org.squashtest.tm.domain.requirement.Requirement requirement)
Specified by:
visit in interface org.squashtest.tm.domain.library.NodeVisitor

visit

public void visit(org.squashtest.tm.domain.testcase.TestCase testCase)
Specified by:
visit in interface org.squashtest.tm.domain.library.NodeVisitor


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.