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.
81
81
82
82
+
@@ -85,7 +85,7 @@ This operation might need to connect to a resource, and, as such, might take som
85
85
+
86
86
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.
221
+
222
+
a| `scriptRoots`
223
+
a| `String[]`
224
+
a| `null`
225
+
a|
226
+
a| Yes
227
+
228
+
5+a| The root folder to load the scripts from. If the value is null or empty the classpath value is used.
229
+
230
+
a| `debug`
231
+
a| `boolean`
232
+
a| `false`
233
+
a|
234
+
a| No
235
+
236
+
5+a| If true, debugging code should be activated
237
+
238
+
a| `targetDirectory`
239
+
a| `File`
240
+
a| `null`
241
+
a|
242
+
a| No
243
+
244
+
5+a| Directory into which to write classes.
245
+
246
+
a| `disabledGlobalASTTransformations`
247
+
a| `String[]`
248
+
a| `null`
249
+
a|
250
+
a| No
251
+
252
+
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.
253
+
254
+
a| `classpath`
255
+
a| `String[]`
256
+
a| `[]`
257
+
a|
258
+
a| No
259
+
260
+
5+a| Classpath for use during compilation.
261
+
262
+
a| `scriptExtensions`
263
+
a| `String[]`
264
+
a| `['groovy']`
265
+
a|
266
+
a| No
267
+
268
+
5+a| Script extensions
269
+
270
+
a| `sourceEncoding`
271
+
a| `String`
272
+
a| `UTF-8`
273
+
a|
274
+
a| No
275
+
276
+
5+a| Encoding for source files
277
+
278
+
a| `scriptBaseClass`
279
+
a| `String`
280
+
a| `null`
281
+
a|
282
+
a| No
283
+
284
+
5+a| Base class name for scripts (must derive from Script)
285
+
286
+
a| `verbose`
287
+
a| `boolean`
288
+
a| `false`
289
+
a|
290
+
a| No
291
+
292
+
5+a| If true, the compiler should produce action information
293
+
294
+
a| `recompileGroovySource`
295
+
a| `boolean`
296
+
a| `false`
297
+
a|
298
+
a| No
299
+
300
+
5+a| If set to true recompilation is enabled
301
+
302
+
a| `tolerance`
303
+
a| `int`
304
+
a| `10`
305
+
a|
306
+
a| No
307
+
308
+
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-doc/src/main/asciidoc/samples-guide/chap-groovy-samples.adoc
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ The mapping from the internal repository to the external `hrdb` database (`manag
50
50
51
51
* Custom scripted endpoints
52
52
+
53
-
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"].
53
+
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`.
85
85
+
86
-
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:
86
+
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:
87
87
+
88
88
89
-
[source, javascript]
89
+
[source, json]
90
90
----
91
91
"configurationProperties" : {
92
92
"username" : "root",
@@ -217,7 +217,7 @@ Edit the value of the `"systemActions"` property in the connector configuration
217
217
The edited excerpt of the `conf/provisioner.openicf-hrdb.json` file should appear as follows:
218
218
+
219
219
220
-
[source, javascript]
220
+
[source, json]
221
221
----
222
222
"systemActions": [
223
223
{
@@ -619,7 +619,7 @@ This sample assumes an OpenDJ server, running on the localhost. Follow these ste
619
619
620
620
====
621
621
622
-
. Download and extract the OpenDJ zip archive from link:https://forgerock.org/downloads/[https://forgerock.org/downloads/, window=\_blank].
622
+
. Download and extract the OpenDJ zip archive from the link:https://github.com/OpenIdentityPlatform/OpenDJ/releases[GitHub, window=\_blank].
623
623
624
624
. Install OpenDJ using the command-line setup, as follows:
625
625
+
@@ -749,7 +749,7 @@ Processing ADD request for ou=Groups,dc=example,dc=com
749
749
ADD operation successful for DN ou=Groups,dc=example,dc=com
750
750
----
751
751
752
-
. 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.
752
+
. 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.
753
753
+
754
754
755
755
[source, console]
@@ -1056,7 +1056,7 @@ This sample assumes an OpenDJ server, running on the localhost. Follow these ste
1056
1056
1057
1057
====
1058
1058
1059
-
. Download and extract the OpenDJ zip archive from link:https://forgerock.org/downloads/[https://forgerock.org/downloads/, window=\_blank].
1059
+
. Download and extract the OpenDJ zip archive from the link:https://github.com/OpenIdentityPlatform/OpenDJ/releases[GitHub, window=\_blank].
1060
1060
1061
1061
. Install OpenDJ using the command-line setup, as follows:
1062
1062
+
@@ -1186,7 +1186,7 @@ Processing ADD request for ou=Groups,dc=example,dc=com
1186
1186
ADD operation successful for DN ou=Groups,dc=example,dc=com
1187
1187
----
1188
1188
1189
-
. 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.
1189
+
. 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