Skip to content

Commit

Permalink
Fixing the samples
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Apr 26, 2016
1 parent 86f8f0d commit cbef010
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 16 deletions.
21 changes: 18 additions & 3 deletions samples/resources/sap/assignment/object-template-user.xml
@@ -1,3 +1,18 @@
<!--
~ Copyright (c) 2010-2016 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 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"
Expand Down Expand Up @@ -70,8 +85,8 @@
<name>User - SAP Role mapping</name>
<authoritative>true</authoritative>
<source>
<c:name>sapRole</c:name>
<c:path xmlns:ext="http://xml.uniba.sk/cdoext">extension/sapRoles</c:path>
<c:name>sapRole</c:name>
</source>
<expression>
<script>
Expand Down Expand Up @@ -120,8 +135,8 @@
<name>User - SAP Profile mapping</name>
<authoritative>true</authoritative>
<source>
<c:path xmlns:ext="http://xml.uniba.sk/cdoext">extension/sapProfiles</c:path>
<c:name>sapProfile</c:name>
<c:path xmlns:ext="http://xml.uniba.sk/cdoext">extension/sapProfiles</c:path>
</source>
<expression>
<script>
Expand Down Expand Up @@ -170,8 +185,8 @@
<name>User - SAP Group mapping</name>
<authoritative>true</authoritative>
<source>
<c:path xmlns:ext="http://xml.uniba.sk/cdoext">extension/sapGroups</c:path>
<c:name>sapGroup</c:name>
<c:path xmlns:ext="http://xml.uniba.sk/cdoext">extension/sapGroups</c:path>
</source>
<expression>
<script>
Expand Down
41 changes: 28 additions & 13 deletions samples/resources/sap/assignment/sap-advanced.xml
@@ -1,3 +1,18 @@
<!--
~ Copyright (c) 2010-2016 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.
-->
<resource xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
Expand Down Expand Up @@ -237,12 +252,9 @@
<displayName>last logon date + time</displayName>
<inbound>
<source>
<name>ltime</name>
<path>$account/attributes/ri:LOGONDATA.LTIME</path>
<name>ltime</name>
</source>
<target>
<c:path>$user/extension/sapLastLogonDate</c:path>
</target>
<expression>
<script>
<code>
Expand All @@ -255,6 +267,9 @@
</code>
</script>
</expression>
<target>
<c:path>$user/extension/sapLastLogonDate</c:path>
</target>
</inbound>
</attribute>

Expand Down Expand Up @@ -339,14 +354,14 @@
</limitations>
<!-- CASE Sensitive !!!-->
<inbound>
<target>
<c:path>name</c:path>
</target>
<expression>
<script>
<code>'r:' + input</code>
</script>
</expression>
<target>
<c:path>name</c:path>
</target>
</inbound>
<inbound>
<target>
Expand Down Expand Up @@ -391,14 +406,14 @@
</limitations>
<!-- CASE Sensitive !!!-->
<inbound>
<target>
<c:path>name</c:path>
</target>
<expression>
<script>
<code>'g:' + input</code>
</script>
</expression>
<target>
<c:path>name</c:path>
</target>
</inbound>
<inbound>
<target>
Expand Down Expand Up @@ -443,14 +458,14 @@
</limitations>
<!-- CASE Sensitive !!!-->
<inbound>
<target>
<c:path>name</c:path>
</target>
<expression>
<script>
<code>'p:' + input</code>
</script>
</expression>
<target>
<c:path>name</c:path>
</target>
</inbound>
<inbound>
<target>
Expand Down

0 comments on commit cbef010

Please sign in to comment.