03-31-2014 05:00 AM
protected NodeRef createContentNode(NodeRef parent, String name, String text) {
// Create a map to contain the values of the properties of the node
Map<QName, Serializable> props = new HashMap<QName, Serializable>();
props.put(ContentModel.PROP_NAME, name);
props.put(ContentModel.PROP_CONTENT, text);
// use the node service to create a new node
NodeRef node = this.nodeService.createNode(
parent,
ContentModel.ASSOC_CONTAINS,
QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, name),
ContentModel.TYPE_CONTENT, props).getChildRef();
return node;
}
03-31-2014 05:52 AM
03-31-2014 09:20 AM
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.