06-28-2012 01:23 AM
06-28-2012 05:11 AM
VersionHistory versionHistory = versionService.getVersionHistory(nodeRef);
Version version = null;
if(myVersionString != null && !myVersionString.equals(""))
{
//if you know the version
version = versionHistory.getVersion(myVersionString);
}
else
{
for(Version currentVersion : versionHistory.getAllVersions)
{
if(… whatever your condition is …)
{
version = currentVersion;
break;
}
}
}
if(version != null)
{
// Get the nodeRef of the version
NodeRef versionNodeRef = version.getFrozenStateNodeRef();
// Create the association
}
06-28-2012 09:12 PM
06-29-2012 03:50 AM
09-03-2015 05:46 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.