Class AbstractWizardLabelMigrator

    • Constructor Detail

      • AbstractWizardLabelMigrator

        public AbstractWizardLabelMigrator()
    • Method Detail

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