Class ArtefactsToPlans


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

      Constructors 
      Constructor Description
      ArtefactsToPlans​(step.core.collections.Collection<step.core.collections.Document> artefacts, step.core.collections.Collection<step.core.collections.Document> plans)  
      ArtefactsToPlans​(step.core.collections.Collection<step.core.collections.Document> artefacts, step.core.collections.Collection<step.core.collections.Document> plans, ObjectEnricher objectEnricher)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<org.bson.types.ObjectId,​org.bson.types.ObjectId> getArtefactIdToPlanId()  
      int getNbPlans()  
      int migrateArtefactsToPlans()  
      protected step.core.collections.Document migrateArtefactToPlan​(java.util.concurrent.atomic.AtomicInteger successCount, java.util.concurrent.atomic.AtomicInteger errorCount, step.core.collections.Document t, boolean visiblePlan)  
      step.core.collections.Document migrateArtefactToPlan​(step.core.collections.Document t, boolean visiblePlan)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArtefactsToPlans

        public ArtefactsToPlans​(step.core.collections.Collection<step.core.collections.Document> artefacts,
                                step.core.collections.Collection<step.core.collections.Document> plans)
      • ArtefactsToPlans

        public ArtefactsToPlans​(step.core.collections.Collection<step.core.collections.Document> artefacts,
                                step.core.collections.Collection<step.core.collections.Document> plans,
                                ObjectEnricher objectEnricher)
    • Method Detail

      • migrateArtefactsToPlans

        public int migrateArtefactsToPlans()
      • migrateArtefactToPlan

        public step.core.collections.Document migrateArtefactToPlan​(step.core.collections.Document t,
                                                                    boolean visiblePlan)
      • migrateArtefactToPlan

        protected step.core.collections.Document migrateArtefactToPlan​(java.util.concurrent.atomic.AtomicInteger successCount,
                                                                       java.util.concurrent.atomic.AtomicInteger errorCount,
                                                                       step.core.collections.Document t,
                                                                       boolean visiblePlan)
      • getNbPlans

        public int getNbPlans()
      • getArtefactIdToPlanId

        public java.util.Map<org.bson.types.ObjectId,​org.bson.types.ObjectId> getArtefactIdToPlanId()