09-05-2012 12:18 PM
nodeService.moveNode(actionedUponNodeRef, targetNodeRef,
ContentModel.ASSOC_CONTAINS, ContentModel.ASSOC_CHILDREN);
09-05-2012 04:30 PM
09-06-2012 08:40 AM
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");
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.