The contents you find here are totally obsolete so do not use this website to obtain a solution for your issues: the indications you get from here will not be accurate and may lead to data loss or other mayor problems

Get rendition thumbnail cmis

Do you want to create a native client or integrate with third party applications: webservices are the solution.

Moderator: car031

tamires
Posts: 8
Joined: Mon May 27, 2019 1:29 pm

Get rendition thumbnail cmis

Thu Jun 27, 2019 3:09 pm

Hi,

I trying get thumbnail using with cmis, but return null.

Code: Select all

public void getThumbnail(String id) {
		
			OperationContext context = session.createOperationContext();
			context.setRenditionFilterString("cmis:thumbnail");
			context.setCacheEnabled(true);
			CmisObject object= session.getObject(id, context);
			Document document = (Document)object;
			Rendition rendention = (Rendition)document.getRenditions();
			System.out.println(rendention);
		}
agaspa
Posts: 714
Joined: Tue Apr 20, 2010 8:24 am

Re: Get rendition thumbnail cmis

Thu Jul 18, 2019 2:20 pm

Hi @tamires,
it would be possible, but currently the implementation of method getRenditions just returns an empty collection.
Of course you can implement this by yourself, you should modify the class com.logicaldoc.cmis.LDCmisService in module logicaldoc-cmis and provide a useful implementation of method

Code: Select all

public List<RenditionData> getRenditions(String repositoryId, String objectId, String renditionFilter,
			BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) 
You can get the source code from SourceForge
https://sourceforge.net/projects/logica ... p/download
tamires
Posts: 8
Joined: Mon May 27, 2019 1:29 pm

Re: Get rendition thumbnail cmis

Thu Jul 18, 2019 2:57 pm

Thanks @agaspa.

Return to “Web Services”

Who is online

Users browsing this forum: No registered users and 4 guests

× Attention! This forum has been dismissed and will be soon removed. The contents you find here are totally obsolete so do not use this website to obtain a solution for your issues: the indications you get from here will not be accurate and may lead to data loss or other mayor problems.