Ejemplo n.º 1
0
 public ActionForward downloadRaidesSpecialization(
     ActionMapping mapping,
     ActionForm actionForm,
     HttpServletRequest request,
     HttpServletResponse response) {
   if (isRepeatedJob(
       AccessControl.getPerson(), request, getClassForParameter(request.getParameter("type")))) {
     return selectDegreeType(mapping, actionForm, request, response);
   }
   prepareNewJobResponse(
       request,
       ReportFileFactory.createRaidesSpecializationReportFile(
           getFormat(request), getDegreeType(request), getExecutionYear(request)));
   return selectDegreeType(mapping, actionForm, request, response);
 }
Ejemplo n.º 2
0
  @SuppressWarnings("unused")
  public ActionForward downloadWrittenEvaluations(
      ActionMapping mapping,
      ActionForm actionForm,
      HttpServletRequest request,
      HttpServletResponse response)
      throws IOException {
    if (isRepeatedJob(
        AccessControl.getPerson(), request, getClassForParameter(request.getParameter("type")))) {
      return selectDegreeType(mapping, actionForm, request, response);
    }
    final ExecutionYear executionYear = getExecutionYear(request);
    final String format = getFormat(request);

    prepareNewJobResponse(
        request, ReportFileFactory.createWrittenEvaluationReportFile(format, executionYear));

    return selectDegreeType(mapping, actionForm, request, response);
  }
Ejemplo n.º 3
0
  public ActionForward downloadEffectiveTeachingLoadReportFile(
      ActionMapping mapping,
      ActionForm actionForm,
      HttpServletRequest request,
      HttpServletResponse response)
      throws IOException {
    if (isRepeatedJob(
        AccessControl.getPerson(), request, getClassForParameter(request.getParameter("type")))) {
      return selectDegreeType(mapping, actionForm, request, response);
    }
    final DegreeType degreeType = getDegreeType(request);
    final ExecutionYear executionYear = getExecutionYear(request);
    final String format = getFormat(request);

    prepareNewJobResponse(
        request,
        ReportFileFactory.createEffectiveTeachingLoadReportFile(format, degreeType, executionYear));

    return selectDegreeType(mapping, actionForm, request, response);
  }