[ome-devel] listing wells of another users plate with Java API?
Aleksandra Tarkowska (Staff)
A.Tarkowska at dundee.ac.uk
Mon Feb 6 15:51:12 GMT 2017
HI
Did you try to pass user id using ParamtersI ? like in https://github.com/openmicroscopy/openmicroscopy/blob/develop/examples/Training/java/src/training/ReadDataAdvanced.java#L170
Kind regards
Ola
Software Engineer
Open Microscopy Environment
University of Dundee
On 6 Feb 2017, at 15:38, Jäälinoja, Harri Tapio <harri.jaalinoja at helsinki.fi<mailto:harri.jaalinoja at helsinki.fi>> wrote:
Hi,
is it possible to list WellData from a Plate owned by another user? The group is read-annotate, and the user I would like to use in the script can view the images in omero-web.
# the findObject call with the boolean to indicate allGroups finds the plate
# but I didn't find any way to navigate from PlateData to wells
BrowseFacility browse = gateway.getFacility(BrowseFacility.class);
PlateData plate;
plate = (PlateData) browse.findObject(ctx,PlateData.class,plateId,true)
println plate.getName()
# getWells returns an empty list when the script user does not own the plate
Collection<WellData> wells = browse.getWells(ctx, plateId);
Iterator<WellData> j = wells.iterator();
WellData well;
while (j.hasNext()) {
well = j.next();
//Do something
println 'well'
}
The idea is to create a image list with omero URLs for CellProfiler. I'd like to run the script in Jenkins (see https://github.com/Novartis/Jenkins-LSCI), and I'd prefer to use a dedicated OMERO user for this, instead of prompting the users for their LDAP passwords.
I'm using 5.3.0-m7.
Thanks,
Harri
---
Harri Jäälinoja
Light Microscopy Unit
Institute of Biotechnology
University of Helsinki
_______________________________________________
ome-devel mailing list
ome-devel at lists.openmicroscopy.org.uk<mailto:ome-devel at lists.openmicroscopy.org.uk>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel
The University of Dundee is a registered Scottish Charity, No: SC015096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20170206/ade18d8b/attachment.html>
More information about the ome-devel
mailing list