Class AuditReportRepository

java.lang.Object
fr.gouv.vitam.batch.report.rest.repository.ReportCommonRepository
fr.gouv.vitam.batch.report.rest.repository.AuditReportRepository

public class AuditReportRepository extends ReportCommonRepository
AuditReportRepository
  • Field Details

  • Constructor Details

    • AuditReportRepository

      public AuditReportRepository(MongoDbAccess mongoDbAccess, String collectionName)
    • AuditReportRepository

      public AuditReportRepository(MongoDbAccess mongoDbAccess)
  • Method Details

    • bulkAppendReport

      public void bulkAppendReport(List<AuditObjectGroupModel> reports)
      Appends report items to database
      Parameters:
      reports - report items
    • deleteReportByIdAndTenant

      public void deleteReportByIdAndTenant(String processId, int tenantId)
    • computeVitamResults

      public ReportResults computeVitamResults(String processId, Integer tenantId)
    • findCollectionByProcessIdTenantAndStatus

      public com.mongodb.client.MongoCursor<org.bson.Document> findCollectionByProcessIdTenantAndStatus(String processId, int tenantId, String... status)
      Retrieve report mongo document for a report filtered by defined statuses
      Parameters:
      processId - processId
      tenantId - tenantId
      status - statuses
      Returns:
      mongo cursor of report documents
    • findCollectionByProcessIdTenant

      public com.mongodb.client.MongoCursor<org.bson.Document> findCollectionByProcessIdTenant(String processId, int tenantId)
      Retrieve all report mongo document for a report
      Parameters:
      processId - processId
      tenantId - tenantId
      Returns:
      mongo cursor of report documents
    • stats

      public AuditStatsModel stats(String processId, int tenantId)
      Generate statistics of report
      Parameters:
      processId - processId
      tenantId - tenantId
      Returns:
      statistics of report