Class AbstractWizardLabelMigrator
java.lang.Object
org.bidib.wizard.migration.labels.AbstractWizardLabelMigrator
- Direct Known Subclasses:
Bidib2LabelMigrator,OldWizardLabelMigrator,WizardLabelMigrator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendNodeLabels(List<NodeLabel> exisiting, List<NodeLabel> toAdd) protected voiddoTransform(Map<String, String> params, InputStream inputXSL, InputStream dataXML, StringWriter outputXML) abstract NodesfindAllNodesInWizardLabels(String searchpath) Find all nodes in wizard labels.protected voidmigrateAndAppendWizardPortLabels(org.bidib.jbidibc.core.schema.bidiblabels.NodeLabels nodeLabels, Map<String, String> params, String searchpath, String fileName, String migrationXSL, String portTypeIdentifier) protected NodesperformFindAllNodesInWizardLabels(String fileName, String transformationXSL, String searchpath) Search labels of one type.protected NodesperformFindNodes(Map<String, String> params, InputStream dataXML, String migrationXSL) protected org.bidib.jbidibc.core.schema.bidiblabels.NodeLabelsperformMigration(Map<String, String> params, InputStream dataXML, String migrationXSL) protected org.bidib.jbidibc.core.schema.bidiblabels.NodeLabelsperformWizardLabelsMigration(Map<String, String> params, String fileName, String migrationXSL, String searchpath) Search labels of one type.abstract org.bidib.jbidibc.core.schema.bidiblabels.NodeLabelsperformWizardLabelsMigration(ApplicationContext context, long uniqueId, String searchpath) Perform migration from wizard labels to new node labels.
-
Field Details
-
INPUT2_XSL
- See Also:
-
INPUT2A_XSL
- See Also:
-
KEY_MIGRATIONXSL
- See Also:
-
-
Constructor Details
-
AbstractWizardLabelMigrator
public AbstractWizardLabelMigrator()
-
-
Method Details
-
findAllNodesInWizardLabels
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 contextuniqueId- the uniqueIddataXML- 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 searchsearchpath- the search path- Returns:
- the labels or
nullif no labels were found
-
performFindNodes
-
doTransform
protected void doTransform(Map<String, String> params, InputStream inputXSL, InputStream dataXML, StringWriter outputXML) throws TransformerException- Throws:
TransformerException
-
appendNodeLabels
-
performMigration
protected org.bidib.jbidibc.core.schema.bidiblabels.NodeLabels performMigration(Map<String, String> params, InputStream dataXML, String migrationXSL) -
migrateAndAppendWizardPortLabels
-
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 paramsfileName- the filename to searchsearchpath- the search path- Returns:
- the labels or
nullif no labels were found
-