Skip to content

Commit

Permalink
More work
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Mar 31, 2017
1 parent c0e6e6b commit bf174df
Show file tree
Hide file tree
Showing 15 changed files with 213 additions and 2 deletions.
Expand Up @@ -21,4 +21,10 @@
<inducement>
<targetRef oid="00000000-0000-0000-0000-000000000008" type="RoleType"/> <!-- End User -->
</inducement>
<inducement>
<targetRef oid="00000000-0000-0000-0000-00000000000a" type="RoleType"/> <!-- Approver -->
</inducement>
<requestable>false</requestable>
<delegable>false</delegable>
<riskLevel>medium</riskLevel>
</role>
12 changes: 12 additions & 0 deletions gui/admin-gui/src/main/resources/initial-objects/502-role-pet.xml
Expand Up @@ -17,4 +17,16 @@
<role oid="00000000-0000-3333-3333-200000000002"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<name>Pet</name>
<assignment>
<policyRule>
<policyConstraints>
<exclusion>
<targetRef oid="00000000-0000-3333-3333-200000000004" type="RoleType"/> <!-- Pest -->
</exclusion>
</policyConstraints>
</policyRule>
</assignment>
<requestable>true</requestable>
<delegable>false</delegable>
<riskLevel>medium</riskLevel>
</role>
Expand Up @@ -18,4 +18,7 @@
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<name>Ruler of the Universe</name>
<description>Sovereign ruler of the universe and its dependencies</description>
<requestable>false</requestable>
<delegable>false</delegable>
<riskLevel>none, everything is perfectly OK</riskLevel>
</role>
32 changes: 32 additions & 0 deletions gui/admin-gui/src/main/resources/initial-objects/504-role-pest.xml
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2017 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.
-->
<role oid="00000000-0000-3333-3333-200000000004"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<name>Pest</name>
<assignment>
<policyRule>
<policyConstraints>
<exclusion>
<targetRef oid="00000000-0000-3333-3333-200000000002" type="RoleType"/> <!-- Pet -->
</exclusion>
</policyConstraints>
</policyRule>
</assignment>
<requestable>false</requestable>
<delegable>true</delegable>
<riskLevel>high</riskLevel>
</role>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2017 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.
-->
<role oid="00000000-0000-3333-3333-200000000005"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<name>Best Family Member</name>
<requestable>true</requestable>
<delegable>true</delegable>
<approverRef oid="00000000-0000-3333-3333-300000000001" type="UserType" /> <!-- father -->
<approverRef oid="00000000-0000-3333-3333-300000000002" type="UserType" /> <!-- mother -->
<riskLevel>low</riskLevel>
</role>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2017 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.
-->
<role oid="00000000-0000-3333-3333-200000000006"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<name>Most Annoying Creature</name>
<requestable>true</requestable>
<delegable>true</delegable>
<riskLevel>unbelievable</riskLevel>
</role>
Expand Up @@ -20,6 +20,8 @@
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3">
<name>father</name>
<fullName>Father</fullName>
<title>Parent</title>
<locality>garage</locality>
<assignment>
<targetRef oid="00000000-0000-3333-3333-200000000001" type="RoleType"/> <!-- Human -->
</assignment>
Expand Down
Expand Up @@ -20,7 +20,11 @@
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:org='http://midpoint.evolveum.com/xml/ns/public/common/org-3'>
<name>mother</name>
<description>She Who Must Be Obeyed</description>
<fullName>Mother</fullName>
<title>Parent</title>
<locality>kitchen</locality>
<costCenter>costly</costCenter>
<assignment>
<targetRef oid="00000000-0000-3333-3333-200000000001" type="RoleType"/> <!-- Human -->
</assignment>
Expand Down
Expand Up @@ -20,6 +20,9 @@
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3">
<name>daughter</name>
<fullName>Daughter</fullName>
<title>Child</title>
<locality>garden</locality>
<costCenter>extremely costly</costCenter>
<assignment>
<targetRef oid="00000000-0000-3333-3333-200000000001" type="RoleType"/> <!-- Human -->
</assignment>
Expand Down
Expand Up @@ -20,6 +20,9 @@
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3">
<name>son</name>
<fullName>Son</fullName>
<title>Child</title>
<locality>kids-bedroom</locality>
<costCenter>very costly</costCenter>
<assignment>
<targetRef oid="00000000-0000-3333-3333-200000000001" type="RoleType"/> <!-- Human -->
</assignment>
Expand Down
Expand Up @@ -20,6 +20,8 @@
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3">
<name>dog</name>
<fullName>Dog</fullName>
<title>Pet</title>
<locality>master-bedroom</locality>
<assignment>
<targetRef oid="00000000-0000-3333-3333-200000000002" type="RoleType"/> <!-- Pet -->
</assignment>
Expand Down
Expand Up @@ -20,6 +20,9 @@
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3">
<name>cat</name>
<fullName>Cat</fullName>
<honorificPrefix>His Majesty</honorificPrefix>
<title>Ruler of the Universe</title>
<locality>living-room</locality>
<assignment>
<targetRef oid="00000000-0000-3333-3333-200000000003" type="RoleType"/> <!-- Ruler -->
</assignment>
Expand Down
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2017 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.
-->
<c:user oid="00000000-0000-3333-3333-300000000006"
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">
<name>mouse</name>
<fullName>Mouse</fullName>
<title>Pest</title>
<locality>attic</locality>
<assignment>
<targetRef oid="00000000-0000-3333-3333-200000000004" type="RoleType"/> <!-- Pest -->
</assignment>
<assignment>
<targetRef oid="00000000-0000-3333-3333-100000000000" type="OrgType"/> <!-- Family -->
</assignment>
<activation>
<administrativeStatus>enabled</administrativeStatus>
</activation>
</c:user>
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2017 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.
-->

<lookupTable oid="00000000-0000-3333-3333-500000000001"
xmlns='http://midpoint.evolveum.com/xml/ns/public/common/common-3'>

<name>Localities</name>

<row>
<key>living-room</key>
<label>Living room</label>
</row>
<row>
<key>kitchen</key>
<label>Kitchen</label>
</row>
<row>
<key>master-bedroom</key>
<label>Master bedroom</label>
</row>
<row>
<key>kids-bedroom</key>
<label>Kid's bedroom</label>
</row>
<row>
<key>bathroom</key>
<label>Bathroom</label>
</row>
<row>
<key>basement</key>
<label>Basement</label>
</row>
<row>
<key>garage</key>
<label>Garage</label>
</row>
<row>
<key>attic</key>
<label>Attic</label>
</row>
<row>
<key>garden</key>
<label>garden</label>
</row>

</lookupTable>
Expand Up @@ -2370,7 +2370,6 @@
<xsd:appinfo>
<a:displayName>UserType.givenName</a:displayName>
<a:displayOrder>110</a:displayOrder>
<a:emphasized>true</a:emphasized>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
Expand Down Expand Up @@ -2398,7 +2397,6 @@
<xsd:appinfo>
<a:displayName>UserType.familyName</a:displayName>
<a:displayOrder>120</a:displayOrder>
<a:emphasized>true</a:emphasized>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
Expand Down Expand Up @@ -2753,6 +2751,7 @@
<xsd:appinfo>
<a:displayName>UserType.locality</a:displayName>
<a:displayOrder>450</a:displayOrder>
<a:valueEnumerationRef oid="00000000-0000-3333-3333-500000000001" type="tns:LookupTableType"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
Expand Down

0 comments on commit bf174df

Please sign in to comment.