protected Map<String,Object> referenceData(HttpServletRequest pRequest) throws Exception {
Map<String,Object> resultMap = new HashMap<String,Object>();
Study study = ControllerUtil.findStudy(pRequest, getStudyService());
Submission submission = study.getSubmission();
java.util.Date creationDate = submission.getCreateDate();
if (creationDate != null) {
String initiatedDate = DateFormat.getDateInstance(DateFormat.LONG).format(creationDate);
resultMap.put("initiatedDate", initiatedDate);
} else {
resultMap.put("initiatedDate", null);
}
resultMap.put("submissionNumber", submission.getSubmissionNumber());
resultMap.put("submission", submission);
resultMap.put("studyStatus", study.getStudyStatus().getDescription());
// Collection<Analysis> anacoll = study.getAnalysesReadOnly();
// resultMap.put("analysisCollection", anacoll);
// This line and below, I have taken the code from Lucie's
// DisplayAnalysisController's handleRequest method. The Analysis shown here
// as part of the summary is essentially identical to the Analysis section details as read
// only mode.
StudyCommand studyCommand = new StudyCommand();
// copy study information
studyCommand.setStudy(study);
// study from TBI do not contain submission_id
if (submission != null) {
studyCommand.setSubmission_id(submission.getId());
}
List<Analysis> analysisList = study.getAnalyses();
List<AnalysisCommand> analysisCommandList = new ArrayList<AnalysisCommand>();