Discussion:
[lsc-changes] [Ldap Synchronization...] page changed: documentation:2.1:configuration:syncoptions
webmaster
2013-06-19 20:37:04 UTC
Permalink
A page in your DokuWiki was added or changed. Here are the details:

Date : 2013/06/19 22:37
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
IP-Address : 82.235.239.71
Hostname : nsg93-4-82-235-239-71.fbx.proxad.net
Old Revision: http://lsc-project.org/wiki/documentation/2.1/configuration/syncoptions?rev=1326466036
New Revision: http://lsc-project.org/wiki/documentation/2.1/configuration/syncoptions
Edit Summary: [Main identifier (lsc>tasks>task>propertiesBasedSyncOptions>mainIdentifier)]
User : sbahloul

@@ -37,9 +37,9 @@
<code xml>
<mainIdentifier>"mail=" + srcBean.getAttributeValueById("email") + ",ou=People,dc=lsc-project,dc=org"</mainIdentifier>
</code>

- You can use Javascript and you have access to the //srcBean//.
+ Default language is Javascript but you can also enjoy groovy to compute the values based on the //srcBean//.

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/
webmaster
2013-06-19 20:47:02 UTC
Permalink
A page in your DokuWiki was added or changed. Here are the details:

Date : 2013/06/19 22:47
Browser : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
IP-Address : 82.235.239.71
Hostname : nsg93-4-82-235-239-71.fbx.proxad.net
Old Revision: http://lsc-project.org/wiki/documentation/2.1/configuration/syncoptions?rev=1371674224
New Revision: http://lsc-project.org/wiki/documentation/2.1/configuration/syncoptions
Edit Summary:
User : sbahloul

@@ -37,9 +37,23 @@
<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//.
+ 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/
Loading...