コード例 #1
0
  @EntryPoint
  public ActionForward listOutgoingPaymentsFile(
      ActionMapping mapping,
      ActionForm actionForm,
      HttpServletRequest request,
      HttpServletResponse response) {

    request.setAttribute(
        "sibsOutgoingPaymentFiles", SIBSOutgoingPaymentFile.readGeneratedPaymentFiles());
    request.setAttribute(
        "sibsOutgoingPaymentQueueJobs",
        SIBSOutgoingPaymentQueueJob.readAllSIBSOutgoingPaymentQueueJobs());
    request.setAttribute(
        "canLaunchJob", !SIBSOutgoingPaymentQueueJob.hasExportationQueueJobToRun());

    return mapping.findForward("list-outgoing-payment-files");
  }
コード例 #2
0
  public ActionForward launchOutgoingPaymentsFileCreation(
      ActionMapping mapping,
      ActionForm actionForm,
      HttpServletRequest request,
      HttpServletResponse response) {
    SIBSOutgoingPaymentQueueJob.launchJob(
        getPaymentFileDataBeanFromViewState().getLastOutgoingPaymentFileSent());

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