Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <c:resource xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
- xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
- xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
- xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
- xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
- xmlns:ext="http://example.com/xml/ns/mySchema"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3">
- <c:name>Ref-Pers</c:name>
- <connectorRef type="ConnectorType">
- <filter>
- <q:equal>
- <q:path>c:connectorType</q:path>
- <q:value>com.evolveum.polygon.csvfile.CSVFileConnector</q:value>
- </q:equal>
- </filter>
- </connectorRef>
- <c:connectorConfiguration>
- <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">
- <icfccsvfile:fieldDelimiter>,</icfccsvfile:fieldDelimiter>
- <icfccsvfile:filePath>/data/Ref-Pers-mini.csv</icfccsvfile:filePath>
- <icfccsvfile:valueQualifier>"</icfccsvfile:valueQualifier>
- <icfccsvfile:uniqueAttribute>PER_ID</icfccsvfile:uniqueAttribute>
- </icfc:configurationProperties>
- </c:connectorConfiguration>
- <schemaHandling>
- <objectType>
- <kind>account</kind>
- <intent>default</intent>
- <displayName>Default Account</displayName>
- <default>true</default>
- <objectClass>ri:AccountObjectClass</objectClass>
- <attribute>
- <c:ref>icfs:name</c:ref>
- <inbound>
- <expression>
- <asIs/>
- </expression>
- <target>
- <c:path>$user/name</c:path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- id_pers -->
- <ref>ri:INDIVIDU_HARPEGE</ref>
- <displayName>ID Harpege</displayName>
- <inbound>
- <expression>
- <asIs/>
- </expression>
- <target>
- <path>extension/ext:id_pers</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- title + id_civilite -->
- <ref>ri:CIVILITE</ref>
- <inbound>
- <expression>
- <script>
- <code>
- basic.uc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>$user/title</path>
- </target>
- </inbound>
- <inbound>
- <expression>
- <script>
- <code>
- basic.uc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:id_civilite</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- familyName + id_nomUsuel -->
- <ref>ri:PER_NOM_USUEL</ref>
- <inbound>
- <expression>
- <script>
- <code>
- basic.uc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>$user/familyName</path>
- </target>
- </inbound>
- <inbound>
- <expression>
- <script>
- <code>
- basic.uc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:id_nomUsuel</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- id_nomPatronymique -->
- <ref>ri:PER_NOM_PATRONYMIQUE</ref>
- <inbound>
- <strength>normal</strength>
- <expression>
- <script>
- <code>
- basic.uc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:id_nomPatronymique</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- givenName + id_prenom -->
- <ref>ri:PER_PRENOM</ref>
- <displayName>Prenom</displayName>
- <inbound>
- <expression>
- <script>
- <code>
- basic.uc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>$user/givenName</path>
- </target>
- </inbound>
- <inbound>
- <expression>
- <script>
- <code>
- basic.lc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:id_prenom</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- employeeNumber -->
- <ref>icfs:uid</ref>
- <displayName>Name</displayName>
- <inbound>
- <expression>
- <asIs/>
- </expression>
- <target>
- <path>$user/employeeNumber</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- geo_batiment -->
- <ref>ri:AD1</ref>
- <inbound>
- <expression>
- <script>
- <code>
- basic.uc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:geo_batiment</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- geo_ville -->
- <ref>ri:VILLE</ref>
- <displayName>Ville</displayName>
- <inbound>
- <expression>
- <script>
- <code>
- basic.uc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:geo_ville</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- geo_codePostal -->
- <ref>ri:POSTAL</ref>
- <displayName>Code postal</displayName>
- <inbound>
- <expression>
- <script>
- <code>
- basic.trim(input)
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:geo_codePostal</path>
- </target>
- </inbound>
- </attribute>
- <!--
- <attribute>
- <ref>ri:POSTAL</ref>
- <displayName>Pays</displayName>
- <inbound>
- <expression>
- <value>FRANCE</value>
- </expression>
- <target>
- <path>extension/ext:geo_pays</path>
- </target>
- </inbound>
- </attribute>
- -->
- <attribute><!-- pers_mail -->
- <ref>ri:EMAIL</ref>
- <displayName>Email</displayName>
- <inbound>
- <expression>
- <script>
- <code>
- basic.lc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:pers_mail</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- pers_telephone -->
- <ref>ri:TELEPHONE</ref>
- <displayName>Telephone</displayName>
- <inbound>
- <expression>
- <script>
- <code>
- basic.trim(input)
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:pers_telephone</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- pers_codeAffectation -->
- <ref>ri:COMPOSANTE</ref>
- <displayName>Affectation principale</displayName>
- <inbound>
- <expression>
- <script>
- <code>
- basic.uc(basic.trim(input))
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:pers_codeAffectation</path>
- </target>
- </inbound>
- </attribute>
- <attribute><!-- pers_structureN2 -->
- <ref>ri:LIBELLE</ref>
- <displayName>Structure N2</displayName>
- <inbound>
- <expression>
- <script>
- <code>
- basic.trim(input)
- </code>
- </script>
- </expression>
- <target>
- <path>extension/ext:pers_structureN2</path>
- </target>
- </inbound>
- </attribute>
- <assignmentPolicyEnforcement>none</assignmentPolicyEnforcement>
- </objectType>
- </schemaHandling>
- <synchronization>
- <objectSynchronization>
- <name>ObjectSync</name>
- <objectClass>ri:AccountObjectClass</objectClass>
- <kind>account</kind>
- <intent>default</intent>
- <focusType>c:UserType</focusType>
- <enabled>true</enabled>
- <correlation>
- <q:equal>
- <q:path>c:employeeNumber</q:path>
- <expression>
- <path>$c:account/attributes/icfs:uid</path>
- </expression>
- </q:equal>
- </correlation>
- <confirmation/>
- <reconcile>false</reconcile>
- <reaction>
- <situation>linked</situation>
- <synchronize>true</synchronize>
- <reconcile>false</reconcile>
- </reaction>
- <reaction>
- <situation>unlinked</situation>
- <synchronize>true</synchronize>
- <reconcile>false</reconcile>
- <action>
- <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#link</handlerUri>
- </action>
- </reaction>
- <reaction>
- <situation>deleted</situation>
- <reconcile>false</reconcile>
- <action>
- <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink</handlerUri>
- </action>
- </reaction>
- <reaction>
- <situation>unmatched</situation>
- <synchronize>true</synchronize>
- <reconcile>false</reconcile>
- <action>
- <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus</handlerUri>
- </action>
- </reaction>
- </objectSynchronization>
- </synchronization>
- </c:resource>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement