Skip to content

Commit

Permalink
Post-init objects for midPoint. after-installation.sh should not be n…
Browse files Browse the repository at this point in the history
…eeded anymore now.
  • Loading branch information
ivan committed Nov 13, 2019
1 parent 74fc9ef commit 3d1d731
Show file tree
Hide file tree
Showing 31 changed files with 2,552 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="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:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="56f53812-047d-4b69-83e8-519a73d161e1">
<name>affiliation</name>
<extension>
<ext:grouperNamePrefix>ref:affiliation:</ext:grouperNamePrefix>
<ext:ldapRootDn>ou=Affiliations,ou=Groups,dc=internet2,dc=edu</ext:ldapRootDn>
<ext:midPointNamePrefix>affiliation_</ext:midPointNamePrefix>
<ext:midPointDisplayNamePrefix>Affiliation: </ext:midPointDisplayNamePrefix>
</extension>
<archetypePolicy>
<display>
<label>Affiliation</label>
<pluralLabel>Affiliations</pluralLabel>
<icon>
<cssClass>fa fa-superpowers</cssClass>
<color>steelblue</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="bcaec940-50c8-44bb-aa37-b2b5bb2d5b90" relation="org:default" type="c:RoleType" /> <!-- metarole-grouper-provided-group -->
</assignment>
<assignment>
<targetRef oid="8da46694-bd71-4e1e-bfd7-73865ae2ea9a" relation="org:default" type="c:RoleType" /> <!-- metarole-ldap-group -->
</assignment>
<inducement>
<targetRef oid="1d7c0e3a-4456-409c-9f50-95407b2eb785" relation="org:default" type="c:OrgType" /> <!-- affiliations -->
</inducement>
<!-- Group-type-specific data -->
<inducement>
<construction>
<resourceRef oid="e417225d-8a08-46f3-9b5d-624990b52386" relation="org:default" type="c:ResourceType" /> <!-- Faculty CSV -->
</construction>
<order>2</order>
<condition>
<expression>
<script>
<code>assignmentPath[0].target.identifier == 'faculty'</code>
</script>
</expression>
</condition>
</inducement>
</archetype>
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="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:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="3dab9a72-118b-4e40-a138-bb691c335eca">
<name>course</name>
<extension>
<ext:grouperNamePrefix>ref:course:</ext:grouperNamePrefix>
<ext:ldapRootDn>ou=Courses,ou=Groups,dc=internet2,dc=edu</ext:ldapRootDn>
<ext:midPointNamePrefix>course_</ext:midPointNamePrefix>
<ext:midPointDisplayNamePrefix>Course: </ext:midPointDisplayNamePrefix>
</extension>
<archetypePolicy>
<display>
<label>Course</label>
<pluralLabel>Courses</pluralLabel>
<icon>
<cssClass>fa fa-university</cssClass>
<color>teal</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="bcaec940-50c8-44bb-aa37-b2b5bb2d5b90" relation="org:default" type="c:RoleType" /> <!-- metarole-grouper-provided-group -->
</assignment>
<assignment>
<targetRef oid="8da46694-bd71-4e1e-bfd7-73865ae2ea9a" relation="org:default" type="c:RoleType" /> <!-- metarole-ldap-group -->
</assignment>
<inducement>
<targetRef oid="225e9360-0639-40ba-8a31-7f31bef067be" relation="org:default" type="c:OrgType" /> <!-- courses -->
</inducement>
<!-- Group-type-specific data -->
<inducement>
<construction>
<resourceRef oid="a343fc2e-3954-4034-ba1a-2b72c21e577a" relation="org:default" type="c:ResourceType" /> <!-- CS CSV -->
<attribute>
<c:ref>ri:courses</c:ref>
<outbound>
<strength>strong</strength>
<expression>
<script>
<code>assignmentPath[0].target.identifier</code>
</script>
</expression>
</outbound>
</attribute>
</construction>
<order>2</order>
<condition>
<expression>
<script>
<code>assignmentPath[0].target.identifier?.startsWith('CS')</code>
</script>
</expression>
</condition>
</inducement>
</archetype>
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="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:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="1cec5f78-8fba-459b-9547-ef7485009f40">
<name>department</name>
<extension>
<ext:grouperNamePrefix>ref:dept:</ext:grouperNamePrefix>
<ext:midPointNamePrefix>department_</ext:midPointNamePrefix>
<ext:midPointDisplayNamePrefix>Department: </ext:midPointDisplayNamePrefix>
</extension>
<archetypePolicy>
<display>
<label>Department</label>
<pluralLabel>Departments</pluralLabel>
<icon>
<cssClass>fa fa-building</cssClass>
<color>darkgreen</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="bcaec940-50c8-44bb-aa37-b2b5bb2d5b90" relation="org:default" type="c:RoleType" /> <!-- metarole-grouper-provided-group -->
</assignment>
<!-- No LDAP metarole here: we deal with LDAP ourselves -->
<inducement>
<targetRef oid="bee44c51-2469-411d-bac7-695728e9c241" relation="org:default" type="c:OrgType" /> <!-- departments -->
</inducement>
<!-- Group-type-specific data -->
<inducement>
<construction>
<resourceRef oid="0a37121f-d515-4a23-9b6d-554c5ef61272" relation="org:default" type="c:ResourceType" /> <!-- LDAP -->
<attribute>
<ref>ri:businessCategory</ref>
<outbound>
<strength>strong</strength>
<expression>
<script>
<code>assignmentPath[0].target.identifier</code>
</script>
</expression>
</outbound>
</attribute>
</construction>
<order>2</order>
</inducement>
</archetype>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<archetype oid="9ea701a0-fefb-11e9-aa4a-6f55fba8896e"
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:org='http://midpoint.evolveum.com/xml/ns/public/common/org-3'>
<name>External</name>
<description>Non-academic person with no relation to the academy environment</description>
<archetypePolicy>
<display>
<label>External</label>
<pluralLabel>Externals</pluralLabel>
<tooltip>Person imported from the external database</tooltip>
<icon>
<cssClass>fa fa-space-shuttle</cssClass>
<color>olive</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<assignmentRelation>
<holderType>UserType</holderType>
</assignmentRelation>
</assignment>
</archetype>
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="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:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="5f2b96d2-49b5-4a8a-9601-14457309a69b">
<name>generic-grouper-group</name>
<extension>
<ext:grouperNamePrefix></ext:grouperNamePrefix>
<ext:ldapRootDn>ou=generic,ou=Groups,dc=internet2,dc=edu</ext:ldapRootDn>
<ext:midPointNamePrefix>generic_</ext:midPointNamePrefix>
<ext:midPointDisplayNamePrefix></ext:midPointDisplayNamePrefix>
</extension>
<archetypePolicy>
<display>
<label>Generic Grouper Group</label>
<pluralLabel>Generic Grouper Groups</pluralLabel>
<icon>
<cssClass>fa fa-users</cssClass>
<color>lightcoral</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="bcaec940-50c8-44bb-aa37-b2b5bb2d5b90" relation="org:default" type="c:RoleType" /> <!-- metarole-grouper-provided-group -->
</assignment>
<assignment>
<targetRef oid="8da46694-bd71-4e1e-bfd7-73865ae2ea9a" relation="org:default" type="c:RoleType" /> <!-- metarole-ldap-group -->
</assignment>
<inducement>
<targetRef oid="1f339075-5b2f-4a18-9c98-451f3eb0d28d" relation="org:default" type="c:OrgType" /> <!-- generic-groups -->
</inducement>
<!-- Group-type-specific data -->
<!-- nothing here by now -->
</archetype>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="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:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="1645d1dc-1f7c-4508-b50b-97b501ccdee3">
<name>mailing-list</name>
<extension>
<ext:grouperNamePrefix>app:mailinglist:</ext:grouperNamePrefix>
<ext:ldapRootDn>ou=generic,ou=Groups,dc=internet2,dc=edu</ext:ldapRootDn> <!-- could be also something specific e.g. ou=lists,ou=Groups,dc=internet2,dc=edu -->
<ext:midPointNamePrefix>mailinglist_</ext:midPointNamePrefix>
<ext:midPointDisplayNamePrefix>Mailing list: </ext:midPointDisplayNamePrefix>
</extension>
<archetypePolicy>
<display>
<label>Mailing list</label>
<pluralLabel>Mailing lists</pluralLabel>
<icon>
<cssClass>fa fa-list</cssClass>
<color>darkgoldenrod</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="bcaec940-50c8-44bb-aa37-b2b5bb2d5b90" relation="org:default" type="c:RoleType" /> <!-- metarole-grouper-provided-group -->
</assignment>
<assignment>
<targetRef oid="8da46694-bd71-4e1e-bfd7-73865ae2ea9a" relation="org:default" type="c:RoleType" /> <!-- metarole-ldap-group -->
</assignment>
<inducement>
<targetRef oid="d81fb46c-20c7-44d3-8402-fef404ea1264" relation="org:default" type="c:OrgType" /> <!-- generic-groups -->
</inducement>
<!-- Group-type-specific data -->
<inducement>
<construction>
<resourceRef oid="fe805d13-481b-43ec-97d8-9d2df72cd38e" relation="org:default" type="c:ResourceType" /> <!-- Mailing lists CSV -->
<attribute>
<c:ref>ri:lists</c:ref>
<outbound>
<strength>strong</strength>
<expression>
<script>
<code>assignmentPath[0].target.identifier</code>
</script>
</expression>
</outbound>
</attribute>
</construction>
<order>2</order>
</inducement>
</archetype>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3"
xmlns:c="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:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://grouper-demo.tier.internet2.edu"
oid="2be36917-71ad-4c3e-8789-89cadea2d5d6">
<name>midpoint-group</name>
<extension>
<ext:ldapRootDn>ou=midpoint,ou=Groups,dc=internet2,dc=edu</ext:ldapRootDn>
</extension>
<archetypePolicy>
<display>
<label>midPoint Group</label>
<pluralLabel>midPoint Groups</pluralLabel>
<icon>
<cssClass>fa fa-users</cssClass>
<color>darkgviolet</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<targetRef oid="8da46694-bd71-4e1e-bfd7-73865ae2ea9a" relation="org:default" type="c:RoleType" /> <!-- metarole-ldap-group -->
</assignment>
<inducement>
<targetRef oid="4790ab69-7ef0-41a4-8992-78877f3beb23" relation="org:default" type="c:OrgType" /> <!-- midpoint-groups -->
</inducement>
</archetype>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<archetype oid="958da09c-fefb-11e9-892d-975972472527"
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:org='http://midpoint.evolveum.com/xml/ns/public/common/org-3'>
<name>SIS Person</name>
<description>Person with a relation to the academy environment, coming from the SIS database</description>
<archetypePolicy>
<display>
<label>SIS Person</label>
<pluralLabel>SIS Persons</pluralLabel>
<tooltip>Person imported from the SIS database</tooltip>
<icon>
<cssClass>fa fa-graduation-cap</cssClass>
<color>darkgreen</color>
</icon>
</display>
</archetypePolicy>
<assignment>
<assignmentRelation>
<holderType>UserType</holderType>
</assignmentRelation>
</assignment>
</archetype>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<s:search xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<s:type>c:ResourceType</s:type>
<s:searchFilter>
<q:inOid>
<q:value>0a37121f-d515-4a23-9b6d-554c5ef61272</q:value>
<q:value>4d70a0da-02dd-41cf-b0a1-00e75d3eaa15</q:value>
<q:value>a343fc2e-3954-4034-ba1a-2b72c21e577a</q:value>
<q:value>e417225d-8a08-46f3-9b5d-624990b52386</q:value>
<q:value>fe805d13-481b-43ec-97d8-9d2df72cd38e</q:value>
<q:value>1eff65de-5bb6-483d-9edf-8cc2c2ee0233</q:value>
</q:inOid>
</s:searchFilter>
<s:action>
<!-- XXX we test ALL resources here. Maybe we can just skip the query -->
<s:type>test-resource</s:type>
</s:action>
</s:search>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- (c) 2019 Evolveum, All rights reserved -->

<s:search xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<s:type>ObjectType</s:type>
<s:searchFilter>
<q:inOid>
<q:value>d48ec05b-fffd-4262-acd3-d9ff63365b62</q:value>
<q:value>e897468f-20bd-419c-8fc5-1fe60e2600de</q:value>
</q:inOid>
</s:searchFilter>
<s:action>
<s:type>recompute</s:type>
</s:action>
</s:search>
Loading

0 comments on commit 3d1d731

Please sign in to comment.