You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests the connector configuration. Testing a configuration checks all elements of the environment that are referred to by the configuration are available. For example, the connector might make a physical connection to a host that is specified in the configuration to verify that it exists and that the credentials that are specified in the configuration are valid.
82
82
83
83
+
@@ -86,7 +86,7 @@ This operation might need to connect to a resource, and, as such, might take som
86
86
+
87
87
You can invoke the test operation before a connector configuration has been validated.
5+a| Sets the minimum of time after a script can be recompiled.
222
+
223
+
a| `scriptRoots`
224
+
a| `String[]`
225
+
a| `null`
226
+
a|
227
+
a| Yes
228
+
229
+
5+a| The root folder to load the scripts from. If the value is null or empty the classpath value is used.
230
+
231
+
a| `debug`
232
+
a| `boolean`
233
+
a| `false`
234
+
a|
235
+
a| No
236
+
237
+
5+a| If true, debugging code should be activated
238
+
239
+
a| `targetDirectory`
240
+
a| `File`
241
+
a| `null`
242
+
a|
243
+
a| No
244
+
245
+
5+a| Directory into which to write classes.
246
+
247
+
a| `disabledGlobalASTTransformations`
248
+
a| `String[]`
249
+
a| `null`
250
+
a|
251
+
a| No
252
+
253
+
5+a| Sets a list of global AST transformations which should not be loaded even if they are defined in `META-INF/org.codehaus.groovy.transform.ASTTransformation` files. By default, none is disabled.
254
+
255
+
a| `classpath`
256
+
a| `String[]`
257
+
a| `[]`
258
+
a|
259
+
a| No
260
+
261
+
5+a| Classpath for use during compilation.
262
+
263
+
a| `scriptExtensions`
264
+
a| `String[]`
265
+
a| `['groovy']`
266
+
a|
267
+
a| No
268
+
269
+
5+a| Script extensions
270
+
271
+
a| `sourceEncoding`
272
+
a| `String`
273
+
a| `UTF-8`
274
+
a|
275
+
a| No
276
+
277
+
5+a| Encoding for source files
278
+
279
+
a| `scriptBaseClass`
280
+
a| `String`
281
+
a| `null`
282
+
a|
283
+
a| No
284
+
285
+
5+a| Base class name for scripts (must derive from Script)
286
+
287
+
a| `verbose`
288
+
a| `boolean`
289
+
a| `false`
290
+
a|
291
+
a| No
292
+
293
+
5+a| If true, the compiler should produce action information
294
+
295
+
a| `recompileGroovySource`
296
+
a| `boolean`
297
+
a| `false`
298
+
a|
299
+
a| No
300
+
301
+
5+a| If set to true recompilation is enabled
302
+
303
+
a| `tolerance`
304
+
a| `int`
305
+
a| `10`
306
+
a|
307
+
a| No
308
+
309
+
5+a| The error tolerance, which is the number of non-fatal errors (per unit) that should be tolerated before compilation is aborted
Copy file name to clipboardExpand all lines: openidm/modules/samples-guide/pages/chap-groovy-samples.adoc
+8-8
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ The mapping from the internal repository to the external `hrdb` database (`manag
51
51
52
52
* Custom scripted endpoints
53
53
+
54
-
All scripted connectors support the configuration of custom scripted endpoints. These are configured in the provisioner configuration file and allow you to execute custom scripts over REST. This example uses a custom scripted endpoint to reset the database and populate it with data. Custom scripted endpoints are illustrated in the the custom script step< of xref:#build-custom-connector["Building the Custom ScriptedSQL Connector"].
54
+
All scripted connectors support the configuration of custom scripted endpoints. These are configured in the provisioner configuration file and allow you to execute custom scripts over REST. This example uses a custom scripted endpoint to reset the database and populate it with data. Custom scripted endpoints are illustrated in the custom script step< of xref:#build-custom-connector["Building the Custom ScriptedSQL Connector"].
. Set up MySQL to listen on localhost, port 3306. You will connect to the database as user `root` with password `password`.
86
86
+
87
-
If want to use an existing MySQL instance that runs on a different host or port, adjust the configuration file for the sample (`sample3/data/scriptedsql.json`) before you launch the connector bundler. The default generated configuration is as follows:
87
+
If you want to use an existing MySQL instance that runs on a different host or port, adjust the configuration file for the sample (`sample3/data/scriptedsql.json`) before you launch the connector bundler. The default generated configuration is as follows:
88
88
+
89
89
90
-
[source, javascript]
90
+
[source, json]
91
91
----
92
92
"configurationProperties" : {
93
93
"username" : "root",
@@ -218,7 +218,7 @@ Edit the value of the `"systemActions"` property in the connector configuration
218
218
The edited excerpt of the `conf/provisioner.openicf-hrdb.json` file should appear as follows:
219
219
+
220
220
221
-
[source, javascript]
221
+
[source, json]
222
222
----
223
223
"systemActions": [
224
224
{
@@ -620,7 +620,7 @@ This sample assumes an OpenDJ server, running on the localhost. Follow these ste
620
620
621
621
====
622
622
623
-
. Download and extract the OpenDJ zip archive from link:https://forgerock.org/downloads/[https://forgerock.org/downloads/, window=\_blank].
623
+
. Download and extract the OpenDJ zip archive from the link:https://github.com/OpenIdentityPlatform/OpenDJ/releases[GitHub, window=\_blank].
624
624
625
625
. Install OpenDJ using the command-line setup, as follows:
626
626
+
@@ -750,7 +750,7 @@ Processing ADD request for ou=Groups,dc=example,dc=com
750
750
ADD operation successful for DN ou=Groups,dc=example,dc=com
751
751
----
752
752
753
-
. To configure the mapping between JSON resources and LDAP entries, copy the the configuration file for the HTTP connection handler (`scriptedrest2dj/data/http-config.json`) to OpenDJ's configuration directory.
753
+
. To configure the mapping between JSON resources and LDAP entries, copy the configuration file for the HTTP connection handler (`scriptedrest2dj/data/http-config.json`) to OpenDJ's configuration directory.
754
754
+
755
755
756
756
[source, console]
@@ -1057,7 +1057,7 @@ This sample assumes an OpenDJ server, running on the localhost. Follow these ste
1057
1057
1058
1058
====
1059
1059
1060
-
. Download and extract the OpenDJ zip archive from link:https://forgerock.org/downloads/[https://forgerock.org/downloads/, window=\_blank].
1060
+
. Download and extract the OpenDJ zip archive from the link:https://github.com/OpenIdentityPlatform/OpenDJ/releases[GitHub, window=\_blank].
1061
1061
1062
1062
. Install OpenDJ using the command-line setup, as follows:
1063
1063
+
@@ -1187,7 +1187,7 @@ Processing ADD request for ou=Groups,dc=example,dc=com
1187
1187
ADD operation successful for DN ou=Groups,dc=example,dc=com
1188
1188
----
1189
1189
1190
-
. To configure the mapping between JSON resources and LDAP entries, copy the the configuration file for the HTTP connection handler (`scriptedcrest2dj/data/http-config.json`) to OpenDJ's configuration directory.
1190
+
. To configure the mapping between JSON resources and LDAP entries, copy the configuration file for the HTTP connection handler (`scriptedcrest2dj/data/http-config.json`) to OpenDJ's configuration directory.
0 commit comments