import org.splat.exception.InvalidParameterException;
import org.splat.kernel.MismatchException;
import org.splat.service.PublicationService;
+import org.splat.service.StudyComparisonService;
import org.splat.service.dto.DocToCompareDTO;
import org.splat.service.dto.StudyFacadeDTO;
import org.splat.wapp.Constants;
*/
private PublicationService _publicationService;
+ /**
+ * Injected study comparison service.
+ */
+ private StudyComparisonService _studyComparisonService;
+
/**
* If true, "incompatible data" message will be displayed..
*/
initializationScreenContext(Constants.STUDY_MENU, Constants.BACK);
getTitleBarSettings().setEditDisabledProperty(Constants.TRUE);
String res = SUCCESS;
- _studyList = getStudyService().getComparableStudies(getOpenStudy().getUser().getIndex());
+ _studyList = getStudyComparisonService().getComparableStudies(getOpenStudy().getUser().getIndex());
return res;
}
for(Long id : _documentsToCompareIds) {
docsList.add(_publicationService.getDocToCompareDTO(id.longValue()));
}
- String resultPath = getStudyService().compare(docsList, getConnectedUser().getUsername());
+ String resultPath = getStudyComparisonService().compare(docsList, getConnectedUser().getUsername());
File file = new File(resultPath);
_resultInputStream = new FileInputStream(file);
res = SUCCESS;
public void setErrorMessage(final Boolean errorMessage) {
_errorMessage = errorMessage;
}
+
+ /**
+ * Get the studyComparisonService.
+ * @return the studyComparisonService
+ */
+ public StudyComparisonService getStudyComparisonService() {
+ return _studyComparisonService;
+ }
+
+ /**
+ * Set the studyComparisonService.
+ * @param studyComparisonService the studyComparisonService to set
+ */
+ public void setStudyComparisonService(
+ final StudyComparisonService studyComparisonService) {
+ _studyComparisonService = studyComparisonService;
+ }
}