Cannot get thumbnails with CMIS object/automation client!

I am new to nuxeo. I want list of thumbnails of all the documents stored in nuxeo. I can fetch the documents and and its related properties. I can see that one of the facet element is"Thumbnail” in facets. I need the java code to fetch the thumbnails. I have used CMIS object as well as automation client to fetch all the documents and its properties. Using Document.Fetch and passing document id to the query i get the document:

Document document = (Document) session.newRequest(“Document.Fetch”)

                .set("value", documentId).execute();

PropertyMap map = document.getProperties();

In this way I get the document properties.

But when I use :

Document doc = (Document) session.newRequest(“Document.Fetch”).setHeader(Constants.HEADER_NX_SCHEMAS, “thumbnail”).set(“value”,“/default-domain/workspaces/whitelabel/Img1001”).execute();

doc.getProperties will fetch thumb:thumbnail = null

how do i get thumbnail for a document?

0 votes

0 answers