01-02-2010 06:15 PM
NodeRef parent = nodeService.getPrimaryParent(actionedUponNodeRef).getParentRef();
Map<QName, Serializable> props = new TreeMap<QName, Serializable>();
props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "name"), "test dump");
props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "title"), "testing node create");
props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "author"), "Glenn");
props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "description"), "test description");
nodeService.createNode(parent,
ContentModel.ASSOC_CHILDREN,
QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "test dump"),
QName.createQName("kato.model", "criteria"),
props);NodeRef parent = nodeService.getRootNode(Repository.getStoreRef());01-04-2010 06:29 PM
01-06-2010 12:24 AM
NodeRef parent = nodeService.getPrimaryParent(actionedUponNodeRef).getParentRef();
props = new TreeMap<QName, Serializable>();
props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "name"), "test dump");
props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "title"), "testing node create");
props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "author"), "Glenn");
props.put(QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "description"), "test description");
ChildAssociationRef td = nodeService.createNode(parent,
ContentModel.ASSOC_CONTAINS,
QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "test dump"),
QName.createQName("kato.model", "criteria"),
props);
ContentWriter writer = contentService.getWriter(td.getChildRef(), ContentModel.PROP_CONTENT, true);
writer.putContent("test content");
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.