Class ArtefactsToPlans


  • public class ArtefactsToPlans
    extends Object
    This task migrates the collection 'artefacts' to the collection 'plans' which has been introduced in 3.13
    • Constructor Detail

      • ArtefactsToPlans

        public ArtefactsToPlans​(com.mongodb.client.MongoCollection<org.bson.Document> artefacts,
                                PlanAccessor accessor)
      • ArtefactsToPlans

        public ArtefactsToPlans​(com.mongodb.client.MongoCollection<org.bson.Document> artefacts,
                                PlanAccessor accessor,
                                ObjectEnricher objectEnricher)
    • Method Detail

      • migrateArtefactsToPlans

        public int migrateArtefactsToPlans()
      • migrateArtefactToPlan

        public Plan migrateArtefactToPlan​(com.mongodb.BasicDBObject t)
      • migrateArtefactToPlan

        protected Plan migrateArtefactToPlan​(AtomicInteger successCount,
                                             AtomicInteger errorCount,
                                             com.mongodb.BasicDBObject t)
      • getNbPlans

        public int getNbPlans()