コード例 #1
0
    public SIBSOutgoingPaymentFileDataBean() {
      SIBSOutgoingPaymentFile lastSuccessfulSent =
          SIBSOutgoingPaymentFile.readLastSuccessfulSentPaymentFile();

      lastOutgoingPaymentFileSent =
          lastSuccessfulSent != null ? lastSuccessfulSent.getSuccessfulSentDate() : new DateTime();
    }
コード例 #2
0
  public ActionForward setSuccessfulSentPaymentsFileDate(
      ActionMapping mapping,
      ActionForm actionForm,
      HttpServletRequest request,
      HttpServletResponse response) {
    SIBSOutgoingPaymentFile paymentFile = getPaymentFileDataBeanFromViewState().getPaymentFile();
    paymentFile.markAsSuccessfulSent(
        getPaymentFileDataBeanFromViewState().getLastOutgoingPaymentFileSent());

    return listOutgoingPaymentsFile(mapping, actionForm, request, response);
  }
コード例 #3
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");
  }