Skip to content

Commit

Permalink
SAP connector samples
Browse files Browse the repository at this point in the history
  • Loading branch information
gpalos committed Feb 25, 2016
1 parent e3f6d51 commit 07e6d95
Show file tree
Hide file tree
Showing 4 changed files with 458 additions and 0 deletions.
34 changes: 34 additions & 0 deletions samples/resources/sap/object-template-role.xml
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<objectTemplate oid="10000000-0000-0000-0000-000000000241"
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>Role Template</name>

<mapping>
<name>SAP ActivityGroup metarole assignment</name>
<authoritative>true</authoritative>
<source>
<path>roleType</path>
</source>
<expression>
<assignmentTargetSearch>
<targetType>c:RoleType</targetType>
<oid>056f714a-efac-476f-b38e-9588b4907e5b</oid>
</assignmentTargetSearch>
</expression>
<target>
<path>assignment</path>
</target>
<condition>
<script>
<code>roleType == 'SAP-ActivityGroup'</code>
</script>
</condition>
</mapping>

</objectTemplate>
36 changes: 36 additions & 0 deletions samples/resources/sap/role-activity-group-metarole.xml
@@ -0,0 +1,36 @@
<role 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"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
oid="056f714a-efac-476f-b38e-9588b4907e5b"
version="0">
<name>activity group metarole</name>
<iteration>0</iteration>
<iterationToken/>
<inducement>
<construction>
<resourceRef xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
oid="e307a460-2310-4f18-9644-6534d62fa999"
type="tns:ResourceType"></resourceRef>
<kind>account</kind>
<association>
<c:ref>ri:roles</c:ref>
<outbound>
<strength>normal</strength>
<expression>
<associationFromLink>
<projectionDiscriminator>
<kind>entitlement</kind>
<intent>roles</intent>
</projectionDiscriminator>
</associationFromLink>
</expression>
</outbound>
</association>
</construction>
<order>2</order>
</inducement>

</role>

0 comments on commit 07e6d95

Please sign in to comment.