AnsweredAssumed Answered

Move a content to a space - moveNode()

Question asked by redbull on Aug 29, 2012
Latest reply on Sep 5, 2012 by redbull
Hi all.
I need to move the content of one space to another space.
I tried this (from http://alfrescotips.wordpress.com/)

NodeRef target = new NodeRef(new StoreRef("workspace://SpacesStore"), target.getUUID());
this.nodeService.moveNode(source, target, ContentModel.ASSOC_CONTAINS, ContentModel.ASSOC_CHILDREN);
but target.getUUID() is not correct.
any suggestion?
thanks.

Outcomes