Class ArtefactsToPlans

java.lang.Object
step.core.imports.converter.ArtefactsToPlans

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

    • ArtefactsToPlans

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

    • 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(AtomicInteger successCount, AtomicInteger errorCount, step.core.collections.Document t, boolean visiblePlan)
    • getNbPlans

      public int getNbPlans()
    • getArtefactIdToPlanId

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