Using Magnolia Blossom 4.5.3, I'm trying to figure out add a task which will 
move the children of node A to node B without removing node B and its kids.  

All of the AbstractRepositoryTask subclasses that I've seen, i.e. MoveNodeTask 
and CopyNodeTask, have this logic:
HierarchyManager hm = installContext.getHierarchyManager(workspaceName);
[code]        if(hm.isExist(dest)){
            if(overwrite){
                hm.delete(dest);
            }
            else{
                installContext.error("Can't move " + src + " to " + dest + " 
because the target node already exists.", null);
                return;
            }
        }
        ContentUtil.moveInSession(hm.getContent(src), dest);[/code]

which will either fail to write, or will overwrite.  Any suggestions?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=34d20ce3-8f78-4bcd-b37d-7f36a0f1ec61


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to