public SIBSOutgoingPaymentFileDataBean() { SIBSOutgoingPaymentFile lastSuccessfulSent = SIBSOutgoingPaymentFile.readLastSuccessfulSentPaymentFile(); lastOutgoingPaymentFileSent = lastSuccessfulSent != null ? lastSuccessfulSent.getSuccessfulSentDate() : new DateTime(); }
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); }
@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"); }