String studentGroupCodeString = request.getParameter("studentGroupCode");
String shiftCodeString = request.getParameter("shiftCode");
String groupPropertiesCodeString = request.getParameter("groupPropertiesCode");
InfoSiteStudentGroup viewStudentGroup;
try {
Integer type =
VerifyGroupingAndStudentGroupWithoutShift.run(studentGroupCodeString, groupPropertiesCodeString,
shiftCodeString, userView.getUsername());
viewStudentGroup = ReadStudentGroupInformation.run(studentGroupCodeString);
request.setAttribute("ShiftType", type);
} catch (ExistingServiceException e) {
ActionErrors actionErrors = new ActionErrors();
ActionError error = null;
error = new ActionError("error.noProject");
actionErrors.add("error.noProject", error);
saveErrors(request, actionErrors);
return mapping.findForward("viewExecutionCourseProjects");
} catch (InvalidSituationServiceException e) {
ActionErrors actionErrors = new ActionErrors();
ActionError error = null;
error = new ActionError("error.noGroup");
actionErrors.add("error.noGroup", error);
saveErrors(request, actionErrors);
return mapping.findForward("viewShiftsAndGroups");
} catch (InvalidArgumentsServiceException e) {
ActionErrors actionErrors = new ActionErrors();
ActionError error = null;
error = new ActionError("error.StudentGroupShiftIsChanged");
actionErrors.add("error.StudentGroupShiftIsChanged", error);
saveErrors(request, actionErrors);
return mapping.findForward("viewShiftsAndGroups");
} catch (FenixServiceException e) {
throw new FenixActionException(e);
}
InfoSiteStudentGroup infoSiteStudentGroup = viewStudentGroup;
request.setAttribute("infoSiteStudentGroup", infoSiteStudentGroup);
List<InfoExportGrouping> infoExportGroupings = ReadExportGroupingsByGrouping.run(groupPropertiesCodeString);
request.setAttribute("infoExportGroupings", infoExportGroupings);