Skip to content

Commit

Permalink
Lookup table + user template sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Mar 23, 2015
1 parent 02f35d0 commit 909fb42
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
53 changes: 53 additions & 0 deletions samples/objects/lookup-employee-type.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.
-->

<lookupTable oid="5783c174-d141-11e4-bb29-001e8c717e5b"
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:piracy='http://midpoint.evolveum.com/xml/ns/samples/piracy'>

<name>Employee Type</name>

<table>
<key>FTE</key>
<label>Full-time employee</label>
</table>
<table>
<key>PTE</key>
<label>Part-time employee</label>
</table>
<table>
<key>TE</key>
<label>Temporary employee</label>
</table>
<table>
<key>C</key>
<label>Contractor</label>
</table>
<table>
<key>S</key>
<label>Serviceperson</label>
</table>
<table>
<key>O</key>
<label>Other</label>
</table>

</lookupTable>
37 changes: 37 additions & 0 deletions samples/objects/object-template-user-structured.xml
@@ -0,0 +1,37 @@
<?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="f76b29d4-d141-11e4-8359-001e8c717e5b"
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 (structured)</name>

<description>
User template that defines some structured attributes.
This is mostly used by the user interface.
</description>

<item>
<ref>employeeType</ref>
<valueEnumerationRef oid="5783c174-d141-11e4-bb29-001e8c717e5b"/>
</item>

</objectTemplate>

0 comments on commit 909fb42

Please sign in to comment.