}
private SearchExecutionCourseLogBean readSearchBean(HttpServletRequest request, ExecutionCourse executionCourse) {
ExecutionCourse course = getExecutionCourse(request);
if (course != null) {
SearchExecutionCourseLogBean seclb = new SearchExecutionCourseLogBean(course);
String viewPhoto = request.getParameter("viewPhoto");
if (viewPhoto != null && viewPhoto.equalsIgnoreCase("true")) {
seclb.setViewPhoto(true);
} else {
seclb.setViewPhoto(false);
}
String logTypes = request.getParameter("executionCourseLogTypes");
if (logTypes != null) {
List<ExecutionCourseLogTypes> list = new ArrayList<ExecutionCourseLogTypes>();
for (String logType : logTypes.split(":")) {
list.add(ExecutionCourseLogTypes.valueOf(logType));
}
seclb.setExecutionCourseLogTypes(list);
}
String professorships = request.getParameter("professorships");
if (professorships != null) {
List<Professorship> list = new ArrayList<Professorship>();
for (String professorship : professorships.split(":")) {
list.add(FenixFramework.<Professorship> getDomainObject(professorship));
}
seclb.setProfessorships(list);
}
String months = request.getParameter("months");
if (months != null) {
List<Month> list = new ArrayList<Month>();
for (String month : months.split(":")) {
list.add(Month.fromInt(Integer.valueOf(month).intValue()));
}
seclb.setMonths(list);
}
return seclb;
} else {
return new SearchExecutionCourseLogBean(executionCourse);
}
}