We're Hiring!

Change owner of projects, datasets...

General user discussion about using the OMERO platform to its fullest. Please ask 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

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

Change owner of projects, datasets...

Postby bernhard » Mon Dec 07, 2009 9:45 am

Hi all!

Is it possible to change the owner of existing items in the database including referenced objects? For example change the owner of a project and all linked datasets and images and annotations?

If this is not possible with any client, would it be possible to use the API to perform this task?

Thanks! Bernhard
bernhard
 
Posts: 37
Joined: Mon Jun 22, 2009 7:18 am

Re: Change owner of projects, datasets...

Postby cxallan » Fri Dec 11, 2009 11:07 am

bernhard wrote:Hi all!

Is it possible to change the owner of existing items in the database including referenced objects?


Yes, it's possible to change the owner and group of a items in the database including reference objects using the API.

bernhard wrote:For example change the owner of a project and all linked datasets and images and annotations?


At present, no there isn't. Modifying the ownership of this entire graph is complex and we are just getting our heads around what such a permissions change could mean for certain types of reference objects. Solving this is one of our goals for our next release.

bernhard wrote:If this is not possible with any client, would it be possible to use the API to perform this task?


It is not possible with any client. You'd have to load the entire graph of data that you'd like to change ownership for, very carefully, and then object.getDetails().setOwner(newOwner) for each.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Change owner of projects, datasets...

Postby jmoore » Tue Dec 15, 2009 8:13 pm

An API method should be available in the 4.2 release for doing chown on an entire graph as a part of ticket:1434. If you can think of any unusual usages, feel free to add them here or on the ticket. ~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest