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;
}
import org.splat.dal.bo.som.Scenario;
import org.splat.dal.bo.som.SimulationContext;
import org.splat.dal.bo.som.Study;
+import org.splat.dal.bo.som.Study.Properties;
import org.splat.dal.bo.som.ValidationCycle;
+import org.splat.dal.bo.som.ValidationCycle.Actor;
import org.splat.dal.bo.som.ValidationCycleRelation;
import org.splat.dal.bo.som.ValidationStep;
import org.splat.dal.bo.som.Visibility;
-import org.splat.dal.bo.som.Study.Properties;
-import org.splat.dal.bo.som.ValidationCycle.Actor;
import org.splat.dal.dao.som.DescriptionAttributeDAO;
import org.splat.dal.dao.som.DocumentDAO;
import org.splat.dal.dao.som.IDBuilderDAO;
import org.splat.service.dto.StudyFacadeDTO;
import org.splat.service.technical.IndexService;
import org.splat.service.technical.ProjectSettingsService;
+import org.splat.service.technical.ProjectSettingsService.Step;
import org.splat.service.technical.ProjectSettingsServiceImpl;
import org.splat.service.technical.RepositoryService;
-import org.splat.service.technical.ProjectSettingsService.Step;
import org.splat.som.Revision;
import org.springframework.transaction.annotation.Transactional;
resultPath = pathToFile.substring(0, pathToFile.indexOf("vault")) + "downloads" + File.separator + userName + File.separator + "ComparisonResult.pdf";
- XYSeries series = new XYSeries("Study: " + docDTO.getStudyTitle() + " Scenario: " + docDTO.getScenarioTitle());
+ XYSeries series = new XYSeries("Study: " + docDTO.getStudyTitle() + " Scenario: " + docDTO.getScenarioTitle() + "Document: " + docDTO.getDocumentTitle());
//read the file and get points information.
try {
* Scenario title.
*/
private String _scenarioTitle;
+ /**
+ * Document title.
+ */
+ private String _documentTitle;
/**
* Path to comparable file in vault.
*/
public void setScenarioTitle(final String scenarioTitle) {
_scenarioTitle = scenarioTitle;
}
+ /**
+ * Get the documentTitle.
+ * @return the documentTitle
+ */
+ public String getDocumentTitle() {
+ return _documentTitle;
+ }
+ /**
+ * Set the documentTitle.
+ * @param documentTitle the documentTitle to set
+ */
+ public void setDocumentTitle(final String documentTitle) {
+ _documentTitle = documentTitle;
+ }
/**
* Get the pathToFile.
* @return the pathToFile