コード例 #1
0
 @Override
 protected List<CandidacyDegreeBean> createCandidacyDegreeBeans(HttpServletRequest request) {
   final SecondCycleCandidacyProcess process = getProcess(request);
   final List<CandidacyDegreeBean> candidacyDegreeBeans = new ArrayList<CandidacyDegreeBean>();
   for (final SecondCycleIndividualCandidacyProcess child :
       process.getAcceptedSecondCycleIndividualCandidacies()) {
     candidacyDegreeBeans.add(new SecondCycleCandidacyDegreeBean(child));
   }
   Collections.sort(candidacyDegreeBeans);
   return candidacyDegreeBeans;
 }
コード例 #2
0
 private void writeReport(
     final SecondCycleCandidacyProcess process, final ServletOutputStream writer)
     throws IOException {
   final List<Spreadsheet> spreadsheets = new ArrayList<Spreadsheet>();
   for (final Entry<Degree, SortedSet<SecondCycleIndividualCandidacyProcess>> entry :
       process.getValidSecondCycleIndividualCandidaciesByDegree().entrySet()) {
     spreadsheets.add(buildReport(entry.getKey(), entry.getValue()));
   }
   new SpreadsheetXLSExporter().exportToXLSSheets(writer, spreadsheets);
 }
コード例 #3
0
  private Collection<IndividualCandidacyProcess> getChildsWithMissingRequiredDocuments(
      SecondCycleCandidacyProcess process) {

    return Collections2.filter(
        process.getChildsWithMissingRequiredDocuments(), CAN_EXECUTE_ACTIVITY_PREDICATE);
  }
コード例 #4
0
 protected void setCandidacyProcessInformation(
     final ActionForm actionForm, final SecondCycleCandidacyProcess process) {
   final SecondCycleCandidacyProcessForm form = (SecondCycleCandidacyProcessForm) actionForm;
   form.setSelectedProcessId(process.getExternalId());
   form.setExecutionIntervalId(process.getCandidacyExecutionInterval().getExternalId());
 }