<div dir="ltr">I had no idea! I have been overriding the displayName for "Extension" in common-3 then rebuilding and now I can simply add<div><br></div><div><div> <item></div><div> <c:ref>c:extension</c:ref></div><div> <displayName>BSHP Extensions</displayName></div><div> </item></div></div><div><br></div><div>To our default object template, tested, and it works :)</div><div><br></div><div>Thanks for this awesome enhancement!</div><div><br></div><div>JASON</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 6, 2015 at 8:16 AM, Katarina Valalikova <span dir="ltr"><<a href="mailto:k.valalikova@evolveum.com" target="_blank">k.valalikova@evolveum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Peter,<br>
<br>
which version of midPoint are you using? I'm asking because from
the version 3.1.1 it is not necessary to modify midpoint's schemas
dirrectly. You can do it in runtime environment using object
template. In my opinion this is better way for customization as
you can do it without rebuilding and redeploying midPoint with
every other change. The example configuration is bellow:<br>
<br>
<objectTemplate
xmlns=<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
xmlns:c=<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
oid="10000000-0000-0000-0000-000000000000"><br>
<name>User Template</name><br>
<mapping><br>
<!-- this is a section where you can have your
mappings --><br>
</mapping><br>
<br>
<!-- here start the section for 'schema override' --><br>
<item><br>
<ref>c:additionalName</ref>
<!-- the name of the schema attribute you want to modify --><br>
<limitations><br>
<b><layer>presentation</layer>
</b> <!-- layer has to be set to presentation - this
will provide checks on the GUI layer --><b><br>
</b><b> <ignore>true</ignore></b>
<!-- completely hides this attribute in
GUI --><br>
</limitations><br>
</item><br>
<br>
<item><br>
<ref>c:name</ref><br>
<limitations><br>
<b><layer>presentation</layer></b><b><br>
</b><b> <minOccurs>1</minOccurs></b>
<!-- this makes the field mandatory --><br>
</limitations><br>
</item><br>
<br>
<!-- end of the 'schema override' section --><br>
<br>
<br>
Hope this helps you.<br>
<br>
Best Regards,<br>
Katarina Valalikova<br>
<br>
<br>
Dňa 6. 8. 2015 o 14:43 Petr Gašparík napísal(a):<br>
</div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,
<div>I customized common-3.xsd - minOccurs="1" in scheme jar to
make attributes mandatory.</div>
<div><br>
</div>
<div>Now, input fields has red asterisk but midPoint is not
taking care about that and allows empty values.</div>
<div><br>
</div>
<div>What I am missing? Thanks!<br>
</div>
<div>Any answer is appreciated, we run PoC right now..</div>
<div><br>
</div>
<div>beste regards, Petr G.</div>
</div>
<div dir="ltr">-- <br>
</div>
<div dir="ltr">--
<div>Petr G.</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
midPoint mailing list
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">JASON</div></div>
</div>
<br>
<font size="2"><br><br>CONFIDENTIALITY NOTICE:<br>This e-mail together with any attachments is proprietary and confidential; intended for only the recipient(s) named above and may contain information that is privileged. You should not retain, copy or use this e-mail or any attachments for any purpose, or disclose all or any part of the contents to any person. Any views or opinions expressed in this e-mail are those of the author and do not represent those of the Baptist School of Health Professions. If you have received this e-mail in error, or are not the named recipient(s), you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited by the sender and to do so might constitute a violation of the Electronic Communications Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the sender and delete this e-mail and any attachments from your computer. </font><br>