09-26-2013 08:59 AM
09-26-2013 12:26 PM
org.apache.chemistry.opencmis.client.api.Session.delete(ObjectId,false) method
org.apache.chemistry.opencmis.client.api.Document.delete(false) method
AlfrescoDocument document = (AlfrescoDocument) session
.getObjectByPath("/TESTFOLDER1/20130822.doc");
List<Document> versions = document.getAllVersions();
for(int i=0;i<versions.size();i++){
Document version = versions.get(i);
if("1.1".equals(version.getVersionLabel())){
version.delete(false);
}
}
01-27-2014 02:26 AM
01-27-2014 10:23 AM
AlfrescoDocument document = (AlfrescoDocument) session.getObjectByPath("/TESTFOLDER1/20130822.doc");
List<Document> versions = document.getAllVersions();
for(int i=0;i<versions.size();i++){
Document version = versions.get(i);
if("1.1".equals(version.getVersionLabel())){
version.delete(false);
}
}
01-29-2014 06:33 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.