webmaster
2013-11-19 15:53:20 UTC
A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/11/19 16:53
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
IP-Address : 89.251.56.25
Hostname : 25.56-251-89.rdns.acropolistelecom.net
Old Revision: http://lsc-project.org/wiki/documentation/2.1/configuration/syncoptions?rev=1371674822
New Revision: http://lsc-project.org/wiki/documentation/2.1/configuration/syncoptions
Edit Summary:
User : sbahloul
@@ -1,5 +1,42 @@
====== Synchronization Rules ======
+
+ ===== Generic scripting capabilities ====
+
+ Default language is Javascript but you can also enjoy Groovy to compute the values based on the //srcBean//. The following languages are available
+
+ | ^ Language code ^ See the following page ^ Comments |
+ | Javascript (JSR-223) | js | http://www.oracle.com/technetwork/articles/javase/scripting-140262.html | |
+ | Groovy (JSR-223) | gr | http://groovy.codehaus.org/ | |
+ | Rhino | rjs | https://developer.mozilla.org/en-US/docs/Rhino_documentation | |
+ | Rhino with debugger | rdjs | https://developer.mozilla.org/en-US/docs/Rhino/Debugger| Will launch the Rhino Swing Debugger each time a Javascript expression is computed |
+
+ To use them, just prefix the value with the language code followed by ':' as shown in the sample below :
+
+ <code xml>
+ <mainIdentifier>js:"mail=" + srcBean.getDatasetFirstValueById("mail") + ",ou=Sample,dc=lsc-project,dc=org"</mainIdentifier>
+ </code>
+
+
+ === Debugging interface ===
+
+ If you want to debug the Javascript environnement, just change the language prefix to rdjs and you will get the Rhino debugger activated each time this script is evaluated:
+
+ <code xml>
+ <mainIdentifier>rdjs:A BUGGY JAVASCRIPT</mainIdentifier>
+ </code>
+
+
+ === Integrating external Javascript files ===
+
+ Create a file named functions.js with your custom javascript functions and call your custom function "myfunc" with an array of parameters as mentionned below:
+
+ <code xml>
+ <string>ExternalJSFileHelper.invoke("functions.js", "myfunc", new Array(2, 3))</string>
+ </code>
+
+ Of course, you can add elements from srcBean and destBean to compute some other values.
+
===== Properties based synchronization options (lsc>tasks>task>propertiesBasedSyncOptions)=====
You can describe synchronization options through the corresponding task subnode lsc>tasks>task>syncOptions :
@@ -36,24 +73,8 @@
<code xml>
<mainIdentifier>"mail=" + srcBean.getAttributeValueById("email") + ",ou=People,dc=lsc-project,dc=org"</mainIdentifier>
</code>
-
- Default language is Javascript but you can also enjoy Groovy to compute the values based on the //srcBean//. The following languages are available
-
- | ^ Language code ^ See the following page ^ Comments |
- | Javascript (JSR-223) | js | http://www.oracle.com/technetwork/articles/javase/scripting-140262.html | |
- | Groovy (JSR-223) | gr | http://groovy.codehaus.org/ | |
- | Rhino | rjs | https://developer.mozilla.org/en-US/docs/Rhino_documentation | |
- | Rhino with debugger | rdjs | https://developer.mozilla.org/en-US/docs/Rhino/Debugger| Will launch the Rhino Swing Debugger each time a Javascript expression is computed |
-
-
- To use them, just prefix the value with the language code followed by ':' as shown in the sample below :
-
- <code xml>
- <mainIdentifier>rdjs:"mail=" + srcBean.getDatasetFirstValueById("mail") + ",ou=Sample,dc=lsc-project,dc=org"</mainIdentifier>
- </code>
-
If this is meaning less for the referential you plan to write to, just copy the source value :
<code xml>
Date : 2013/11/19 16:53
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
IP-Address : 89.251.56.25
Hostname : 25.56-251-89.rdns.acropolistelecom.net
Old Revision: http://lsc-project.org/wiki/documentation/2.1/configuration/syncoptions?rev=1371674822
New Revision: http://lsc-project.org/wiki/documentation/2.1/configuration/syncoptions
Edit Summary:
User : sbahloul
@@ -1,5 +1,42 @@
====== Synchronization Rules ======
+
+ ===== Generic scripting capabilities ====
+
+ Default language is Javascript but you can also enjoy Groovy to compute the values based on the //srcBean//. The following languages are available
+
+ | ^ Language code ^ See the following page ^ Comments |
+ | Javascript (JSR-223) | js | http://www.oracle.com/technetwork/articles/javase/scripting-140262.html | |
+ | Groovy (JSR-223) | gr | http://groovy.codehaus.org/ | |
+ | Rhino | rjs | https://developer.mozilla.org/en-US/docs/Rhino_documentation | |
+ | Rhino with debugger | rdjs | https://developer.mozilla.org/en-US/docs/Rhino/Debugger| Will launch the Rhino Swing Debugger each time a Javascript expression is computed |
+
+ To use them, just prefix the value with the language code followed by ':' as shown in the sample below :
+
+ <code xml>
+ <mainIdentifier>js:"mail=" + srcBean.getDatasetFirstValueById("mail") + ",ou=Sample,dc=lsc-project,dc=org"</mainIdentifier>
+ </code>
+
+
+ === Debugging interface ===
+
+ If you want to debug the Javascript environnement, just change the language prefix to rdjs and you will get the Rhino debugger activated each time this script is evaluated:
+
+ <code xml>
+ <mainIdentifier>rdjs:A BUGGY JAVASCRIPT</mainIdentifier>
+ </code>
+
+
+ === Integrating external Javascript files ===
+
+ Create a file named functions.js with your custom javascript functions and call your custom function "myfunc" with an array of parameters as mentionned below:
+
+ <code xml>
+ <string>ExternalJSFileHelper.invoke("functions.js", "myfunc", new Array(2, 3))</string>
+ </code>
+
+ Of course, you can add elements from srcBean and destBean to compute some other values.
+
===== Properties based synchronization options (lsc>tasks>task>propertiesBasedSyncOptions)=====
You can describe synchronization options through the corresponding task subnode lsc>tasks>task>syncOptions :
@@ -36,24 +73,8 @@
<code xml>
<mainIdentifier>"mail=" + srcBean.getAttributeValueById("email") + ",ou=People,dc=lsc-project,dc=org"</mainIdentifier>
</code>
-
- Default language is Javascript but you can also enjoy Groovy to compute the values based on the //srcBean//. The following languages are available
-
- | ^ Language code ^ See the following page ^ Comments |
- | Javascript (JSR-223) | js | http://www.oracle.com/technetwork/articles/javase/scripting-140262.html | |
- | Groovy (JSR-223) | gr | http://groovy.codehaus.org/ | |
- | Rhino | rjs | https://developer.mozilla.org/en-US/docs/Rhino_documentation | |
- | Rhino with debugger | rdjs | https://developer.mozilla.org/en-US/docs/Rhino/Debugger| Will launch the Rhino Swing Debugger each time a Javascript expression is computed |
-
-
- To use them, just prefix the value with the language code followed by ':' as shown in the sample below :
-
- <code xml>
- <mainIdentifier>rdjs:"mail=" + srcBean.getDatasetFirstValueById("mail") + ",ou=Sample,dc=lsc-project,dc=org"</mainIdentifier>
- </code>
-
If this is meaning less for the referential you plan to write to, just copy the source value :
<code xml>
--
This mail was generated by DokuWiki at
http://lsc-project.org/wiki/
This mail was generated by DokuWiki at
http://lsc-project.org/wiki/