<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Sébastien,</p>
<p>it looks like the following constants are what are you looking
for:</p>
<p><a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/b9fd069104ce93ddd61377f1cac1081e2a0d9b9f/infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java#L238-L254"
class="moz-txt-link-freetext">https://github.com/Evolveum/midpoint/blob/b9fd069104ce93ddd61377f1cac1081e2a0d9b9f/infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java#L238-L254</a></p>
<p>plus (most probably) this one:</p>
<p><a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/b9fd069104ce93ddd61377f1cac1081e2a0d9b9f/infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java#L426-L429"
class="moz-txt-link-freetext">https://github.com/Evolveum/midpoint/blob/b9fd069104ce93ddd61377f1cac1081e2a0d9b9f/infra/schema/src/main/java/com/evolveum/midpoint/schema/constants/SchemaConstants.java#L426-L429</a></p>
<p>Best regards,<br>
</p>
<pre class="moz-signature" cols="72">--
Pavol Mederly
Software developer
evolveum.com</pre>
<div class="moz-cite-prefix">On 18/01/2022 14:41, Sébastien MARBRIER
via midPoint wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DBBPR01MB76447F795C58D6721789DDFFB6589@DBBPR01MB7644.eurprd01.prod.exchangelabs.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}@font-face
{font-family:Roboto;
panose-1:2 0 0 0 0 0 0 0 0 0;}@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I am currently updating
the handlers of the SystemConfiguration from a midpoint
4.0.4 and it contains a few handlers to check conditions
while importing data.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The pieces of code are
like this :<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Segoe
UI",sans-serif;color:#242424;background:#E9EAF6"
lang="EN-US">condition =
"administrator".equals(requester?.getName()?.getOrig())
&&</span><span
style="font-size:10.5pt;font-family:"Segoe
UI",sans-serif;color:#242424" lang="EN-US"><br>
<span style="background:#E9EAF6">(
SchemaConstants.CHANGE_CHANNEL_IMPORT_URI.equals(event?.getChannel())
||</span><br>
<span style="background:#E9EAF6">SchemaConstants.CHANNEL_GUI_USER_URI.equals(event?.getChannel())
) &&</span><br>
<span style="background:#E9EAF6">event.isUserRelated()
&&</span><br>
<span style="background:#E9EAF6">event.isAdd()
&&</span><br>
<span style="background:#E9EAF6">event.isSuccess()); <o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The two constants
CHANGE_CHANNEL_IMPORT_URI and CHANNEL_GUI_USER_URI used to
be present in SchemaConstants until 4.2 or 4.3 (I could not
display the javadoc for 4.2).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I found that in midpoint
4.2 the channels namespace have been moved to
<a
href="http://midpoint.evolveum.com/xml/ns/public/common/channels-3"
moz-do-not-send="true" class="moz-txt-link-freetext">http://midpoint.evolveum.com/xml/ns/public/common/channels-3</a>
but the namespaces are not used in the piece of code.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">It reminds me the issue
I got with the C_ORG_TYPE constant to be replaced by the
OrgType.COMPLEXTYPE. Here again I can’t find the new type to
use.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Does anybody know how to
update this code ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you for your help.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" cellspacing="0" cellpadding="0"
border="0">
<tbody>
<tr>
<td style="width:141.0pt;border:none;border-right:solid
#FF1738 2.25pt;padding:0cm 7.5pt 0cm 0cm" width="188">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:right"
align="right">
<a href="https://www.positivethinking.tech/"
moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times
New
Roman",serif;color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img
style="width:1.7708in;height:.8229in"
id="_x0000_i1031"
src="cid:part1.9bcg0lzj.4voAa4AI@evolveum.com"
alt="logo" class="" width="170" height="79"
border="0"></span></a><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH"><o:p></o:p></span></p>
</td>
<td style="width:7.5pt;padding:0cm 0cm 0cm 0cm" width="10">
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH"> <o:p></o:p></span></p>
</td>
<td style="width:372.75pt;padding:0cm 0cm 0cm 0cm"
width="497" valign="top">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#FF0044;mso-fareast-language:FR-CH"
lang="EN-US">Sébastien Marbrier</span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#FF0044;mso-fareast-language:FR-CH"
lang="EN-US">
</span><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH"
lang="EN-US"> | Senior IT Consultant<br>
</span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH"><a
href="mailto:smarbrier@positivethinking.tech"
moz-do-not-send="true"><span style="color:#FF0044"
lang="EN-US">smarbrier@positivethinking.tech</span></a></span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH">
</span><span
style="font-size:5.0pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH"
lang="EN-US"><br>
</span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH"
lang="EN-US"><br>
Tel. </span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH"><a
href="tel:+41%2021%20601%2081%2000"
moz-do-not-send="true"><span
style="color:#777777;text-decoration:none">+41
21 601 81 00</span></a>
</span><span
style="font-size:5.0pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH"><br>
</span><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH"><o:p></o:p></span></p>
<table class="MsoNormalTable" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><a
href="https://teams.microsoft.com/l/chat/0/0?users=smarbrier@positivethinking.tech"
moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times
New
Roman",serif;color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img
style="width:.2083in;height:.2083in"
id="_x0000_i1030"
src="cid:part2.haT00Wzv.HsLWwz6Z@evolveum.com"
alt="Teams chat" class="" width="20"
height="20" border="0"></span></a><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times
New
Roman",serif;mso-fareast-language:FR-CH"><a
href="https://teams.microsoft.com/l/chat/0/0?users=smarbrier@positivethinking.tech"
moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777;text-decoration:none"> </span></a>
<o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times
New
Roman",serif;mso-fareast-language:FR-CH"><a
href="https://teams.microsoft.com/l/chat/0/0?users=smarbrier@positivethinking.tech"
moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777"
lang="EN-US">Chat with me on Teams</span></a></span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH">
<span lang="EN-US"><o:p></o:p></span></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span
style="font-size:1.0pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH"
lang="EN-US"><br>
</span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH"
lang="EN-US"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border:none;border-right:solid #FF1738
2.25pt;padding:0cm 7.5pt 0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:right"
align="right">
<span style="font-size:12.0pt;font-family:"Times
New Roman",serif;mso-fareast-language:FR-CH"
lang="EN-US"><br>
</span><a
href="https://www.linkedin.com/company/the-positive-thinking-company/"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times
New
Roman",serif;color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img
style="width:.2083in;height:.2083in"
id="_x0000_i1029"
src="cid:part3.Grckucpr.2KPouwOh@evolveum.com"
alt="LinkedIn" class="" width="20" height="20"
border="0"></span></a><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH">
</span><a
href="https://www.instagram.com/positivethinkingcompany/"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times
New
Roman",serif;color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img
style="width:.2083in;height:.2083in"
id="_x0000_i1028"
src="cid:part4.B3SW4rGe.vsQFhGkk@evolveum.com"
alt="Instagram" class="" width="20" height="20"
border="0"></span></a><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH">
</span><a href="https://twitter.com/PTC_Tech"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times
New
Roman",serif;color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img
style="width:.2083in;height:.2083in"
id="_x0000_i1027"
src="cid:part5.2peY11ol.6eyLHN7Z@evolveum.com"
alt="Vimeo" class="" width="20" height="20"
border="0"></span></a><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH">
</span><a
href="https://youtube.com/channel/UCfaImWa6r0IoZoUYLhbiF7w"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;font-family:"Times
New
Roman",serif;color:blue;mso-fareast-language:FR-CH;text-decoration:none"><img
style="width:.2083in;height:.2083in"
id="_x0000_i1026"
src="cid:part6.BeCMLcqj.oPm2w3tT@evolveum.com"
alt="Vimeo" class="" width="20" height="20"
border="0"></span></a><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm" valign="bottom"><br>
</td>
<td style="padding:0cm 0cm 0cm 0cm" valign="bottom">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH">Avenue
de cour, 135 – 1007 Lausanne<br>
<a href="https://www.positivethinking.tech/"
moz-do-not-send="true"><span style="color:#FF0044">www.positivethinking.tech</span></a>
<br>
</span><span
style="font-size:3.5pt;font-family:"Tahoma",sans-serif;color:#777777;mso-fareast-language:FR-CH"> </span><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<div class="MsoNormal" style="text-align:center" align="center"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:FR-CH">
<hr width="100%" size="2" align="center">
</span></div>
<p class="MsoNormal"><b><span
style="font-size:8.0pt;font-family:Roboto;color:#FF0044;mso-fareast-language:FR-CH"
lang="EN-US">Help save paper, do you really need to print
this email?</span></b><span
style="font-size:8.0pt;font-family:Roboto;color:#FF0044;mso-fareast-language:FR-CH"
lang="EN-US">
</span><span style="font-size:12.0pt;font-family:"Times
New Roman",serif;mso-fareast-language:FR-CH"
lang="EN-US"><br>
</span><i><span
style="font-size:8.0pt;font-family:Roboto;color:#777777;mso-fareast-language:FR-CH"
lang="EN-US">The content of this email and any attachments
are confidential and are intended solely for the person
and/or company to whom they are addressed. The information
may also be legally privileged. No employee or agent is
authorized to conclude any binding agreement on behalf of
Positive Thinking Company with another party by email
without express written confirmation. If you have received
this email in error, any use, reproduction or
dissemination of this transmission is strictly prohibited.
If you are not the intended recipient, please immediately
notify the sender by return E-mail and delete this
message, its attachments and all copies from your system.
Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept
liability for any errors or omissions.
</span></i><i><span
style="font-size:8.0pt;font-family:Roboto;color:#777777;mso-fareast-language:FR-CH">Thank
you for your cooperation.
<br>
</span></i><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<hr>
<span style="font-size:8px"><em><span
style="font-family:Roboto,Arial"><span style="color:#777777">Positive
Thinking Company puts security at a high priority in its
conduct of business. Therefore, we have put our best
efforts into ensuring that this email and its attached
documents are error and virus-free. Nonetheless, full
security of emails/documents cannot be ensured. Therefore,
the recipient is responsible for checking the
email/documents for threats with its own security
measures, prior to opening it. Positive Thinking Company
does not accept liability for any damage inflicted by
using the content of this email/documents. If you are not
the intended recipient, please notify the sender and
delete this email/document.</span></span></em></span>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</body>
</html>