Trash a Document using java-client
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.
Document docPresence = nuxeoClient.repository().fetchDocumentByPath(path); docPresence.trash() solved my question