protected void setStartInformation(ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) {
if (!hasExecutionInterval(request)) {
final List<ExecutionInterval> executionIntervals = getExecutionIntervalsWithCandidacyPeriod();
if (executionIntervals.size() == 1) {
final ExecutionInterval executionInterval = executionIntervals.iterator().next();
final List<Over23CandidacyProcess> candidacyProcesses = getCandidacyProcesses(executionInterval);
if (candidacyProcesses.size() == 1) {
final Over23CandidacyProcess process = candidacyProcesses.iterator().next();
setCandidacyProcessInformation(request, process);
setCandidacyProcessInformation(actionForm, getProcess(request));
request.setAttribute("candidacyProcesses", candidacyProcesses);
ChooseDegreeBean chooseDegreeBean = getChooseDegreeBean(request);
chooseDegreeBean.setCandidacyProcess(process);
return;
}
}
request.setAttribute("canCreateProcess", canCreateProcess(getProcessType().getName()));
request.setAttribute("executionIntervals", executionIntervals);
} else {
final ExecutionInterval executionInterval = getExecutionInterval(request);
final Over23CandidacyProcess candidacyProcess = getCandidacyProcess(request, executionInterval);
if (candidacyProcess != null) {
setCandidacyProcessInformation(request, candidacyProcess);
setCandidacyProcessInformation(actionForm, getProcess(request));