Skip to content

Commit c17dad3

Browse files
authored
fix documentation issues (#79)
1 parent c8438c8 commit c17dad3

File tree

3 files changed

+244
-32
lines changed

3 files changed

+244
-32
lines changed

openidm-doc/src/main/asciidoc/connectors-guide/chap-groovy.adoc

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

openidm-doc/src/main/asciidoc/samples-guide/chap-groovy-samples.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The mapping from the internal repository to the external `hrdb` database (`manag
5050
5151
* Custom scripted endpoints
5252
+
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"].
5454
5555
5656
[CAUTION]
@@ -83,10 +83,10 @@ $ cp mysql-connector-java-version-bin.jar /path/to/openidm/bundle/
8383
8484
. Set up MySQL to listen on localhost, port 3306. You will connect to the database as user `root` with password `password`.
8585
+
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:
8787
+
8888
89-
[source, javascript]
89+
[source, json]
9090
----
9191
"configurationProperties" : {
9292
"username" : "root",
@@ -217,7 +217,7 @@ Edit the value of the `"systemActions"` property in the connector configuration
217217
The edited excerpt of the `conf/provisioner.openicf-hrdb.json` file should appear as follows:
218218
+
219219
220-
[source, javascript]
220+
[source, json]
221221
----
222222
"systemActions": [
223223
{
@@ -619,7 +619,7 @@ This sample assumes an OpenDJ server, running on the localhost. Follow these ste
619619
620620
====
621621
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].
623623
624624
. Install OpenDJ using the command-line setup, as follows:
625625
+
@@ -749,7 +749,7 @@ Processing ADD request for ou=Groups,dc=example,dc=com
749749
ADD operation successful for DN ou=Groups,dc=example,dc=com
750750
----
751751
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.
753753
+
754754
755755
[source, console]
@@ -1056,7 +1056,7 @@ This sample assumes an OpenDJ server, running on the localhost. Follow these ste
10561056
10571057
====
10581058
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].
10601060
10611061
. Install OpenDJ using the command-line setup, as follows:
10621062
+
@@ -1186,7 +1186,7 @@ Processing ADD request for ou=Groups,dc=example,dc=com
11861186
ADD operation successful for DN ou=Groups,dc=example,dc=com
11871187
----
11881188
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.
11901190
+
11911191
11921192
[source, console]

0 commit comments

Comments
 (0)