11-14-2014 06:35 AM
InputStream is = contentService.getReader(nodeRef, ContentModel.PROP_CONTENT).getContentInputStream() ;
Map<String, Serializable> versionProperties = new HashMap<String, Serializable>();
versionProperties.put(VersionModel.PROP_VERSION_TYPE, VersionType.MINOR);
Version newVersion = versionService.createVersion(nodeRef, versionProperties) ;
OutputStream os = contentService.getWriter(nodeRef, ContentModel.PROP_CONTENT, true).getContentOutputStream() ;
[…]
signer.sign(is, os, […]) ;
<transaction>none</transaction>
in the webscript descriptor; if it is set to <transaction>required</transaction>
, the original version is overwritten, rather than a new one being generated.11-17-2014 05:31 AM
11-17-2014 09:40 AM
12-09-2014 06:18 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.