public ActionForward createNewExportationCandidaciesForPasswordGenerationProcess( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { DgesBaseProcessBean bean = getRenderedBean(); RenderUtils.invalidateViewState("importation.bean"); RenderUtils.invalidateViewState("importation.bean.edit"); DgesBaseProcessLauncher.launchExportationCandidaciesForPasswordGeneration( bean.getExecutionYear(), bean.getPhase()); return list(mapping, form, request, response); }
public ActionForward createNewImportationProcess( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DgesBaseProcessBean bean = getRenderedBean(); RenderUtils.invalidateViewState("importation.bean"); RenderUtils.invalidateViewState("importation.bean.edit"); byte[] contents = bean.consumeStream(); DgesStudentImportationFile file = DgesStudentImportationFile.create( contents, bean.getFilename(), bean.getExecutionYear(), bean.getCampus(), bean.getPhase()); DgesBaseProcessLauncher.launchImportation( bean.getExecutionYear(), bean.getCampus(), bean.getPhase(), file); return list(mapping, form, request, response); }