class EvidenceAuditReportRepository extends ReportCommonRepository {

    public EvidenceAuditStatsModel stats(String processId, int tenantId) {
        Bson eqProcessId = eq(EvidenceAuditObjectModel.PROCESS_ID, processId);
        Bson eqTenant = eq(EvidenceAuditObjectModel.TENANT, tenantId);

        EvidenceAuditFullStatusCount globalResults =
            new EvidenceAuditFullStatusCount(new EvidenceAuditStatusCount(), new EvidenceAuditStatusCount(),
                new EvidenceAuditStatusCount());

        getNbObjects(match(and(eqProcessId, eqTenant)), globalResults);
        getMetadataTypeStats(globalResults, eqProcessId, eqTenant);
        return
            new EvidenceAuditStatsModel(globalResults.getObjectGroupsCount().getTotal(),
                globalResults.getUnitsCount().getTotal(), globalResults.getObjectsCount().getTotal(), globalResults);

    }

    @VisibleForTesting public  EvidenceAuditReportRepository(MongoDbAccess mongoDbAccess, String collectionName);
    public  EvidenceAuditReportRepository(MongoDbAccess mongoDbAccess);

}