<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Alexander,<br>
<br>
1/ you've sent empty result.txt<br>
2/ no problem with logs, just sent log file with approx. time of
that search request and I'll try to see what happened in midpoint
database<br>
<br>
Best regards<br>
<br>
Vilo<br>
<br>
<div class="moz-cite-prefix">On 04/07/2014 02:57 PM, Alexander
Grzesik wrote:<br>
</div>
<blockquote
cite="mid:be2786ec-53f5-4d33-8da3-adbededa0a0f@medisite.de"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;
color:black;
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.E-MailFormatvorlage20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:930163457;
mso-list-type:hybrid;
mso-list-template-ids:104482730 67567631 67567641 67567643 67567631 67567641 67567643 67567631 67567641 67567643;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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"><span style="color:#1F497D">Hi Viliam,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">thank
you for your help. The OrgType query now works.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">For
the 1<sup>st</sup> point, getting some useful logs is quite
difficult, as on TRACE level the logs are spammed by
automatic jobs, that the request is lost in it </span><span
style="font-family:Wingdings;color:#1F497D" lang="EN-US">L</span><span
style="color:#1F497D" lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">But
to reproduce is simple: I have a midpoint with the monkey
island OU structure advanced sample data in it. When I use
for example the ou-query for users you gave me with and
query for OU Oid of 00000000-8888-6666-0000-100000000006
(Scumm Bar) I get 3 UserType objects as Result. When I print
the results for each user for getParentOrgs, getParentOrgRef
methods, I get the result in the attachement. While the
getParentOrgRef objects are filled correctly with
getParentOrgs I get the Orgs in the list but all properties
are null.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Best
Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Alexander<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="color:windowtext;mso-fareast-language:DE">Von:</span></b><span
style="color:windowtext;mso-fareast-language:DE">
<a class="moz-txt-link-abbreviated" href="mailto:midpoint-bounces@lists.evolveum.com">midpoint-bounces@lists.evolveum.com</a>
[<a class="moz-txt-link-freetext" href="mailto:midpoint-bounces@lists.evolveum.com">mailto:midpoint-bounces@lists.evolveum.com</a>] <b>Im
Auftrag von </b>Viliam Repan<br>
<b>Gesendet:</b> Montag, 7. April 2014 12:46<br>
<b>An:</b> midPoint General Discussion<br>
<b>Betreff:</b> Re: [midPoint] ModelClient Question<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Alexander,<br>
<br>
1. IMHO I think midpoint repository would return exception or
maybe objects that doesn't match your query criteria (in case
of bug) but it would not return empty objects. Can you please
send some logs from midpoint (e.g.
com.evolveum.midpoint.repo.sql to TRACE if possible during
this test) as well as query that you sent to midpoint WS,
maybe we can replicate this in tests.<br>
<br>
2. When using ModelPortType.searchObjects(), for searching
users in given OrgType I would set arguments to:<br>
objectType:<br>
<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a#UserType">http://midpoint.evolveum.com/xml/ns/public/common/common-2a#UserType</a><br>
query:<br>
<q:query xmlns:xsi=<a moz-do-not-send="true"
href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a><br>
xmlns:c=<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">"http://midpoint.evolveum.com/xml/ns/public/common/common-2a"</a><br>
xmlns:xsd=<a moz-do-not-send="true"
href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
xmlns:q=<a moz-do-not-send="true"
href="http://prism.evolveum.com/xml/ns/public/query-2">"http://prism.evolveum.com/xml/ns/public/query-2"</a>><br>
<q:org><br>
<q:orgRef
oid="00000000-8888-6666-0000-200000000002" /> <!-- your
OrgType oid --><br>
<q:maxDepth>1</q:maxDepth><br>
</q:org><br>
</q:query><br>
This XML sample uses OrgFilter in ObjectQuery.<br>
<br>
options: null or empty<br>
and holders for results.<br>
<br>
Best regards,<br>
<br>
Vilo<span style="font-size:12.0pt;mso-fareast-language:DE"><o:p></o:p></span></p>
<div>
<p class="MsoNormal">On 04/04/2014 04:43 PM, Alexander Grzesik
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre><span style="color:#1F497D" lang="EN-US">I have some more questions on the use of the ModelClient:</span><o:p></o:p></pre>
<pre style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2"><!--[if !supportLists]--><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman""> </span></span><!--[endif]--><span style="color:#1F497D" lang="EN-US">When I have some object that are linked to organization Units and I use getParentOrg, I get a list of OrgType but all properties of these OrgTypes are empty. Are there some options that can be set on loading the objects to fill this data ?</span><o:p></o:p></pre>
<pre style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo2"><!--[if !supportLists]--><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman""> </span></span><!--[endif]--><span style="color:#1F497D" lang="EN-US">I was not yet able to figure out how I can search for Objects based on a parent Org. So getting all users for a given parentOrg or getting all child Orgs for a parent, given having the oid.</span><o:p></o:p></pre>
<pre><span style="color:#1F497D" lang="EN-US">Thank You</span><o:p></o:p></pre>
<pre><span style="color:#1F497D" lang="EN-US">Alexander</span><o:p></o:p></pre>
<pre><span style="color:#1F497D" lang="EN-US"> </span><o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DE"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>midPoint mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:DE"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Ing. Viliam Repáň<o:p></o:p></pre>
<pre>Evolveum, s.r.o.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>tel: +421 910 797978<o:p></o:p></pre>
<pre>mail: <a moz-do-not-send="true" href="mailto:vilo.repan@evolveum.com">vilo.repan@evolveum.com</a><o:p></o:p></pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ing. Viliam Repáň
Evolveum, s.r.o.
tel: +421 910 797978
mail: <a class="moz-txt-link-abbreviated" href="mailto:vilo.repan@evolveum.com">vilo.repan@evolveum.com</a>
</pre>
</body>
</html>