Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Mapping is not implemented yet.) Related to MID-6275.
- Loading branch information
Showing
15 changed files
with
335 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
model/model-intest/src/test/resources/metadata/system-configuration.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<!-- | ||
~ Copyright (c) 2020 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<systemConfiguration oid="00000000-0000-0000-0000-000000000001" version="0" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"> | ||
<name>SystemConfiguration</name> | ||
<defaultObjectPolicyConfiguration> | ||
<type>UserType</type> | ||
<subtype>regular</subtype> | ||
<objectTemplateRef oid="b1005d3d-6ef4-4347-b235-313666824ed8"/> <!-- template-regular-user --> | ||
</defaultObjectPolicyConfiguration> | ||
</systemConfiguration> |
46 changes: 46 additions & 0 deletions
46
model/model-intest/src/test/resources/metadata/template-regular-user.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2017 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
<objectTemplate oid="b1005d3d-6ef4-4347-b235-313666824ed8" | ||
xmlns='http://midpoint.evolveum.com/xml/ns/public/common/common-3'> | ||
<name>Template for regular users</name> | ||
|
||
<mapping> | ||
<strength>strong</strength> | ||
<source> | ||
<path>givenName</path> | ||
</source> | ||
<source> | ||
<path>familyName</path> | ||
</source> | ||
<expression> | ||
<script> | ||
<code> | ||
givenName + ' ' + familyName | ||
</code> | ||
</script> | ||
</expression> | ||
<target> | ||
<path>fullName</path> | ||
</target> | ||
<metadataHandling> | ||
<mapping> | ||
<source> | ||
<path>extension/loa</path> | ||
</source> | ||
<expression> | ||
<script> | ||
<code>'low'</code> <!-- todo --> | ||
</script> | ||
</expression> | ||
<target> | ||
<path>extension/loa</path> | ||
</target> | ||
</mapping> | ||
</metadataHandling> | ||
</mapping> | ||
</objectTemplate> |
35 changes: 35 additions & 0 deletions
35
model/model-intest/src/test/resources/metadata/user-bob.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!-- | ||
~ Copyright (c) 2020 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<user xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:mm="http://midpoint.evolveum.com/xml/ns/public/common/extension-metadata-mockup-3" | ||
xmlns:sm="http://midpoint.evolveum.com/xml/ns/samples/metadata" | ||
oid="cab2344d-06c0-4881-98ee-7075bf5d1309"> | ||
<name>bob</name> | ||
<extension> | ||
<mm:attachedValueMetadata> | ||
<mm:path>givenName</mm:path> | ||
<mm:metadata> | ||
<c:extension> | ||
<sm:loa>low</sm:loa> | ||
</c:extension> | ||
</mm:metadata> | ||
</mm:attachedValueMetadata> | ||
<mm:attachedValueMetadata> | ||
<mm:path>familyName</mm:path> | ||
<mm:metadata> | ||
<c:extension> | ||
<sm:loa>high</sm:loa> | ||
</c:extension> | ||
</mm:metadata> | ||
</mm:attachedValueMetadata> | ||
</extension> | ||
<subtype>regular</subtype> | ||
<givenName>Bob</givenName> | ||
<familyName>Green</familyName> | ||
</user> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.