Advertisement
Guest User

Untitled

a guest
Apr 25th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 12.00 KB | None | 0 0
  1.  
  2. <?xml version="1.0" encoding="UTF-8"?>
  3.  
  4. <c:resource xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
  5.            xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
  6.            xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
  7.            xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
  8.            xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
  9.            xmlns:ext="http://example.com/xml/ns/mySchema"
  10.            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  11.            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12.            xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3">
  13.    <c:name>Ref-Pers</c:name>
  14.  
  15.    <connectorRef type="ConnectorType">
  16.       <filter>
  17.          <q:equal>
  18.             <q:path>c:connectorType</q:path>
  19.             <q:value>com.evolveum.polygon.csvfile.CSVFileConnector</q:value>
  20.          </q:equal>
  21.       </filter>
  22.    </connectorRef>
  23.  
  24.    <c:connectorConfiguration>
  25.       <icfc:configurationProperties xmlns:icfccsvfile="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.polygon.connector-csvfile/com.evolveum.polygon.csvfile.CSVFileConnector">
  26.          <icfccsvfile:fieldDelimiter>,</icfccsvfile:fieldDelimiter>
  27.          <icfccsvfile:filePath>/data/Ref-Pers-mini.csv</icfccsvfile:filePath>
  28.          <icfccsvfile:valueQualifier>"</icfccsvfile:valueQualifier>
  29.          <icfccsvfile:uniqueAttribute>PER_ID</icfccsvfile:uniqueAttribute>
  30.       </icfc:configurationProperties>
  31.    </c:connectorConfiguration>
  32.  
  33.    <schemaHandling>
  34.       <objectType>
  35.          <kind>account</kind>
  36.          <intent>default</intent>
  37.          <displayName>Default Account</displayName>
  38.          <default>true</default>
  39.          <objectClass>ri:AccountObjectClass</objectClass>
  40.  
  41.          <attribute>
  42.             <c:ref>icfs:name</c:ref>
  43.             <inbound>
  44.                <expression>
  45.                   <asIs/>
  46.                </expression>
  47.                <target>
  48.                   <c:path>$user/name</c:path>
  49.                </target>
  50.             </inbound>
  51.          </attribute>
  52.  
  53.          <attribute><!-- id_pers -->
  54.             <ref>ri:INDIVIDU_HARPEGE</ref>
  55.             <displayName>ID Harpege</displayName>
  56.             <inbound>
  57.                <expression>
  58.                   <asIs/>
  59.                </expression>
  60.                <target>
  61.                   <path>extension/ext:id_pers</path>
  62.                </target>
  63.             </inbound>
  64.          </attribute>
  65.  
  66.          <attribute><!-- title + id_civilite -->
  67.             <ref>ri:CIVILITE</ref>
  68.             <inbound>
  69.                <expression>
  70.                   <script>
  71.                      <code>
  72.                         basic.uc(basic.trim(input))
  73.                     </code>
  74.                   </script>
  75.                </expression>
  76.                <target>
  77.                   <path>$user/title</path>
  78.                </target>
  79.             </inbound>
  80.             <inbound>
  81.                <expression>
  82.                   <script>
  83.                      <code>
  84.                         basic.uc(basic.trim(input))
  85.                     </code>
  86.                   </script>
  87.                </expression>
  88.                <target>
  89.                   <path>extension/ext:id_civilite</path>
  90.                </target>
  91.             </inbound>
  92.          </attribute>
  93.  
  94.          <attribute><!-- familyName + id_nomUsuel -->
  95.             <ref>ri:PER_NOM_USUEL</ref>
  96.             <inbound>
  97.                <expression>
  98.                   <script>
  99.                      <code>
  100.                         basic.uc(basic.trim(input))
  101.                     </code>
  102.                   </script>
  103.                </expression>
  104.                <target>
  105.                   <path>$user/familyName</path>
  106.                </target>
  107.             </inbound>
  108.             <inbound>
  109.                <expression>
  110.                   <script>
  111.                      <code>
  112.                         basic.uc(basic.trim(input))
  113.                     </code>
  114.                   </script>
  115.                </expression>
  116.                <target>
  117.                   <path>extension/ext:id_nomUsuel</path>
  118.                </target>
  119.             </inbound>
  120.          </attribute>
  121.  
  122.          <attribute><!-- id_nomPatronymique -->
  123.             <ref>ri:PER_NOM_PATRONYMIQUE</ref>
  124.             <inbound>
  125.                <strength>normal</strength>
  126.                <expression>
  127.                   <script>
  128.                      <code>
  129.                         basic.uc(basic.trim(input))
  130.                     </code>
  131.                   </script>
  132.                </expression>
  133.                <target>
  134.                   <path>extension/ext:id_nomPatronymique</path>
  135.                </target>
  136.             </inbound>
  137.          </attribute>
  138.  
  139.          <attribute><!-- givenName + id_prenom -->
  140.             <ref>ri:PER_PRENOM</ref>
  141.             <displayName>Prenom</displayName>
  142.             <inbound>
  143.                <expression>
  144.                   <script>
  145.                      <code>
  146.                         basic.uc(basic.trim(input))
  147.                     </code>
  148.                   </script>
  149.                </expression>
  150.                <target>
  151.                   <path>$user/givenName</path>
  152.                </target>
  153.             </inbound>
  154.             <inbound>
  155.                <expression>
  156.                   <script>
  157.                      <code>
  158.                         basic.lc(basic.trim(input))
  159.                     </code>
  160.                   </script>
  161.                </expression>
  162.                <target>
  163.                   <path>extension/ext:id_prenom</path>
  164.                </target>
  165.             </inbound>
  166.          </attribute>
  167.  
  168.          <attribute><!-- employeeNumber -->
  169.             <ref>icfs:uid</ref>
  170.             <displayName>Name</displayName>
  171.             <inbound>
  172.                <expression>
  173.                   <asIs/>
  174.                </expression>
  175.                <target>
  176.                   <path>$user/employeeNumber</path>
  177.                </target>
  178.             </inbound>
  179.          </attribute>
  180.  
  181.          <attribute><!-- geo_batiment -->
  182.             <ref>ri:AD1</ref>
  183.             <inbound>
  184.                <expression>
  185.                   <script>
  186.                      <code>
  187.                         basic.uc(basic.trim(input))
  188.                     </code>
  189.                   </script>
  190.                </expression>
  191.                <target>
  192.                   <path>extension/ext:geo_batiment</path>
  193.                </target>
  194.             </inbound>
  195.          </attribute>
  196.  
  197.          <attribute><!-- geo_ville -->
  198.             <ref>ri:VILLE</ref>
  199.             <displayName>Ville</displayName>
  200.             <inbound>
  201.                <expression>
  202.                   <script>
  203.                      <code>
  204.                         basic.uc(basic.trim(input))
  205.                      </code>
  206.                   </script>
  207.                </expression>
  208.                <target>
  209.                   <path>extension/ext:geo_ville</path>
  210.                </target>
  211.             </inbound>
  212.          </attribute>
  213.  
  214.          <attribute><!-- geo_codePostal -->
  215.             <ref>ri:POSTAL</ref>
  216.             <displayName>Code postal</displayName>
  217.             <inbound>
  218.                <expression>
  219.                   <script>
  220.                      <code>
  221.                         basic.trim(input)
  222.                     </code>
  223.                   </script>
  224.                </expression>
  225.                <target>
  226.                   <path>extension/ext:geo_codePostal</path>
  227.                </target>
  228.             </inbound>
  229.          </attribute>
  230.  
  231.          <!--
  232.         <attribute>
  233.            <ref>ri:POSTAL</ref>
  234.            <displayName>Pays</displayName>
  235.            <inbound>
  236.               <expression>
  237.                  <value>FRANCE</value>
  238.               </expression>
  239.               <target>
  240.                  <path>extension/ext:geo_pays</path>
  241.               </target>
  242.            </inbound>
  243.         </attribute>
  244.         -->
  245.          
  246.          <attribute><!-- pers_mail -->
  247.             <ref>ri:EMAIL</ref>
  248.             <displayName>Email</displayName>
  249.             <inbound>
  250.                <expression>
  251.                   <script>
  252.                      <code>
  253.                         basic.lc(basic.trim(input))
  254.                      </code>
  255.                   </script>
  256.                </expression>
  257.                <target>
  258.                   <path>extension/ext:pers_mail</path>
  259.                </target>
  260.             </inbound>
  261.          </attribute>
  262.  
  263.          <attribute><!-- pers_telephone -->
  264.             <ref>ri:TELEPHONE</ref>
  265.             <displayName>Telephone</displayName>
  266.             <inbound>
  267.                <expression>
  268.                   <script>
  269.                      <code>
  270.                         basic.trim(input)
  271.                      </code>
  272.                   </script>
  273.                </expression>
  274.                <target>
  275.                   <path>extension/ext:pers_telephone</path>
  276.                </target>
  277.             </inbound>
  278.          </attribute>
  279.  
  280.          <attribute><!-- pers_codeAffectation -->
  281.             <ref>ri:COMPOSANTE</ref>
  282.             <displayName>Affectation principale</displayName>
  283.             <inbound>
  284.                <expression>
  285.                   <script>
  286.                      <code>
  287.                         basic.uc(basic.trim(input))
  288.                      </code>
  289.                   </script>
  290.                </expression>                    
  291.                <target>
  292.                   <path>extension/ext:pers_codeAffectation</path>
  293.                </target>
  294.             </inbound>
  295.          </attribute>
  296.  
  297.          <attribute><!-- pers_structureN2 -->
  298.             <ref>ri:LIBELLE</ref>
  299.             <displayName>Structure N2</displayName>
  300.             <inbound>
  301.                <expression>
  302.                   <script>
  303.                      <code>
  304.                         basic.trim(input)
  305.                      </code>
  306.                   </script>
  307.                </expression>
  308.                <target>
  309.                   <path>extension/ext:pers_structureN2</path>
  310.                </target>
  311.             </inbound>
  312.          </attribute>
  313.  
  314.  
  315.          <assignmentPolicyEnforcement>none</assignmentPolicyEnforcement>
  316.       </objectType>
  317.    </schemaHandling>
  318.  
  319.    <synchronization>
  320.       <objectSynchronization>
  321.          <name>ObjectSync</name>
  322.          <objectClass>ri:AccountObjectClass</objectClass>
  323.          <kind>account</kind>
  324.          <intent>default</intent>
  325.          <focusType>c:UserType</focusType>
  326.          <enabled>true</enabled>
  327.          <correlation>
  328.             <q:equal>
  329.                <q:path>c:employeeNumber</q:path>
  330.                <expression>
  331.                   <path>$c:account/attributes/icfs:uid</path>
  332.                </expression>
  333.             </q:equal>
  334.          </correlation>
  335.          <confirmation/>
  336.          <reconcile>false</reconcile>
  337.          <reaction>
  338.             <situation>linked</situation>
  339.             <synchronize>true</synchronize>
  340.             <reconcile>false</reconcile>
  341.          </reaction>
  342.          <reaction>
  343.             <situation>unlinked</situation>
  344.             <synchronize>true</synchronize>
  345.             <reconcile>false</reconcile>
  346.             <action>
  347.                <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#link</handlerUri>
  348.             </action>
  349.          </reaction>
  350.          <reaction>
  351.             <situation>deleted</situation>
  352.             <reconcile>false</reconcile>
  353.             <action>
  354.                <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink</handlerUri>
  355.             </action>
  356.          </reaction>
  357.          <reaction>
  358.             <situation>unmatched</situation>
  359.             <synchronize>true</synchronize>
  360.             <reconcile>false</reconcile>
  361.             <action>
  362.                <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus</handlerUri>
  363.             </action>
  364.          </reaction>
  365.       </objectSynchronization>
  366.    </synchronization>
  367. </c:resource>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement