<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi again,
<div class=""><br class="">
</div>
<div class="">just as I wanted to add the previously mentioned code to the Java Gateway </div>
<div class="">I discovered, that exactly this method is actually already there:</div>
<div class=""><a href="https://downloads.openmicroscopy.org/omero/5.4.10/api/omero/gateway/facility/BrowseFacility.html#findObject-omero.gateway.SecurityContext-java.lang.Class-long-boolean-" class="">https://downloads.openmicroscopy.org/omero/5.4.10/api/omero/gateway/facility/BrowseFacility.html#findObject-omero.gateway.SecurityContext-java.lang.Class-long-boolean-</a></div>
<div class=""><br class="">
</div>
<div class="">You just pass the model class, e.g. ImageData.class, the object ID and</div>
<div class="">'true' for the 'allGroups' parameter. But the same remark still holds here:</div>
<div class="">It will return the object, but it will be shallow loaded, e.g if you load a </div>
<div class="">Project with this method, methods like "getDatasets" won't work on it, </div>
<div class="">because it's not fully initialized. </div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class="">Dominik </div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On 10 May 2019, at 12:02, Ian Dobbie <<a href="mailto:ian.dobbie@bioch.ox.ac.uk" class="">ian.dobbie@bioch.ox.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi,<br class="">
<br class="">
Not sure if this should be in Devel or users list, sorry if it is in the<br class="">
wrong place.<br class="">
<br class="">
<br class="">
I have a script that accesses images from OMERO in Fiji from a dataset,<br class="">
defined by the datasetID. If this data is in your default group this<br class="">
works fine. If it is in another group, which you are a member of, then<br class="">
this fails unless you also call<br class="">
<br class="">
SecurityContext(group_id)<br class="">
<br class="">
I have the data ImageID and am able to access the image but my code<br class="">
fails unless I set the correct security context. Is there any way to<br class="">
automatically find the correct Security Context to remove the need to<br class="">
find the correct groupID manually before running the code?<br class="">
<br class="">
<br class="">
As an additional point is there a central repository for user generated<br class="">
Fiji (imageJ) scripts to automate analysis of data?<br class="">
<br class="">
<br class="">
Thanks,<br class="">
<br class="">
Ian<br class="">
_______________________________________________<br class="">
ome-devel mailing list<br class="">
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" class="">ome-devel@lists.openmicroscopy.org.uk</a><br class="">
https://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>