Class AbstractWizardLabelMigrator
- java.lang.Object
-
- org.bidib.wizard.migration.labels.AbstractWizardLabelMigrator
-
- Direct Known Subclasses:
Bidib2LabelMigrator,OldWizardLabelMigrator,WizardLabelMigrator
public abstract class AbstractWizardLabelMigrator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringINPUT2_XSLstatic StringINPUT2A_XSLprotected static StringKEY_MIGRATIONXSL
-
Constructor Summary
Constructors Constructor Description AbstractWizardLabelMigrator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
INPUT2_XSL
public static final String INPUT2_XSL
- See Also:
- Constant Field Values
-
INPUT2A_XSL
public static final String INPUT2A_XSL
- See Also:
- Constant Field Values
-
KEY_MIGRATIONXSL
protected static final String KEY_MIGRATIONXSL
- See Also:
- Constant Field Values
-
-
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 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
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
-
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 paramsfileName- the filename to searchsearchpath- the search path- Returns:
- the labels or
nullif no labels were found
-
-