/
config.sample.json
210 lines (208 loc) · 6.33 KB
/
config.sample.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
{
"replace": {
"Source Missing": {
"3": "replace",
"2": "ignore",
"1": "throw"
},
"If Primitive": {
"3": "replace",
"2": "ignore",
"1": "throw",
"4": "replace with JSON"
},
"If Object": {
"3": "replace object",
"2": "ignore",
"1": "throw",
"5": "replace with JSON",
"4": "replace as list"
},
"Object-Attr Primitive": {
"3": "insertList",
"2": "ignore",
"1": "throw"
},
"Object-Attr Object": {
"2": "ignore",
"1": "throw"
},
"Object-Attr List": {
"3": "use first primitive",
"2": "ignore",
"1": "throw",
"4": "use last primitive"
},
"If List": {
"3": "replace",
"2": "ignore",
"1": "throw",
"6": "replace with json",
"5": "use last only",
"4": "use first only"
},
"List-Attr Not Primitive": {
"2": "ignore",
"1": "throw"
},
"List-Attr Missing": {
"2": "ignore",
"1": "throw"
}
},
"template": {
"Content Type": {
"3": "xml",
"2": "json",
"1": "html",
"4": "text"
},
"Content Disposition": {
"3": "download archive",
"2": "normal",
"1": "download"
}
},
"save": {
},
"providers": {
"com.ibm.util.merge.template.directive.enrich.provider.JndiProvider": {
"sourceJson": "N/A - Source specifies a JNDI Name",
"optionName": "Database",
"parseHelp": "N/A",
"commandHelp": "A SQL Select Statement",
"returnHelp": "Always returns a List of Object"
},
"com.ibm.util.merge.template.directive.enrich.provider.RestProvider": {
"sourceJson": "The following environment variables are expected\n{SourceName}.HOST - The Host\n{SourceName}.PORT - The Port\n",
"optionName": "N/A",
"parseHelp": "Will parse the entire response",
"commandHelp": "The URL to make a http get request to",
"returnHelp": "Returns a Primitive if not parsed, or the Element from the parsing"
},
"com.ibm.util.merge.template.directive.enrich.provider.CacheProvider": {
"sourceJson": "No further configuration needed",
"optionName": "No Options are Supported",
"parseHelp": "No Parsing is supported",
"commandHelp": "No Command is needed",
"returnHelp": "returns an object of <String, Primitive> with cache statistics"
},
"com.ibm.util.merge.template.directive.enrich.provider.CloudantProvider": {
"sourceJson": "The following environment variables are expected: /n{SourceName}.URL - The database connection URL/n{SourceName}.USER - The database User ID/n{SourceName}.PW - The database Password",
"optionName": "Database",
"parseHelp": "N/A",
"commandHelp": "A cloudant Query JSON string - Replace Tags are supported and jSon encoded",
"returnHelp": "This provider always returns a List of Objects"
},
"com.ibm.util.merge.template.directive.enrich.provider.FileSystemProvider": {
"sourceJson": "The following environment variables are expected\n{SourceName}.PATH - The Path where files are to be read from.",
"optionName": "N/A",
"parseHelp": "file content is parsed in the return object",
"commandHelp": "A Java RegEx file selector",
"returnHelp": "returns an object of <String, Primitive> if not parsed, and String, Element if parsed"
},
"com.ibm.util.merge.template.directive.enrich.provider.MongoProvider": {
"sourceJson": "The following environment variables are expected\n{SourceName}.URI - The database connection URL\n{SourceName}.USER - The database User ID, if empty Mongo Anonymous Auth is used, otherwise ScramSha1 authentication is used.\n{SourceName}.PW - The database Password\n{SourceName}.DB - The database name",
"optionName": "Collection",
"parseHelp": "N/A",
"commandHelp": "Json Mongo Query Object",
"returnHelp": "List of Document Objects"
},
"com.ibm.util.merge.template.directive.enrich.provider.JdbcProvider": {
"sourceJson": "The following environment variables are expected\n{source}.URI - Database Connection URI, without UserName/PW components\n{source}.USER - The Database User ID to use\n{source}.PW - The Password for the User ID",
"optionName": "Database",
"parseHelp": "N/A",
"commandHelp": "A SQL Select Statement - Replace Tags are supported and SQL encoded",
"returnHelp": "Always returns a List of Object"
},
"com.ibm.util.merge.template.directive.enrich.provider.StubProvider": {
"sourceJson": "N/A",
"optionName": "N/A",
"parseHelp": "Will parse the Template JSON",
"commandHelp": "N/A",
"returnHelp": "Primitive with TemplateJson if not parsed, Template object if parsed"
}
},
"encoding": {
"Encoding": {
"3": "sql",
"2": "html",
"1": "none",
"6": "default",
"5": "xml",
"4": "json"
}
},
"parsers": {
"3": "com.ibm.util.merge.data.parser.DataProxyJson",
"1": "com.ibm.util.merge.data.parser.DataProxyCsv",
"5": "com.ibm.util.merge.data.parser.DataProxyXmlStrict"
},
"config": {
"logLevel": "SEVERE",
"nestLimit": "2",
"prettyJson": "true",
"tempFolder": "/opt/ibm/idmu/archives",
"insertLimit": "20",
"version": "4.0.0.B1"
},
"enrich": {
},
"parse": {
"If List": {
"3": "parse first primitive",
"2": "ignore",
"1": "throw",
"4": "parse last primitive"
},
"Source Missing": {
"2": "ignore",
"1": "throw"
},
"If Primitive": {
"3": "parse",
"2": "ignore",
"1": "throw"
},
"If Object": {
"2": "ignore",
"1": "throw"
}
},
"insert": {
"If List": {
"3": "insert",
"2": "ignore",
"1": "throw",
"5": "insert last member",
"4": "insert first member"
},
"Source Missing": {
"3": "insert",
"2": "ignore",
"1": "throw"
},
"If Primitive": {
"3": "insert",
"2": "ignore",
"1": "throw",
"4": "insert if"
},
"If Object": {
"3": "insertObject",
"2": "ignore",
"1": "throw",
"4": "insertList"
},
"Insert If operators": {
"3": "string not empty",
"2": "string is empty",
"1": "string equals",
"7": "value >",
"6": "value =",
"5": "string <",
"4": "string >",
"8": "value <"
}
}
}