12-21-2012 04:37 AM
NodeRef nodeRef = new NodeRef(stringNodeRef);
VersionHistory versionHistory = versionService.getVersionHistory(nodeRef);
Collection<Version> versions = versionHistory.getAllVersions();
Iterator<Version> iterator = versions.iterator();
while (iterator.hasNext()) {
Version version = iterator.next();
NodeRef versionNodeRef = version.getVersionedNodeRef();
taggingService.addTag(versionNodeRef, "new tag version " + version.getVersionLabel());
QName qname = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "description");
nodeService.setProperty(versionNodeRef, qname, "Description version " + version.getVersionLabel());
}
12-21-2012 06:22 AM
12-21-2012 06:43 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.