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 Summary
Fields Modifier and Type Field Description static java.lang.String
METADATA_OBJECT_GROUP_ID
static java.lang.String
PURGE_UNIT
-
Constructor Summary
Constructors Constructor Description PurgeUnitRepository(MongoDbAccess mongoDbAccess)
PurgeUnitRepository(MongoDbAccess mongoDbAccess, java.lang.String collectionName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bulkAppendReport(java.util.List<PurgeUnitModel> reports)
com.mongodb.client.MongoCursor<org.bson.Document>
computeOwnAccessionRegisterDetails(java.lang.String processId, int tenantId)
Compute Own AccessionRegisterDetailsvoid
deleteReportByIdAndTenant(java.lang.String processId, int tenantId)
com.mongodb.client.MongoCursor<java.lang.String>
distinctObjectGroupOfDeletedUnits(java.lang.String processId, int tenantId)
Aggregation on distinct objectGroupId, with status DELETEDcom.mongodb.client.MongoCursor<org.bson.Document>
findCollectionByProcessIdTenant(java.lang.String processId, int tenantId)
-
Methods inherited from class fr.gouv.vitam.batch.report.rest.repository.ReportCommonRepository
bulkAppendReport, deleteReportByIdAndTenant
-
-
-
-
Field Detail
-
PURGE_UNIT
public static final java.lang.String PURGE_UNIT
- See Also:
- Constant Field Values
-
METADATA_OBJECT_GROUP_ID
public static final java.lang.String METADATA_OBJECT_GROUP_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PurgeUnitRepository
public PurgeUnitRepository(MongoDbAccess mongoDbAccess, java.lang.String collectionName)
-
PurgeUnitRepository
public PurgeUnitRepository(MongoDbAccess mongoDbAccess)
-
-
Method Detail
-
bulkAppendReport
public void bulkAppendReport(java.util.List<PurgeUnitModel> reports)
-
findCollectionByProcessIdTenant
public com.mongodb.client.MongoCursor<org.bson.Document> findCollectionByProcessIdTenant(java.lang.String processId, int tenantId)
-
deleteReportByIdAndTenant
public void deleteReportByIdAndTenant(java.lang.String processId, int tenantId)
-
distinctObjectGroupOfDeletedUnits
public com.mongodb.client.MongoCursor<java.lang.String> distinctObjectGroupOfDeletedUnits(java.lang.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(java.lang.String processId, int tenantId)
Compute Own AccessionRegisterDetails
-
-