If we use IDfId checkin(boolean keepLock,
String versionLabels)
throws DfException
method, we get new version of IDfSysObject
. How can I remove the latest version and get back to the previous version?
EMC Documentum: Get previous version of IDfSysObject
3.4k views Asked by Yegoshin Maxim At
2
There are 2 answers
1
On
If you wish to keep the latest then you can check out the latest version, read the contents of the previous version in a ByteArrayOutputStream
using the getContent()
method and set that content to the latest version, using setContent()
.
Or if you do not wish to keep the latest version you user the IDfPersistentObject.destroy()
method for the object to delete the only latest version so the previous version will become current.
To revert to a previous major version You need to do the following:
save modified IDfPersistentObject
get all IDfPersistentObject with R_VERSION_LABEL > than your new current version