Exemplo n.º 1
0
    public SIBSOutgoingPaymentFileDataBean() {
      SIBSOutgoingPaymentFile lastSuccessfulSent =
          SIBSOutgoingPaymentFile.readLastSuccessfulSentPaymentFile();

      lastOutgoingPaymentFileSent =
          lastSuccessfulSent != null ? lastSuccessfulSent.getSuccessfulSentDate() : new DateTime();
    }
Exemplo n.º 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);
  }
Exemplo n.º 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");
  }