Skip to content

Commit

Permalink
Simplify configuration in demo/complex2
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Apr 3, 2019
1 parent 5006892 commit 9f94b75
Show file tree
Hide file tree
Showing 11 changed files with 260 additions and 248 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
oid="d87aa04f-189c-4d6f-b6e1-216dad622142">
<name>template-org-affiliation</name>
<mapping>
<name>metarole</name>
<strength>strong</strength>
<expression>
<assignmentTargetSearch>
Expand All @@ -14,4 +15,55 @@
<path>assignment</path>
</target>
</mapping>
<item>
<ref>identifier</ref>
<mapping>
<name>identifier</name>
<strength>strong</strength>
<source>
<path>extension/grouperName</path>
</source>
<expression>
<script>
<code>
grouperName?.substring(16) // from ref:affiliation:xxx
</code>
</script>
</expression>
</mapping>
</item>
<item>
<ref>name</ref>
<mapping>
<name>name</name>
<strength>strong</strength>
<source>
<path>identifier</path>
</source>
<expression>
<script>
<code>
'affiliation_' + identifier
</code>
</script>
</expression>
</mapping>
</item>
<item>
<ref>displayName</ref>
<mapping>
<name>displayName</name>
<strength>strong</strength>
<source>
<path>identifier</path>
</source>
<expression>
<script>
<code>
'Affiliation: ' + identifier
</code>
</script>
</expression>
</mapping>
</item>
</objectTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,45 @@
<path>assignment</path>
</target>
</mapping>
<item>
<ref>identifier</ref>
<mapping>
<strength>strong</strength>
<source>
<path>extension/grouperName</path>
</source>
<expression>
<script>
<code>
grouperName?.substring(11) // from ref:course:xxx
</code>
</script>
</expression>
</mapping>
</item>
<item>
<ref>name</ref>
<mapping>
<strength>strong</strength>
<source>
<path>identifier</path>
</source>
<expression>
<script>
<code>
'course_' + identifier
</code>
</script>
</expression>
</mapping>
</item>
<item>
<ref>displayName</ref>
<mapping>
<strength>strong</strength>
<source>
<path>identifier</path>
</source>
</mapping>
</item>
</objectTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,45 @@
<path>assignment</path>
</target>
</mapping>
<item>
<ref>identifier</ref>
<mapping>
<strength>strong</strength>
<source>
<path>extension/grouperName</path>
</source>
<expression>
<script>
<code>
grouperName?.substring(9) // from ref:dept:xxx
</code>
</script>
</expression>
</mapping>
</item>
<item>
<ref>name</ref>
<mapping>
<strength>strong</strength>
<source>
<path>identifier</path>
</source>
<expression>
<script>
<code>
'department_' + identifier
</code>
</script>
</expression>
</mapping>
</item>
<item>
<ref>displayName</ref>
<mapping>
<strength>strong</strength>
<source>
<path>identifier</path>
</source>
</mapping>
</item>
</objectTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,38 @@
<path>assignment</path>
</target>
</mapping>
<item>
<ref>identifier</ref>
<mapping>
<strength>strong</strength>
<source>
<path>extension/grouperName</path>
</source>
</mapping>
</item>
<item>
<ref>name</ref>
<mapping>
<strength>strong</strength>
<source>
<path>identifier</path>
</source>
<expression>
<script>
<code>
'generic_' + identifier
</code>
</script>
</expression>
</mapping>
</item>
<item>
<ref>displayName</ref>
<mapping>
<strength>strong</strength>
<source>
<path>identifier</path>
</source>
</mapping>
</item>
</objectTemplate>
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,52 @@
<path>assignment</path>
</target>
</mapping>
</objectTemplate>
<item>
<ref>identifier</ref>
<mapping>
<strength>strong</strength>
<source>
<path>extension/grouperName</path>
</source>
<expression>
<script>
<code>
grouperName?.substring(16) // from app:mailinglist:xxx
</code>
</script>
</expression>
</mapping>
</item>
<item>
<ref>name</ref>
<mapping>
<strength>strong</strength>
<source>
<path>identifier</path>
</source>
<expression>
<script>
<code>
'mailinglist_' + identifier
</code>
</script>
</expression>
</mapping>
</item>
<item>
<ref>displayName</ref>
<mapping>
<strength>strong</strength>
<expression>
<script>
<code>
'Mailing list: ' + identifier
</code>
</script>
</expression>
<source>
<path>identifier</path>
</source>
</mapping>
</item>
</objectTemplate>
Loading

0 comments on commit 9f94b75

Please sign in to comment.