Class PurgeUnitRepository

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

public class PurgeUnitRepository extends ReportCommonRepository
ReportRepository
  • Field Details

  • Constructor Details

    • PurgeUnitRepository

      public PurgeUnitRepository(MongoDbAccess mongoDbAccess, String collectionName)
    • PurgeUnitRepository

      public PurgeUnitRepository(MongoDbAccess mongoDbAccess)
  • Method Details

    • bulkAppendReport

      public void bulkAppendReport(List<PurgeUnitModel> reports)
    • findCollectionByProcessIdTenant

      public com.mongodb.client.MongoCursor<org.bson.Document> findCollectionByProcessIdTenant(String processId, int tenantId)
    • deleteReportByIdAndTenant

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

      public com.mongodb.client.MongoCursor<String> distinctObjectGroupOfDeletedUnits(String processId, int tenantId)
      Aggregation on distinct objectGroupId, with status DELETED
      Parameters:
      processId - processId
      tenantId - tenantId
      Returns:
      cursor over distinct objectGroupId
    • computeOwnAccessionRegisterDetails

      public com.mongodb.client.MongoCursor<org.bson.Document> computeOwnAccessionRegisterDetails(String processId, int tenantId)
      Compute Own AccessionRegisterDetails