I'm currently trying to access our OMERO server from another Java application using your API. I didn't find much documentation in the wiki so I'm trying to learn how to use it by reading the code of the ImageJ plugin.
I've succeeded in accessing the server and retrieving all images inside all accessible groups of the current user which is my main objective. Now I want to access some meta information of these images but using getOwner().getUserName() on the ProjectData objects returns null values as this information seems to be unloaded. The important codebit to access all projects is
- Code: Select all
public Collection loadProjects() throws DSAccessException,
DSOutOfServiceException {
ParametersI p = new ParametersI();
p.allExps();
p.allGrps();
return gateway.loadContainerHierarchy(ProjectData.class, null, p);
}
Now I'm stuck loading this information (group name and experimenter name). I hope somebody could give me a hint on how to achieve this.
Thank you in advance!