We're Hiring!

Importing 'public' images from OMERO5.server to ImageJ

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Tue Aug 26, 2014 9:12 am

Dear Simon,

Thanks. I solved Java security setting problem on a binary OMERO.server (ver. 5.0.0-ice34-b19)
But, I failed to build with an option what you pointed out, as follows:

Code: Select all
$ ./build.py
...
BUILD SUCCESSFUL
$ ./build.py release-webstart=signed
Buildfile: /OMERO/openmicroscopy-5.0.0/build.xml
BUILD FAILED
Target "release-webstart=signed" does not exist in the project "toplevel".


Yukako.
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Tue Aug 26, 2014 9:35 am

Dear all,

This is an additional report.

I could use the option './build.py release-webstart-signed' on
OMERO.server ver. 5.1.0-m0.3-ice34-SNAPSHOT (latest version using 'git clone')
and ver. 5.0.3 (a dowloaded source from OMERO website),
and the option './build.py release-webstart' for ver. 5.0.0.

Yukako.
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Tue Sep 09, 2014 8:20 am

Dear all,

To realize an importing system of images from public user in OMERO.server to ImageJ,
I temporary added a form to input session ID on the login windows of OMERO.insight
in openmicroscopy (ver. 5.0.3).
But it's not working out.

My source codes are open on GitHub (https://github.com/yukako/openmicroscopy).
Could you give me some advices on how to change these source codes?

My codes succeeded the compilation [./build.py; ./build.py release-webstart-signed]
and login by user name and password, but didn’t response for login by session ID.
I previously executed 'omero login public_user@xxx.xxx.xxx.xxx' on my OMERO server.

I guess that 'components/blitz/src/loci/ome/io/OmeroReader.java' become a model
programming and I need to change the 'login' function
in 'components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java'.

Best,
Yukako
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby jburel » Tue Sep 09, 2014 10:12 am

Dear Yukako

You will need to also adjust the createSession method in the gateway to start join an existing session
I was about to make some code changes when I noticed that you just pushed a commit to join the session
Do you want me to test anything?
The OMEROReader should already accept sessionID so you will not need to modify it

Cheers

Jmarie
User avatar
jburel
Team Member
 
Posts: 348
Joined: Thu May 21, 2009 6:38 pm
Location: dundee

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Tue Sep 09, 2014 11:32 am

Dear Jmarie,

I wanted to ask some help on how to solve my problem on sessionID

The latest commit is just minor changes.

If you have made some new code changes for me, please push it and many thanks for helping.

Warm regards
Yukako
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby jburel » Wed Sep 10, 2014 12:45 pm

Dear Yukako

I have pushed 2 commits that will allow to connect using either username/password or sessionID
It is based on the latest 5.0.4 code. See https://github.com/jburel/openmicroscop ... on-dev_5_0
I have limited the changes to the ScreenLogin and OMEROGateway classes.
Let me know if you need anything.

Regards
Jmarie
User avatar
jburel
Team Member
 
Posts: 348
Joined: Thu May 21, 2009 6:38 pm
Location: dundee

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Thu Sep 11, 2014 5:33 am

Dear Jmarie

I really appreciate your simple cording over my purpose.
I successed to login using sessionID.

Thanks,
Yukako
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Thu Sep 11, 2014 7:05 am

Dear all,

I'm going to write my problem again.

Please advise me if there is a way for setting that connection using session ID
by public users is permanently available.

Our system assumes the following procedures:
1) I previously issue one session ID for any users on our website.
2) Any users import images into ImageJ from OMERO using the provided common session ID.

But, the default timeout of our system (omero.sessions.timeout) is 10 minitues.
This is a bother for any users, since they need to check a provided session ID
on our website and input it each time.

Best,
Yukako
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby jmoore » Thu Sep 11, 2014 7:16 am

Hi Yukako,

how did you create the session IDs originally?

When doing so, there are 2 different settings that you can make use of: timeToIdle and timeToLive. timeToIdle will say how long a session can go unused before it expires ("if unused for 10 minutes, reap"). timeToLive says how long a session is usable at all ("expires in 1 week").

Cheers,
~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Importing 'public' images from OMERO5.server to ImageJ

Postby tohsato » Thu Sep 11, 2014 7:35 am

Dear jmoore,

I'm creating sessions IDs by omero command line interface as follows:
Code: Select all
omero sessions login public_user@xxx.xxx.xxx.xxx


What setting ways such as timeToIdle and timeToLive available?

Best,
Yukako.
tohsato
 
Posts: 19
Joined: Mon May 20, 2013 1:28 am

PreviousNext

Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 1 guest