09-13-2011 10:42 AM
Parameters:
sourceNodeRef - the node reference used as the source of the copy
targetParentNodeRef - the intended parent of the new node
assocTypeQName - the type of the new child assoc
assocQName - the qualified name of the child association from the parent to the new node
copyChildren - indicates that the children of the node should also be copied
Returns:
the new node reference
public void copyNode(String refSource, String parentRef, boolean copyChildren) {
Reference sourceNodeRef = getReference(refSource);
ParentReference parentReference = new ParentReference(sourceNodeRef.getStore(), sourceNodeRef.getUuid(), sourceNodeRef.getPath(),Constants.ASSOC_CONTAINS, Constants.ASSOC_CHILDREN);
CMLCopy copy = new CMLCopy(parentReference, parentRef, Constants.ASSOC_CONTAINS, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "copy"), null, null, copyChildren);
//…
}
09-13-2011 11:48 AM
09-13-2011 12:14 PM
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.