if(pub == null) {
throw new InvalidParameterException("id", String.valueOf(publicationId));
}
- //res.setPathToFile(_documentService.getSaveDirectory(pub.value()).getAbsolutePath());
+
+ res.setDocumentTitle(pub.value().getTitle());
res.setPathToFile(pub.value().getFile().asFile().getAbsolutePath());
- res.setScenarioTitle(pub.getOwner().getTitle()); //!!!!!
+ res.setScenarioTitle(pub.getOwner().getTitle());
res.setStudyTitle(pub.getOwnerStudy().getTitle());
return res;
}