Fantastic !
That works. Many thanks.
I think I may have misunderstood how the securityContext is used in the manipulation of Omero objects.
I had thought that it was implicit within the Gateway and that I could use the sessionID of the Gateway to pass to the ImportConfig.
I see now that the securityContext itself (with a groupID assigned to it) is passed to a DataManagerFacility.saveAndReturnObject and that is what allows me to create/edit datasets/annotations etc in different groups.
I still wouldn't have got to the magic line:
- Code: Select all
omero.client omero_client = new omero.client(new String[]{
Didn't see that in the API.
Really appreciate your time spent on this thread.
Regards
Derek