03-20-2006 10:34 AM
03-20-2006 01:07 PM
03-21-2006 06:19 AM
public String saveAsNewVersion() {
NodeRef nodeRef2 = this.browseBean.getDocument().getNodeRef();
Map<String, Object> props = this.editableNode.getProperties();
Map<QName, Serializable> properties2 = this.nodeService
.getProperties(nodeRef2);
Map<String, Serializable> properties3 = new HashMap<String, Serializable>();
for (Entry<QName, Serializable> e : properties2.entrySet()) {
properties3.put(e.getKey().toString(), e.getValue());
}
this.browseBean.setDocument(new Node(this.versionService.createVersion(
nodeRef2, properties3).getFrozenStateNodeRef()));
return this.save();
}
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.