CSSDK Retreive CSHole Directory from STAGING
Hi
I am trying to retreive files and subdirectories, with CSSDK, on a directory that has been deleted and submited. I looked in CCPro the versions is disable even if there is 85 versions
If did this and it return me only the last version on a directory that has been deleted and Staged
but on a CSHole File it returns me all the versions
CSFile[] files = client.getFile(fileVPath).getFileRevisionHistory(9999999);
Is there a way to retrieve those files or they are gone for good
Thanks
0
Comments
-
Just in case someone want to do the same
CSVPath vpath = new CSVPath(path); CSFile file = client.getFile(vpath); if (file.getKind() == CSHole.KIND) { CSHole hole = (CSHole) file; if(hole.getPreviousKind() == CSDir.KIND) { CSBranch branch = hole.getRevisionBranch(); CSEdition[] editions = branch.getEditions(true, false, 999999); CSEdition edition = null;; for (CSEdition ed : editions) { if (hole.getCreationDate().getTime() > ed.getCreationDate().getTime()) { edition = ed; break; } } return edition; }
0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.