Skip to content

Commit ec72fc2

Browse files
author
Open Identity Platform Community
committed
upload OpenIDM docs after deploy c17dad33bfca3a6ad818de50c2af7a4c1c88dadc
1 parent 727b342 commit ec72fc2

File tree

3 files changed

+244
-32
lines changed

3 files changed

+244
-32
lines changed

openidm/modules/connectors-guide/pages/chap-groovy.adoc

+229-17
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,22 @@ Sample implementations are provided in xref:samples-guide:chap-groovy-samples.ad
4242
The Scripted Groovy Connector implements the following OpenICF interfaces.
4343
--
4444
45-
link:../connectors-guide/index.html#interface-AuthenticationApiOp[Authenticate]::
45+
xref:appendix-interfaces.adoc#interface-AuthenticationApiOp[Authenticate]::
4646
Provides simple authentication with two parameters, presumed to be a user name and password.
4747
48-
link:../connectors-guide/index.html#interface-CreateApiOp[Create]::
48+
xref:appendix-interfaces.adoc#interface-CreateApiOp[Create]::
4949
Creates an object and its `uid`.
5050
51-
link:../connectors-guide/index.html#interface-DeleteApiOp[Delete]::
51+
xref:appendix-interfaces.adoc#interface-DeleteApiOp[Delete]::
5252
Deletes an object, referenced by its `uid`.
5353
54-
link:../connectors-guide/index.html#interface-ResolveUsernameApiOp[Resolve Username]::
54+
xref:appendix-interfaces.adoc#interface-ResolveUsernameApiOp[Resolve Username]::
5555
Resolves an object by its username and returns the `uid` of the object.
5656
57-
link:../connectors-guide/index.html#interface-SchemaApiOp[Schema]::
57+
xref:appendix-interfaces.adoc#interface-SchemaApiOp[Schema]::
5858
Describes the object types, operations, and options that the connector supports.
5959
60-
link:../connectors-guide/index.html#interface-ScriptOnConnectorApiOp[Script on Connector]::
60+
xref:appendix-interfaces.adoc#interface-ScriptOnConnectorApiOp[Script on Connector]::
6161
Enables an application to run a script in the context of the connector. Any script that runs on the connector has the following characteristics:
6262
+
6363
@@ -68,16 +68,16 @@ Enables an application to run a script in the context of the connector. Any scri
6868
* The script has access to any script-arguments passed in by the application.
6969
7070
71-
link:../connectors-guide/index.html#interface-ScriptOnResourceApiOp[Script on Resource]::
71+
xref:appendix-interfaces.adoc#interface-ScriptOnResourceApiOp[Script on Resource]::
7272
Runs a script on the target resource that is managed by this connector.
7373
74-
link:../connectors-guide/index.html#interface-SearchApiOp[Search]::
74+
xref:appendix-interfaces.adoc#interface-SearchApiOp[Search]::
7575
Searches the target resource for all objects that match the specified object class and filter.
7676
77-
link:../connectors-guide/index.html#interface-SyncApiOp[Sync]::
77+
xref:appendix-interfaces.adoc#interface-SyncApiOp[Sync]::
7878
Polls the target resource for synchronization events, that is, native changes to objects on the target resource.
7979
80-
link:../connectors-guide/index.html#interface-TestApiOp[Test]::
80+
xref:appendix-interfaces.adoc#interface-TestApiOp[Test]::
8181
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.
8282
8383
+
@@ -86,7 +86,7 @@ This operation might need to connect to a resource, and, as such, might take som
8686
+
8787
You can invoke the test operation before a connector configuration has been validated.
8888
89-
link:../connectors-guide/index.html#interface-UpdateApiOp[Update]::
89+
xref:appendix-interfaces.adoc#interface-UpdateApiOp[Update]::
9090
Updates (modifies or replaces) objects on a target resource.
9191
9292
--
@@ -101,29 +101,241 @@ The Scripted Groovy Connector has the following configurable properties.
101101
==== Operation Script Files Properties
102102
103103
104-
[cols="33%,17%,16%,17%,17%"]
104+
[cols="33%,17%,16%,17%,17%", stripes=even]
105105
|===
106-
|Property |Type |Default |Encrypted |Required
106+
|Property |Type |Default |Encrypted |Required
107+
108+
a| `authenticateScriptFileName`
109+
a| `String`
110+
a| `null`
111+
a|
112+
a| xref:appendix-interfaces.adoc#interface-AuthenticationApiOp[Authenticate]
113+
114+
5+a| The name of the file used to perform the AUTHENTICATE operation.
115+
116+
a| `deleteScriptFileName`
117+
a| `String`
118+
a| `null`
119+
a|
120+
a|xref:appendix-interfaces.adoc#interface-DeleteApiOp[Delete]
121+
122+
5+a| The name of the file used to perform the DELETE operation.
123+
124+
a| `schemaScriptFileName`
125+
a| `String`
126+
a| `null`
127+
a|
128+
a|xref:appendix-interfaces.adoc#interface-SchemaApiOp[Schema]
129+
130+
5+a| The name of the file used to perform the SCHEMA operation.
131+
132+
a| `customizerScriptFileName`
133+
a| `String`
134+
a| `null`
135+
a|
136+
a| No
137+
138+
5+a| The script used to customize some function of the connector. Read the documentation for more details.
139+
140+
a| `resolveUsernameScriptFileName`
141+
a| `String`
142+
a| `null`
143+
a|
144+
a| xref:appendix-interfaces.adoc#interface-ResolveUsernameApiOp[Resolve Username]
145+
146+
5+a| The name of the file used to perform the RESOLVE_USERNAME operation.
147+
148+
a| `testScriptFileName`
149+
a| `String`
150+
a| `null`
151+
a|
152+
a| xref:appendix-interfaces.adoc#interface-TestApiOp[Test]
153+
154+
5+a| The name of the file used to perform the TEST operation.
155+
156+
a| `updateScriptFileName`
157+
a| `String`
158+
a| `null`
159+
a|
160+
a| xref:appendix-interfaces.adoc#interface-UpdateApiOp[Update]
161+
162+
5+a| The name of the file used to perform the UPDATE operation.
163+
164+
a| `searchScriptFileName`
165+
a| `String`
166+
a| `null`
167+
a|
168+
a| xref:appendix-interfaces.adoc#interface-SearchApiOp[Search]
169+
170+
5+a| The name of the file used to perform the SEARCH operation.
171+
172+
a| `scriptOnResourceScriptFileName`
173+
a| `String`
174+
a| `null`
175+
a|
176+
a| xref:appendix-interfaces.adoc#interface-ScriptOnResourceApiOp[Script on Resource]
177+
178+
5+a| The name of the file used to perform the RUNSCRIPTONRESOURCE operation.
179+
180+
a| `createScriptFileName`
181+
a| `String`
182+
a| `null`
183+
a|
184+
a| xref:appendix-interfaces.adoc#interface-CreateApiOp[Create]
185+
186+
5+a| The name of the file used to perform the CREATE operation.
187+
188+
a| `syncScriptFileName`
189+
a| `String`
190+
a| `null`
191+
a|
192+
a| xref:appendix-interfaces.adoc#interface-SyncApiOp[Sync]
193+
194+
5+a| The name of the file used to perform the SYNC operation
195+
107196
|===
108197
109198
110199
[#groovy-engine-configuration-properties-org-forgerock-openicf-connectors-groovy-ScriptedConnector-1_4_2_1]
111200
==== Groovy Engine configuration Properties
112201
113202
114-
[cols="33%,17%,16%,17%,17%"]
203+
[cols="33%,17%,16%,17%,17%", stripes=even]
115204
|===
116-
|Property |Type |Default |Encrypted |Required
205+
|Property |Type |Default |Encrypted |Required
206+
207+
a| `warningLevel`
208+
a| `int`
209+
a| `1`
210+
a|
211+
a| No
212+
213+
5+a| Warning Level of the compiler
214+
215+
a| `minimumRecompilationInterval`
216+
a| `int`
217+
a| `100`
218+
a|
219+
a| No
220+
221+
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
310+
311+
117312
|===
118313
119314
120315
[#configuration-properties-org-forgerock-openicf-connectors-groovy-ScriptedConnector-1_4_2_1]
121316
==== Configuration Properties
122317
123318
124-
[cols="33%,17%,16%,17%,17%"]
319+
[cols="33%,17%,16%,17%,17%", stripes=even]
125320
|===
126-
|Property |Type |Default |Encrypted |Required
321+
|Property |Type |Default |Encrypted |Required
322+
323+
a| `customConfiguration`
324+
a| `String`
325+
a| `null`
326+
a|
327+
a| No
328+
329+
5+a| Custom Configuration script for Groovy ConfigSlurper
330+
331+
a| `customSensitiveConfiguration`
332+
a| `GuardedString`
333+
a| `null`
334+
a| Yes
335+
a| No
336+
337+
5+a| Custom Sensitive Configuration script for Groovy ConfigSlurper
338+
127339
|===
128340
129341

openidm/modules/samples-guide/pages/chap-groovy-samples.adoc

+8-8
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The mapping from the internal repository to the external `hrdb` database (`manag
5151
5252
* Custom scripted endpoints
5353
+
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"].
5555
5656
5757
[CAUTION]
@@ -84,10 +84,10 @@ $ cp mysql-connector-java-version-bin.jar /path/to/openidm/bundle/
8484
8585
. Set up MySQL to listen on localhost, port 3306. You will connect to the database as user `root` with password `password`.
8686
+
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:
8888
+
8989
90-
[source, javascript]
90+
[source, json]
9191
----
9292
"configurationProperties" : {
9393
"username" : "root",
@@ -218,7 +218,7 @@ Edit the value of the `"systemActions"` property in the connector configuration
218218
The edited excerpt of the `conf/provisioner.openicf-hrdb.json` file should appear as follows:
219219
+
220220
221-
[source, javascript]
221+
[source, json]
222222
----
223223
"systemActions": [
224224
{
@@ -620,7 +620,7 @@ This sample assumes an OpenDJ server, running on the localhost. Follow these ste
620620
621621
====
622622
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].
624624
625625
. Install OpenDJ using the command-line setup, as follows:
626626
+
@@ -750,7 +750,7 @@ Processing ADD request for ou=Groups,dc=example,dc=com
750750
ADD operation successful for DN ou=Groups,dc=example,dc=com
751751
----
752752
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.
754754
+
755755
756756
[source, console]
@@ -1057,7 +1057,7 @@ This sample assumes an OpenDJ server, running on the localhost. Follow these ste
10571057
10581058
====
10591059
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].
10611061
10621062
. Install OpenDJ using the command-line setup, as follows:
10631063
+
@@ -1187,7 +1187,7 @@ Processing ADD request for ou=Groups,dc=example,dc=com
11871187
ADD operation successful for DN ou=Groups,dc=example,dc=com
11881188
----
11891189
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.
11911191
+
11921192
11931193
[source, console]

0 commit comments

Comments
 (0)