コード例 #1
0
  public ActionForward markAsTemporaryEnrolled(
      ActionMapping mapping,
      ActionForm actionForm,
      HttpServletRequest request,
      HttpServletResponse response) {
    Enrolment enrolment = readEnrolment(request);

    PreBolognaEvaluationManagement.markAsTemporaryEnrolled(enrolment);

    return prepareSetEvaluations(mapping, actionForm, request, response);
  }
コード例 #2
0
 public ActionForward prepareCurriculumValidation(
     ActionMapping mapping,
     ActionForm actionForm,
     HttpServletRequest request,
     HttpServletResponse response) {
   StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);
   request.setAttribute(
       "studentCurriculumValidationAllowed",
       PreBolognaEvaluationManagement.getEvaluationForCurriculumValidationAllowed(
           studentCurricularPlan));
   return mapping.findForward("show-curriculum-validation-options");
 }
コード例 #3
0
  public ActionForward removeEnrolmentEvaluation(
      ActionMapping mapping,
      ActionForm actionForm,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    EnrolmentEvaluation evaluationToVoid = readEnrolmentEvaluation(request);

    try {
      PreBolognaEvaluationManagement.deleteEnrolmentEvaluationCurriculumValidationContext(
          evaluationToVoid);
    } catch (DomainException de) {
      addActionMessage("error", request, de.getKey(), de.getArgs());
    }

    return prepareEditEvaluation(mapping, actionForm, request, response);
  }
コード例 #4
0
  @Override
  public ActionForward execute(
      ActionMapping mapping,
      ActionForm actionForm,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);
    if (studentCurricularPlan != null) {
      request.setAttribute(
          "studentCurriculumValidationAllowed",
          PreBolognaEvaluationManagement.getEvaluationForCurriculumValidationAllowed(
              studentCurricularPlan));
    }

    return super.execute(mapping, actionForm, request, response);
  }