return prepareExecuteViewMobilityQuota(mapping, form, request, response, null);
}
public ActionForward prepareExecuteViewMobilityQuota(final ActionMapping mapping, final ActionForm form,
final HttpServletRequest request, final HttpServletResponse response, final MobilityProgram program) {
ErasmusVacancyBean erasmusVacancyBean = new ErasmusVacancyBean(program);
request.setAttribute("erasmusVacancyBean", erasmusVacancyBean);
MobilityApplicationProcess process = getProcess(request);
if (erasmusVacancyBean.getMobilityProgram() != null) {
List<MobilityQuota> mobilityQuotasByProgram =
process.getApplicationPeriod().getMobilityQuotasByProgram(erasmusVacancyBean.getMobilityProgram());
request.setAttribute("quotas", mobilityQuotasByProgram);
}
return mapping.findForward("view-university-agreements");
}