This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ctxt = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); | |
var contentService = ctxt.getBean('contentService', Packages.org.alfresco.service.cmr.repository.ContentService); | |
var inputStream = contentService.getReader( | |
new org.alfresco.service.cmr.repository.NodeRef(document.nodeRef), | |
org.alfresco.service.namespace.QName.createQName(org.alfresco.service.namespace.NamespaceService.CONTENT_MODEL_1_0_URI, "content")).getContentInputStream(); | |
var base64Content = java.util.Base64.getEncoder().encodeToString(org.apache.commons.io.IOUtils.toByteArray(inputStream)); | |
logger.log(base64Content); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "1a503b3a-0f92-4c6b-bc32-51cbee05616a", | |
"name": "CMIS Browser", | |
"description": "CMIS Broser sample catalog.", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Get Repositories Information", |