Class AbstractWizardLabelMigrator

java.lang.Object
org.bidib.wizard.migration.labels.AbstractWizardLabelMigrator
Direct Known Subclasses:
Bidib2LabelMigrator, OldWizardLabelMigrator, WizardLabelMigrator

public abstract class AbstractWizardLabelMigrator extends Object
  • Field Details

  • Constructor Details

    • AbstractWizardLabelMigrator

      public AbstractWizardLabelMigrator()
  • Method Details

    • findAllNodesInWizardLabels

      public abstract Nodes findAllNodesInWizardLabels(String searchpath)
      Find all nodes in wizard labels.
      Parameters:
      searchpath - the search path
      Returns:
      the node labels with all nodes
    • performWizardLabelsMigration

      public abstract org.bidib.jbidibc.core.schema.bidiblabels.NodeLabels performWizardLabelsMigration(ApplicationContext context, long uniqueId, String searchpath)
      Perform migration from wizard labels to new node labels.

      The old wizard labels of a node must be collected from multiple files, because each label type has it's own file.

      Parameters:
      context - the migration context
      uniqueId - the uniqueId
      dataXML - the data XML
      Returns:
      the nodeLabels that were migrated from dataXML
    • performFindAllNodesInWizardLabels

      protected Nodes performFindAllNodesInWizardLabels(String fileName, String transformationXSL, String searchpath)
      Search labels of one type.
      Parameters:
      fileName - the filename to search
      searchpath - the search path
      Returns:
      the labels or null if no labels were found
    • performFindNodes

      protected Nodes performFindNodes(Map<String,String> params, InputStream dataXML, String migrationXSL)
    • doTransform

      protected void doTransform(Map<String,String> params, InputStream inputXSL, InputStream dataXML, StringWriter outputXML) throws TransformerException
      Throws:
      TransformerException
    • appendNodeLabels

      protected void appendNodeLabels(List<NodeLabel> exisiting, List<NodeLabel> toAdd)
    • performMigration

      protected org.bidib.jbidibc.core.schema.bidiblabels.NodeLabels performMigration(Map<String,String> params, InputStream dataXML, String migrationXSL)
    • migrateAndAppendWizardPortLabels

      protected void migrateAndAppendWizardPortLabels(org.bidib.jbidibc.core.schema.bidiblabels.NodeLabels nodeLabels, Map<String,String> params, String searchpath, String fileName, String migrationXSL, String portTypeIdentifier)
    • performWizardLabelsMigration

      protected org.bidib.jbidibc.core.schema.bidiblabels.NodeLabels performWizardLabelsMigration(Map<String,String> params, String fileName, String migrationXSL, String searchpath)
      Search labels of one type.
      Parameters:
      params - the params
      fileName - the filename to search
      searchpath - the search path
      Returns:
      the labels or null if no labels were found