01-01-2010 05:05 AM
ChildAssociationRef association = nodeService.createNode(parentNode,
ContentModel.ASSOC_CONTAINS, QName.createQName(
NamespaceService.CONTENT_MODEL_PREFIX, resourceName),
ContentModel.TYPE_CONTENT, contentProps);nodeService.addAspect(nodeRef, ContentModel.ASPECT_TITLED, titledProps);ContentWriter writer = contentService.getWriter(nodeRef,
ContentModel.PROP_CONTENT, true);
writer.setMimetype(MimetypeMap.MIMETYPE_TEXT_PLAIN);
writer.setEncoding("UTF-8");
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(writer
.getContentOutputStream()));
out.write("I am writing some text in node")
01-05-2010 04:40 AM
01-07-2010 10:32 AM
04-12-2010 03:27 PM
05-12-2010 04:17 PM
ContentWriter writer = contentService.getWriter(null,
ContentModel.PROP_CONTENT, true);
writer.setMimetype(MimetypeMap.MIMETYPE_TEXT_PLAIN);
writer.setEncoding("UTF-8");
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(writer
.getContentOutputStream()));
out.write("I am writing some text in node")
contentProps.put( ContentModel.PROP_CONTENT, writer.getContentData());
ChildAssociationRef association = nodeService.createNode(parentNode,
ContentModel.ASSOC_CONTAINS, QName.createQName(
NamespaceService.CONTENT_MODEL_PREFIX, resourceName),
ContentModel.TYPE_CONTENT, contentProps);
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.