As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
nodeService.moveNode(actionedUponNodeRef, targetNodeRef, ContentModel.ASSOC_CONTAINS, ContentModel.ASSOC_CHILDREN);
protected void moveContent(final NodeRef contentRef, final NodeRef targetRef) { AuthenticationUtil.runAs(new RunAsWork<String>() { @SuppressWarnings("synthetic-access") public String doWork() throws Exception { // move content to target folder nodeService.moveNode(contentRef, targetRef, ContentModel.ASSOC_CONTAINS, ContentModel.ASSOC_CHILDREN); if (logger.isDebugEnabled()) logger.debug("Move set"); return ""; } }, "admin"); }