Ejemplo n.º 1
0
  @Override
  public AuditLogsForInvoicePayments getAuditLogsForInvoicePayments(
      final List<InvoicePayment> invoicePayments,
      final AuditLevel auditLevel,
      final TenantContext context) {
    final Map<UUID, List<AuditLog>> invoicePaymentsAuditLogs = new HashMap<UUID, List<AuditLog>>();
    for (final InvoicePayment invoicePayment : invoicePayments) {
      invoicePaymentsAuditLogs.put(
          invoicePayment.getId(),
          getAuditLogs(invoicePayment.getId(), ObjectType.INVOICE_PAYMENT, auditLevel, context));
    }

    return new DefaultAuditLogsForInvoicePayments(invoicePaymentsAuditLogs);
  }