Class EvidenceAuditReportRepository
- java.lang.Object
-
- fr.gouv.vitam.batch.report.rest.repository.ReportCommonRepository
-
- fr.gouv.vitam.batch.report.rest.repository.EvidenceAuditReportRepository
-
public class EvidenceAuditReportRepository extends ReportCommonRepository
EvidenceAuditReportRepository
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEVIDENCE_AUDIT
-
Constructor Summary
Constructors Constructor Description EvidenceAuditReportRepository(MongoDbAccess mongoDbAccess)EvidenceAuditReportRepository(MongoDbAccess mongoDbAccess, java.lang.String collectionName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbulkAppendReport(java.util.List<EvidenceAuditObjectModel> reports)Appends report items to databaseReportResultscomputeVitamResults(java.lang.String processId, java.lang.Integer tenantId)Compute the number of OK, WARNING, and KOvoiddeleteReportByIdAndTenant(java.lang.String processId, int tenantId)delete the report at finalization Stepcom.mongodb.client.MongoCursor<org.bson.Document>findCollectionByProcessIdTenant(java.lang.String processId, int tenantId)Retrieve all report mongo document for a reportcom.mongodb.client.MongoCursor<org.bson.Document>findCollectionByProcessIdTenantAndStatus(java.lang.String processId, int tenantId, java.lang.String... status)Retrieve report mongo document for a report filtered by defined statusesEvidenceAuditStatsModelstats(java.lang.String processId, int tenantId)Generate statistics of evidence audit report-
Methods inherited from class fr.gouv.vitam.batch.report.rest.repository.ReportCommonRepository
bulkAppendReport, deleteReportByIdAndTenant
-
-
-
-
Field Detail
-
EVIDENCE_AUDIT
public static final java.lang.String EVIDENCE_AUDIT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EvidenceAuditReportRepository
public EvidenceAuditReportRepository(MongoDbAccess mongoDbAccess, java.lang.String collectionName)
-
EvidenceAuditReportRepository
public EvidenceAuditReportRepository(MongoDbAccess mongoDbAccess)
-
-
Method Detail
-
bulkAppendReport
public void bulkAppendReport(java.util.List<EvidenceAuditObjectModel> reports)
Appends report items to database- Parameters:
reports- report items
-
deleteReportByIdAndTenant
public void deleteReportByIdAndTenant(java.lang.String processId, int tenantId)delete the report at finalization Step- Parameters:
processId- the process idtenantId- the tenantId id
-
computeVitamResults
public ReportResults computeVitamResults(java.lang.String processId, java.lang.Integer tenantId)
Compute the number of OK, WARNING, and KO- Parameters:
processId- the process idtenantId- the tenantId id
-
findCollectionByProcessIdTenant
public com.mongodb.client.MongoCursor<org.bson.Document> findCollectionByProcessIdTenant(java.lang.String processId, int tenantId)Retrieve all report mongo document for a report- Parameters:
processId- processIdtenantId- tenantId- Returns:
- mongo cursor of report documents
-
findCollectionByProcessIdTenantAndStatus
public com.mongodb.client.MongoCursor<org.bson.Document> findCollectionByProcessIdTenantAndStatus(java.lang.String processId, int tenantId, java.lang.String... status)Retrieve report mongo document for a report filtered by defined statuses- Parameters:
processId- processIdtenantId- tenantIdstatus- statuses- Returns:
- mongo cursor of report documents
-
stats
public EvidenceAuditStatsModel stats(java.lang.String processId, int tenantId)
Generate statistics of evidence audit report- Parameters:
processId- processIdtenantId- tenantId- Returns:
- statistics of evidence audit report
-
-