Class PurgeUnitRepository

    • Field Detail

      • 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 - processId
        tenantId - 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