As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
I would like to use Alfresco REST API WebScript method in my Java code.
For example there is method getNodeContent: https://api-explorer.alfresco.com/api-explorer/#!/nodes/getNodeContent
I need to wrap Alfresco out-of-the-box WebScript with custom functionality. But I cannot find how to call Java method that is used by REST API.
If all you need is the content of given node then you can refer Alfresco documentation on given link.
contentService.getReader(nodeRef, ContentModel.PROP_CONTENT);
The above method will return content for the node which you pass to the method.