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.
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService(); ContentServiceSoapBindingStub contentService = WebServiceFactory.getContentService(); AuthoringServiceSoapBindingStub authoringService = WebServiceFactory.getAuthoringService(); //reference al nodo Node nodo = this.getNode(documentID); Reference contentReference = nodo.getReference(); Predicate itemsToCheckOut = new Predicate(new Reference[]{contentReference}, null, null); CheckoutResult checkOutResult = authoringService.checkout(itemsToCheckOut, null); // Get a reference to the working copy Reference workingCopyReference = checkOutResult.getWorkingCopies()[0]; Content[] readResult = contentService.read( itemsToCheckOut, Constants.PROP_CONTENT); Content content = readResult[0]; is = ContentUtils.getContentAsInputStream(content); return is;