import org.splat.kernel.InvalidPropertyException;
import org.splat.kernel.MissedPropertyException;
import org.splat.kernel.MultiplyDefinedException;
+import org.splat.service.dto.DocToCompareDTO;
/**
* This class defines all methods for creation, modification the study.
* @return true if succeeded, false if study doesn't have a description.
*/
boolean removeDescription(final Long studyId) throws InvalidParameterException;
+
+ /**
+ * Compare the studies and generate the file that contains the result chart.
+ * @param docsList the list of dtos each contains information:
+ * StudyTitle, ScenarioTitle, PathToFile in vault.
+ *
+ * @return path to result file in the vault.
+ */
+ String compare (List<DocToCompareDTO> docsList);
}
import org.splat.kernel.MissedPropertyException;
import org.splat.kernel.MultiplyDefinedException;
import org.splat.log.AppLogger;
+import org.splat.service.dto.DocToCompareDTO;
import org.splat.service.technical.IndexService;
import org.splat.service.technical.ProjectSettingsService;
import org.splat.service.technical.ProjectSettingsServiceImpl;
}
return study.removeAttribute(study.getAttribute(DescriptionAttribute.class));
}
+
+ @Override
+ public String compare (final List<DocToCompareDTO> docsList) {
+ return "Result file path";
+ }
/**
* Get project settings.
--- /dev/null
+/*****************************************************************************
+ * Company EURIWARE
+ * Application SIMAN
+ * File $Id$
+ * Creation date 06.03.2013
+ * @author Author: Maria KRUCHININA
+ * @version Revision:
+ *****************************************************************************/
+
+package org.splat.service.dto;
+
+/**
+ * DTO contains information about documents that can be compared
+ * in the frame of "Compare the Studies" operation.
+ * @author Maria KRUCHININA
+ *
+ */
+public class DocToCompareDTO {
+
+ /**
+ * Study title.
+ */
+ private String _studyTitle;
+ /**
+ * Scenario title.
+ */
+ private String _scenarioTitle;
+ /**
+ * Path to comparable file in vault.
+ */
+ private String _pathToFile;
+
+
+ /**
+ * Get the studyTitle.
+ * @return the studyTitle
+ */
+ public String getStudyTitle() {
+ return _studyTitle;
+ }
+ /**
+ * Set the studyTitle.
+ * @param studyTitle the studyTitle to set
+ */
+ public void setStudyTitle(final String studyTitle) {
+ _studyTitle = studyTitle;
+ }
+ /**
+ * Get the scenarioTitle.
+ * @return the scenarioTitle
+ */
+ public String getScenarioTitle() {
+ return _scenarioTitle;
+ }
+ /**
+ * Set the scenarioTitle.
+ * @param scenarioTitle the scenarioTitle to set
+ */
+ public void setScenarioTitle(final String scenarioTitle) {
+ _scenarioTitle = scenarioTitle;
+ }
+ /**
+ * Get the pathToFile.
+ * @return the pathToFile
+ */
+ public String getPathToFile() {
+ return _pathToFile;
+ }
+ /**
+ * Set the pathToFile.
+ * @param pathToFile the pathToFile to set
+ */
+ public void setPathToFile(final String pathToFile) {
+ _pathToFile = pathToFile;
+ }
+
+
+}