I was trying to do a Rendition to a document in my repository but can't found an example on how to do it, all I could find was this class (org.apache.chemistry.opencmis.client.runtime.RenditionImpl.RenditionImpl) :
Rendition newRendition = new RenditionImpl(session, objectId, streamId, renditionDocumentId, kind,
length, mimeType, title, height, width);
and I don't have much of those parameters, just the file and the objectId, plus can't found a method to add the rendition, having the document's instance there's a method:
documento.getRenditions();
but don't know if a .add() will work,
does anybody know how to do it?
Aucun commentaire:
Enregistrer un commentaire