return mapping.findForward("searchRequests");
}
private Set<RegistrationAcademicServiceRequest> search(DegreeByExecutionYearBean degreeSearchBean,
DocumentRequestSearchBean requestSearchBean) {
final ExecutionYear chosenExecutionYear = degreeSearchBean.getExecutionYear();
Set<RegistrationAcademicServiceRequest> resultList =
new TreeSet<RegistrationAcademicServiceRequest>(
RegistrationAcademicServiceRequest.COMPARATOR_BY_SERVICE_REQUEST_NUMBER_AND_ID);
ArrayList<AcademicServiceRequest> requestList = new ArrayList<AcademicServiceRequest>();
requestList.addAll(AcademicServiceRequestYear.getAcademicServiceRequests(chosenExecutionYear.getBeginCivilYear()));
requestList.addAll(AcademicServiceRequestYear.getAcademicServiceRequests(chosenExecutionYear.getEndCivilYear()));
return filterResults(degreeSearchBean, requestSearchBean, resultList, requestList);
}