Trash a Document using java-client
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2019 12:59 AM
Hi,
How do I trash a document before it is deleted using nuxeo java client. I have used nuxeoClient.repository().deleteDocument(docId); method which delets the document permanently but I wanted to trash the document first before deleting permanently. Any idea how it can be done.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2019 04:39 AM
Document docPresence = nuxeoClient.repository().fetchDocumentByPath(path); docPresence.trash() solved my question
