Class PurgeUnitRepository
java.lang.Object
fr.gouv.vitam.batch.report.rest.repository.ReportCommonRepository
fr.gouv.vitam.batch.report.rest.repository.PurgeUnitRepository
ReportRepository
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPurgeUnitRepository
(MongoDbAccess mongoDbAccess) PurgeUnitRepository
(MongoDbAccess mongoDbAccess, String collectionName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bulkAppendReport
(List<PurgeUnitModel> reports) com.mongodb.client.MongoCursor<org.bson.Document>
computeOwnAccessionRegisterDetails
(String processId, int tenantId) Compute Own AccessionRegisterDetailsvoid
deleteReportByIdAndTenant
(String processId, int tenantId) com.mongodb.client.MongoCursor<String>
distinctObjectGroupOfDeletedUnits
(String processId, int tenantId) Aggregation on distinct objectGroupId, with status DELETEDcom.mongodb.client.MongoCursor<org.bson.Document>
findCollectionByProcessIdTenant
(String processId, int tenantId) Methods inherited from class fr.gouv.vitam.batch.report.rest.repository.ReportCommonRepository
bulkAppendReport, deleteReportByIdAndTenant
-
Field Details
-
PURGE_UNIT
- See Also:
-
METADATA_OBJECT_GROUP_ID
- See Also:
-
-
Constructor Details
-
PurgeUnitRepository
-
PurgeUnitRepository
-
-
Method Details
-
bulkAppendReport
-
findCollectionByProcessIdTenant
public com.mongodb.client.MongoCursor<org.bson.Document> findCollectionByProcessIdTenant(String processId, int tenantId) -
deleteReportByIdAndTenant
-
distinctObjectGroupOfDeletedUnits
public com.mongodb.client.MongoCursor<String> distinctObjectGroupOfDeletedUnits(String processId, int tenantId) Aggregation on distinct objectGroupId, with status DELETED- Parameters:
processId
- processIdtenantId
- tenantId- Returns:
- cursor over distinct objectGroupId
-
computeOwnAccessionRegisterDetails
public com.mongodb.client.MongoCursor<org.bson.Document> computeOwnAccessionRegisterDetails(String processId, int tenantId) Compute Own AccessionRegisterDetails
-