We're Hiring!

Attaching a File without Annotations

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.

Attaching a File without Annotations

Postby icaoberg » Thu Jul 21, 2011 12:30 pm

I want to add a file to omero without making an annotation to any omero structure. I am aware that if I do this, users won't be able to "see" the attached file. But that is what I am looking for. I want to create a temporary file and add it to omero so that I can retrieve it using the API. Is this possible? I am aware to some degree that I can. But, is this recommendable? Do you have any other suggestions?
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: Attaching a File without Annotations

Postby jmoore » Thu Jul 21, 2011 1:04 pm

Hi Ivan

as mentioned in the other thread, the method that you need is `IAdmin.moveToCommonSpace`. It's currently used in IAdmin.uploadMyUserPhoto. There's also a test demonstrating the functionality named SpecialObjectPermTest.java.

What it does is put the object (in this case your OriginalFile) into the "user" group so that all users can see it.

Does that sound like what you need?
~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 0 guests