Skip to content

Commit 1387b96

Browse files
tcrundall-tngmarcbux
authored andcommitted
UIEXT-3491: WebUI Migration Binary Objects to Strings
UIEXT-3491 (WebUI Migration Binary Objects to Strings)
1 parent 39f09cf commit 1387b96

9 files changed

+712
-123
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<config xmlns="http://www.knime.org/2008/09/XMLConfig" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.knime.org/2008/09/XMLConfig http://www.knime.org/XMLConfig_2008_09.xsd" key="settings.xml">
3+
<entry key="node_file" type="xstring" value="settings.xml"/>
4+
<config key="flow_stack"/>
5+
<config key="internal_node_subsettings">
6+
<entry key="memory_policy" type="xstring" value="CacheSmallInMemory"/>
7+
</config>
8+
<config key="model">
9+
<config key="columnselection_Internals">
10+
<entry key="SettingsModelID" type="xstring" value="SMID_string"/>
11+
<entry key="EnabledStatus" type="xboolean" value="true"/>
12+
</config>
13+
<entry key="columnselection" type="xstring" value="Image"/>
14+
<config key="decoding_Internals">
15+
<entry key="SettingsModelID" type="xstring" value="SMID_string"/>
16+
<entry key="EnabledStatus" type="xboolean" value="true"/>
17+
</config>
18+
<entry key="decoding" type="xstring" value="UTF-8"/>
19+
<config key="replace_Internals">
20+
<entry key="SettingsModelID" type="xstring" value="SMID_string"/>
21+
<entry key="EnabledStatus" type="xboolean" value="true"/>
22+
</config>
23+
<entry key="replace" type="xstring" value="Replace"/>
24+
<config key="columnname_Internals">
25+
<entry key="SettingsModelID" type="xstring" value="SMID_string"/>
26+
<entry key="EnabledStatus" type="xboolean" value="false"/>
27+
</config>
28+
<entry key="columnname" type="xstring" value="String"/>
29+
</config>
30+
<entry key="customDescription" type="xstring" isnull="true" value=""/>
31+
<entry key="state" type="xstring" value="CONFIGURED"/>
32+
<entry key="factory" type="xstring" value="org.knime.base.filehandling.binaryobjectstostrings.BinaryObjectsToStringsNodeFactory"/>
33+
<entry key="node-name" type="xstring" value="Binary Objects to Strings"/>
34+
<entry key="node-bundle-name" type="xstring" value="KNIME File Handling Nodes"/>
35+
<entry key="node-bundle-symbolic-name" type="xstring" value="org.knime.base.filehandling"/>
36+
<entry key="node-bundle-vendor" type="xstring" value="KNIME AG, Zurich, Switzerland"/>
37+
<entry key="node-bundle-version" type="xstring" value="5.11.0.v202603201205"/>
38+
<entry key="node-feature-name" type="xstring" isnull="true" value=""/>
39+
<entry key="node-feature-symbolic-name" type="xstring" isnull="true" value=""/>
40+
<entry key="node-feature-vendor" type="xstring" isnull="true" value=""/>
41+
<entry key="node-feature-version" type="xstring" value="0.0.0"/>
42+
<config key="factory_settings"/>
43+
<entry key="name" type="xstring" value="Binary Objects to Strings"/>
44+
<entry key="hasContent" type="xboolean" value="false"/>
45+
<entry key="isInactive" type="xboolean" value="false"/>
46+
<config key="ports">
47+
<config key="port_1">
48+
<entry key="index" type="xint" value="1"/>
49+
<entry key="port_dir_location" type="xstring" isnull="true" value=""/>
50+
</config>
51+
</config>
52+
<config key="filestores">
53+
<entry key="file_store_location" type="xstring" isnull="true" value=""/>
54+
<entry key="file_store_id" type="xstring" isnull="true" value=""/>
55+
</config>
56+
</config>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
{
2+
"data" : {
3+
"model" : {
4+
"columnSelection" : "",
5+
"decoding" : "UTF_8",
6+
"outputMode" : "REPLACE",
7+
"newColumnName" : "String"
8+
}
9+
},
10+
"schema" : {
11+
"type" : "object",
12+
"properties" : {
13+
"model" : {
14+
"type" : "object",
15+
"properties" : {
16+
"columnSelection" : {
17+
"type" : "string",
18+
"title" : "Column selection",
19+
"description" : "Column containing the binary objects that will be converted to strings.",
20+
"default" : ""
21+
},
22+
"decoding" : {
23+
"oneOf" : [ {
24+
"const" : "US_ASCII",
25+
"title" : "US-ASCII"
26+
}, {
27+
"const" : "ISO_8859_1",
28+
"title" : "ISO-8859-1"
29+
}, {
30+
"const" : "UTF_8",
31+
"title" : "UTF-8"
32+
}, {
33+
"const" : "UTF_16BE",
34+
"title" : "UTF-16BE"
35+
}, {
36+
"const" : "UTF_16LE",
37+
"title" : "UTF-16LE"
38+
}, {
39+
"const" : "UTF_16",
40+
"title" : "UTF-16"
41+
} ],
42+
"title" : "Decoding",
43+
"description" : "Character set used to decode the binary object bytes into a string. Common choices are UTF-8 (the default), UTF-16, and US-ASCII.\n<ul>\n<li><b>US-ASCII</b>: Seven-bit ASCII (ISO646-US / Basic Latin block of Unicode).</li>\n<li><b>ISO-8859-1</b>: ISO Latin Alphabet No. 1 (ISO-LATIN-1).</li>\n<li><b>UTF-8</b>: Eight-bit UCS Transformation Format.</li>\n<li><b>UTF-16BE</b>: Sixteen-bit UCS Transformation Format, big-endian byte order.</li>\n<li><b>UTF-16LE</b>: Sixteen-bit UCS Transformation Format, little-endian byte order.</li>\n<li><b>UTF-16</b>: Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark.</li>\n</ul>",
44+
"default" : "UTF_8"
45+
},
46+
"newColumnName" : {
47+
"type" : "string",
48+
"title" : "New column name",
49+
"description" : "Name of the appended column. Only applicable when \"Append\" is selected.",
50+
"default" : "String"
51+
},
52+
"outputMode" : {
53+
"oneOf" : [ {
54+
"const" : "REPLACE",
55+
"title" : "Replace"
56+
}, {
57+
"const" : "APPEND",
58+
"title" : "Append"
59+
} ],
60+
"title" : "Output handling",
61+
"description" : "Determines whether to append a new string column or to replace the selected binary object column.\n<ul>\n<li><b>Replace</b>: Replaces the selected binary object column with the string column.</li>\n<li><b>Append</b>: Appends a new string column to the table.</li>\n</ul>",
62+
"default" : "REPLACE"
63+
}
64+
}
65+
}
66+
}
67+
},
68+
"ui_schema" : {
69+
"elements" : [ {
70+
"type" : "Control",
71+
"scope" : "#/properties/model/properties/columnSelection",
72+
"options" : {
73+
"format" : "dropDown"
74+
},
75+
"providedOptions" : [ "possibleValues" ]
76+
}, {
77+
"type" : "Control",
78+
"scope" : "#/properties/model/properties/decoding"
79+
}, {
80+
"type" : "Control",
81+
"scope" : "#/properties/model/properties/outputMode",
82+
"options" : {
83+
"format" : "valueSwitch"
84+
}
85+
}, {
86+
"type" : "Control",
87+
"scope" : "#/properties/model/properties/newColumnName",
88+
"rule" : {
89+
"effect" : "SHOW",
90+
"condition" : {
91+
"scope" : "#/properties/model/properties/outputMode",
92+
"schema" : {
93+
"oneOf" : [ {
94+
"const" : "APPEND"
95+
} ]
96+
}
97+
}
98+
}
99+
} ]
100+
},
101+
"persist" : {
102+
"type" : "object",
103+
"properties" : {
104+
"model" : {
105+
"type" : "object",
106+
"properties" : {
107+
"columnSelection" : {
108+
"configKey" : "columnselection"
109+
},
110+
"decoding" : {
111+
"configPaths" : [ [ "decoding" ] ]
112+
},
113+
"outputMode" : {
114+
"configPaths" : [ [ "replace" ] ]
115+
},
116+
"newColumnName" : {
117+
"configKey" : "columnname"
118+
}
119+
}
120+
}
121+
}
122+
},
123+
"initialUpdates" : [ {
124+
"scope" : "#/properties/model/properties/columnSelection",
125+
"providedOptionName" : "possibleValues",
126+
"values" : [ {
127+
"indices" : [ ],
128+
"value" : [ {
129+
"id" : "Binary data",
130+
"text" : "Binary data",
131+
"type" : {
132+
"id" : "org.knime.core.data.blob.BinaryObjectDataValue",
133+
"text" : "Binary Object"
134+
}
135+
} ]
136+
} ]
137+
} ]
138+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<config xmlns="http://www.knime.org/2008/09/XMLConfig" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.knime.org/2008/09/XMLConfig http://www.knime.org/XMLConfig_2008_09.xsd" key="test">
3+
<entry key="columnselection" type="xstring" value="Image"/>
4+
<entry key="decoding" type="xstring" value="UTF-8"/>
5+
<entry key="replace" type="xstring" value="Replace"/>
6+
<entry key="columnname" type="xstring" value="String"/>
7+
</config>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
{
2+
"data" : {
3+
"model" : {
4+
"columnSelection" : "Image",
5+
"decoding" : "UTF_8",
6+
"outputMode" : "REPLACE",
7+
"newColumnName" : "String"
8+
}
9+
},
10+
"schema" : {
11+
"type" : "object",
12+
"properties" : {
13+
"model" : {
14+
"type" : "object",
15+
"properties" : {
16+
"columnSelection" : {
17+
"type" : "string",
18+
"title" : "Column selection",
19+
"description" : "Column containing the binary objects that will be converted to strings.",
20+
"default" : ""
21+
},
22+
"decoding" : {
23+
"oneOf" : [ {
24+
"const" : "US_ASCII",
25+
"title" : "US-ASCII"
26+
}, {
27+
"const" : "ISO_8859_1",
28+
"title" : "ISO-8859-1"
29+
}, {
30+
"const" : "UTF_8",
31+
"title" : "UTF-8"
32+
}, {
33+
"const" : "UTF_16BE",
34+
"title" : "UTF-16BE"
35+
}, {
36+
"const" : "UTF_16LE",
37+
"title" : "UTF-16LE"
38+
}, {
39+
"const" : "UTF_16",
40+
"title" : "UTF-16"
41+
} ],
42+
"title" : "Decoding",
43+
"description" : "Character set used to decode the binary object bytes into a string. Common choices are UTF-8 (the default), UTF-16, and US-ASCII.\n<ul>\n<li><b>US-ASCII</b>: Seven-bit ASCII (ISO646-US / Basic Latin block of Unicode).</li>\n<li><b>ISO-8859-1</b>: ISO Latin Alphabet No. 1 (ISO-LATIN-1).</li>\n<li><b>UTF-8</b>: Eight-bit UCS Transformation Format.</li>\n<li><b>UTF-16BE</b>: Sixteen-bit UCS Transformation Format, big-endian byte order.</li>\n<li><b>UTF-16LE</b>: Sixteen-bit UCS Transformation Format, little-endian byte order.</li>\n<li><b>UTF-16</b>: Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark.</li>\n</ul>",
44+
"default" : "UTF_8"
45+
},
46+
"newColumnName" : {
47+
"type" : "string",
48+
"title" : "New column name",
49+
"description" : "Name of the appended column. Only applicable when \"Append\" is selected.",
50+
"default" : "String"
51+
},
52+
"outputMode" : {
53+
"oneOf" : [ {
54+
"const" : "REPLACE",
55+
"title" : "Replace"
56+
}, {
57+
"const" : "APPEND",
58+
"title" : "Append"
59+
} ],
60+
"title" : "Output handling",
61+
"description" : "Determines whether to append a new string column or to replace the selected binary object column.\n<ul>\n<li><b>Replace</b>: Replaces the selected binary object column with the string column.</li>\n<li><b>Append</b>: Appends a new string column to the table.</li>\n</ul>",
62+
"default" : "REPLACE"
63+
}
64+
}
65+
}
66+
}
67+
},
68+
"ui_schema" : {
69+
"elements" : [ {
70+
"type" : "Control",
71+
"scope" : "#/properties/model/properties/columnSelection",
72+
"options" : {
73+
"format" : "dropDown"
74+
},
75+
"providedOptions" : [ "possibleValues" ]
76+
}, {
77+
"type" : "Control",
78+
"scope" : "#/properties/model/properties/decoding"
79+
}, {
80+
"type" : "Control",
81+
"scope" : "#/properties/model/properties/outputMode",
82+
"options" : {
83+
"format" : "valueSwitch"
84+
}
85+
}, {
86+
"type" : "Control",
87+
"scope" : "#/properties/model/properties/newColumnName",
88+
"rule" : {
89+
"effect" : "SHOW",
90+
"condition" : {
91+
"scope" : "#/properties/model/properties/outputMode",
92+
"schema" : {
93+
"oneOf" : [ {
94+
"const" : "APPEND"
95+
} ]
96+
}
97+
}
98+
}
99+
} ]
100+
},
101+
"persist" : {
102+
"type" : "object",
103+
"properties" : {
104+
"model" : {
105+
"type" : "object",
106+
"properties" : {
107+
"columnSelection" : {
108+
"configKey" : "columnselection"
109+
},
110+
"decoding" : {
111+
"configPaths" : [ [ "decoding" ] ]
112+
},
113+
"outputMode" : {
114+
"configPaths" : [ [ "replace" ] ]
115+
},
116+
"newColumnName" : {
117+
"configKey" : "columnname"
118+
}
119+
}
120+
}
121+
}
122+
},
123+
"initialUpdates" : [ {
124+
"scope" : "#/properties/model/properties/columnSelection",
125+
"providedOptionName" : "possibleValues",
126+
"values" : [ {
127+
"indices" : [ ],
128+
"value" : [ {
129+
"id" : "Binary data",
130+
"text" : "Binary data",
131+
"type" : {
132+
"id" : "org.knime.core.data.blob.BinaryObjectDataValue",
133+
"text" : "Binary Object"
134+
}
135+
} ]
136+
} ]
137+
} ]
138+
}

0 commit comments

Comments
 (0)