private void checkArguments(HttpServletRequest request, DismissalBean dismissalBean) throws FenixActionException {
if (dismissalBean.getDismissalType() == DismissalType.CURRICULAR_COURSE_CREDITS) {
if (!dismissalBean.hasAnyDismissals() && !dismissalBean.hasAnyOptionalDismissals()) {
addActionMessage("error", request, "error.studentDismissal.curricularCourse.required");
throw new FenixActionException();
}
} else if (dismissalBean.getDismissalType() == DismissalType.CURRICULUM_GROUP_CREDITS) {
if (dismissalBean.getCourseGroup() == null) {
addActionMessage("error", request, "error.studentDismissal.curriculumGroup.required");
throw new FenixActionException();
}
} else {
if (dismissalBean.getCurriculumGroup() == null) {
addActionMessage("error", request, "error.studentDismissal.curriculumGroup.required");
throw new FenixActionException();
}
}
}