Careful : As of Squash TM 1.5.0 this object becomes stateful, in layman words you need one instance per operation.
This class holds the logic for processing all nodes in operations that need to go throug a node branch. So far it is
used for copying and moving nodes. When moving nodes it can be necessary to go throug the branch to update cufs etc.
(see
NextLayersTreeNodeMover.
To use the PasteStategy, you need to define the CONTAINER type, the #nodeDao and the
containerDao. This is done in
bundle-context.xml, look for examples there.
You will also need to define the operations that needs to be done for the nodes in the first and next layers. This is
done when the PasteStrategy is being used (see
AbstractLibraryNavigationService.makeCopierStrategy(PasteStrategy) and
AbstractLibraryNavigationService.makeMoverStrategy(PasteStrategy) as examples).
What is a layer ?
A layer is a map holing
- a key : the destination , a
NodeContainer
- a value : the list of source
TreeNode that will be processed by a PasteOperation and which result will be
added to the destination