Skip to content

Commit

Permalink
Forgotten file
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Oct 5, 2015
1 parent cd231d7 commit a4ef38d
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions testing/story/src/test/resources/unix/object-template-user.xml
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2015 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<objectTemplate oid="9cd03eda-66bd-11e5-866c-f3bc34108fdf"
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns='http://midpoint.evolveum.com/xml/ns/public/common/common-3'
xmlns:c='http://midpoint.evolveum.com/xml/ns/public/common/common-3'
xmlns:t='http://prism.evolveum.com/xml/ns/public/types-3'
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ext="http://midpoint.evolveum.com/xml/ns/story/orgsync/ext">
<name>User Template</name>

<mapping>
<name>troublemaker</name>
<description>
This mapping is especially designed to make the projector crash on cue.
</description>
<source>
<path>$user/employeeType</path>
</source>
<expression>
<script>
<code>
throw new IllegalArgumentException("MAKING SOME TROUBLE")
</code>
</script>
</expression>
<target>
<path>$user/locality</path>
</target>
<condition>
<script>
<code>employeeType == "troublemaker"</code>
</script>
</condition>
<!-- We want it to die quite late -->
<evaluationPhase>afterAssignments</evaluationPhase>
</mapping>

</objectTemplate>

0 comments on commit a4ef38d

Please sign in to comment.